class_conspartition.cpp
Go to the documentation of this file.
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
72int ConsPartition::addClass(const char* givenName, const char* givenDesc, CONS_DECOMPINFO givenDecompInfo)
87std::vector<std::vector<int>> ConsPartition::getAllSubsets(bool both, bool only_master, bool only_pricing )
92 if( ( both && getClassDecompInfo( i ) == BOTH ) || ( only_master && getClassDecompInfo( i ) == ONLY_MASTER )
217 assert(givenDecompInfo == BOTH || givenDecompInfo == ONLY_MASTER || givenDecompInfo == ONLY_PRICING );
class representing a partition of a set of constraints
Definition: class_conspartition.h:60
GCG_EXPORT void assignConsToClass(int consindex, int classindex)
Definition: class_conspartition.cpp:81
GCG_EXPORT const int * getConssToClasses()
Definition: class_conspartition.cpp:139
GCG_EXPORT void setClassDecompInfo(int classindex, CONS_DECOMPINFO decompInfo)
Definition: class_conspartition.cpp:215
GCG_EXPORT ConsPartition(GCG *gcgstruct, const char *name, int nClasses, int nConss)
Definition: class_conspartition.cpp:48
GCG_EXPORT int addClass(const char *name, const char *desc, CONS_DECOMPINFO decompInfo)
Definition: class_conspartition.cpp:72
GCG_EXPORT std::vector< int > getNConssOfClasses()
Definition: class_conspartition.cpp:155
GCG_EXPORT int getClassOfCons(int consindex)
Definition: class_conspartition.cpp:133
GCG_EXPORT ConsPartition * reduceClasses(int maxNumberOfClasses)
Definition: class_conspartition.cpp:168
GCG_EXPORT const char * getClassNameOfCons(int consindex)
Definition: class_conspartition.cpp:127
GCG_EXPORT bool isConsClassified(int consindex)
Definition: class_conspartition.cpp:162
GCG_EXPORT CONS_DECOMPINFO getClassDecompInfo(int classindex)
Definition: class_conspartition.cpp:100
GCG_EXPORT std::vector< std::vector< int > > getAllSubsets(bool both, bool only_master, bool only_pricing)
Definition: class_conspartition.cpp:87
Definition: class_indexpartition.h:53
int getClassOfIndex(int index)
Definition: class_indexpartition.cpp:219
GCG_EXPORT int getNClasses()
Definition: class_indexpartition.cpp:241
GCG_EXPORT std::vector< int > reduceClasses(int maxNumberOfClasses)
Definition: class_indexpartition.cpp:277
GCG_EXPORT const char * getClassName(int classindex)
Definition: class_indexpartition.cpp:201
std::vector< int > getNIndicesOfClasses()
Definition: class_indexpartition.cpp:253
GCG_EXPORT const char * getName()
Definition: class_indexpartition.cpp:234
std::vector< int > & getIndicesToClasses()
Definition: class_indexpartition.cpp:227
GCG_EXPORT void setClassDescription(int classindex, const char *desc)
Definition: class_indexpartition.cpp:366
void assignIndexToClass(int index, int classindex)
Definition: class_indexpartition.cpp:111
int getClassDecompInfo(int classindex)
Definition: class_indexpartition.cpp:185
bool isIndexClassified(int index)
Definition: class_indexpartition.cpp:269
GCG_EXPORT const char * getClassDescription(int classindex)
Definition: class_indexpartition.cpp:193
int addClass(const char *name, const char *desc)
Definition: class_indexpartition.cpp:93
const char * getClassNameOfIndex(int index)
Definition: class_indexpartition.cpp:209
GCG_EXPORT void setClassName(int classindex, const char *name)
Definition: class_indexpartition.cpp:374
std::vector< std::vector< int > > getAllSubsets(std::vector< int > &classindices)
Definition: class_indexpartition.cpp:165
void setClassDecompInfo(int classindex, int decompInfo)
Definition: class_indexpartition.cpp:358
#define NULL
Definition: class_conspartition.cpp:44
Definition: struct_gcg.h:55