30 #ifndef MARMOTEINTERVAL_H
31 #define MARMOTEINTERVAL_H
32 #include "marmoteSet.h"
81 int index(
int* buffer);
96 #endif // MARMOTEINTERVAL_H
void enumerate()
Enumeration procedure.
marmoteInterval(int min, int max)
Definition: marmoteInterval.cpp:20
bool isFinite()
Test if the set is finite. These sets always are.
Definition: marmoteInterval.h:60
bool isZero(int *buffer)
Function that tests whether a state is the first state (state zero) or not.
Definition: marmoteInterval.cpp:43
void printState(FILE *out, int *buffer)
Procedure to print a state, given by its full description, to some file descriptor.
Definition: marmoteInterval.cpp:79
int index(int *buffer)
Function that computes the number (index) of some state in the order of the set. The base class provi...
Definition: marmoteInterval.cpp:71
void firstState(int *buffer)
Initializes some state buffer with the first state of the set.
Definition: marmoteInterval.cpp:51
void decodeState(int index, int *buffer)
Procedure that converts an index into a state. The state is written in the buffer provided...
Definition: marmoteInterval.cpp:65
int _min
Definition: marmoteInterval.h:41
The mother class representing abstract sets.
Definition: marmoteSet.h:48
int _max
Definition: marmoteInterval.h:42
void nextState(int *buffer)
Procedure to compute the state following a given state in the set order. The new state is computed in...
Definition: marmoteInterval.cpp:57
The class describing a finite integer interval.
Definition: marmoteInterval.h:38