33 #include "../marmoteConstants.h"
42 enum opType { UNION, PRODUCT, SIMPLE };
160 int index(
int* buffer);
167 virtual bool isZero(
int* buffer);
173 virtual void printState(FILE* out,
int* buffer);
virtual long int cardinal()
Cardinal of the set.
Definition: marmoteSet.cpp:105
bool _isProduct
Definition: marmoteSet.h:53
virtual void printState(FILE *out, int *buffer)
Procedure to print a state, given by its full description, to some file descriptor.
Definition: marmoteSet.cpp:257
virtual ~marmoteSet()
Definition: marmoteSet.cpp:92
long int _cardinal
Definition: marmoteSet.h:56
marmoteSet ** _dimension
Definition: marmoteSet.h:58
virtual void enumerate()
Enumerates the set: lists all elements of the set. PROBLEM: enumerate where? in a file...
Definition: marmoteSet.cpp:129
virtual void firstState(int *buffer)
Procedure that initializes the state buffer to the first state in the set.
Definition: marmoteSet.cpp:171
bool isUnion()
Test if the set is a composite, product set.
Definition: marmoteSet.h:112
bool _isSimple
Definition: marmoteSet.h:51
virtual void nextState(int *buffer)
Procedure to compute the state following a given state in the set order. The new state is computed in...
Definition: marmoteSet.cpp:190
bool _isUnion
Definition: marmoteSet.h:52
virtual void decodeState(int index, int *buffer)
Procedure that converts an index into a state. The state is written in the buffer provided...
Definition: marmoteSet.cpp:211
int * _zeroState
Definition: marmoteSet.h:67
virtual bool isZero(int *buffer)
Function that tests whether a state is the first state (state zero) or not.
Definition: marmoteSet.cpp:148
marmoteSet ** _zone
Definition: marmoteSet.h:57
int _nbDimensions
Definition: marmoteSet.h:54
int index(int *buffer)
Function that computes the number (index) of some state in the order of the set. The base class provi...
Definition: marmoteSet.cpp:232
The mother class representing abstract sets.
Definition: marmoteSet.h:48
int _nbZones
Definition: marmoteSet.h:55
virtual bool isFinite()=0
Test if the set is finite.
bool isSimple()
Test if the set is a simple, elementary set.
Definition: marmoteSet.h:106
bool isProduct()
Test if the set is a composite, product set.
Definition: marmoteSet.h:118
int totNbDims()
Read accessor to the total number of dimensions.
Definition: marmoteSet.h:123