|
spot 2.14.2
|
The management of states (i.e. allocation/deallocation) can be painless since every time we have to consider wether the state will be compressed or not. This class aims to simplify this management. More...
#include <spot/ltsmin/spins_kripke.hh>
Public Member Functions | |
| cspins_state_manager (unsigned int state_size, int compress) | |
| Build a manager for a state of state_size variables and indicate wether compression should be used: | |
| int * | unbox_state (cspins_state s) const |
| Get Rid of the internal representation of the state. | |
| cspins_state | alloc_setup (int *dst, int *cmp, size_t cmpsize) |
| Builder for a state from a raw description given in dst. | |
| void | decompress (cspins_state s, int *uncompressed, unsigned size) const |
| Helper to decompress a state. | |
| void | dealloc (cspins_state s) |
| Help the manager to reclam the memory of a state. | |
| unsigned int | size () const |
| The size of a state. | |
The management of states (i.e. allocation/deallocation) can be painless since every time we have to consider wether the state will be compressed or not. This class aims to simplify this management.
| spot::cspins_state_manager::cspins_state_manager | ( | unsigned int | state_size, |
| int | compress | ||
| ) |
Build a manager for a state of state_size variables and indicate wether compression should be used:
| cspins_state spot::cspins_state_manager::alloc_setup | ( | int * | dst, |
| int * | cmp, | ||
| size_t | cmpsize | ||
| ) |
Builder for a state from a raw description given in dst.
cmp is the area we can use to compute the compressed representatation of dst. cmpsize the size of the previous area
| void spot::cspins_state_manager::dealloc | ( | cspins_state | s | ) |
Help the manager to reclam the memory of a state.
| void spot::cspins_state_manager::decompress | ( | cspins_state | s, |
| int * | uncompressed, | ||
| unsigned | size | ||
| ) | const |
Helper to decompress a state.
| unsigned int spot::cspins_state_manager::size | ( | ) | const |
The size of a state.
| int * spot::cspins_state_manager::unbox_state | ( | cspins_state | s | ) | const |
Get Rid of the internal representation of the state.
1.9.8