Implementation of a value sequence symmetry. More...
#include <ldsb.hh>
Public Member Functions | |
ValueSequenceSymmetryImp (Space &home, int *_values, unsigned int n, unsigned int seqsize) | |
Constructor for creation. | |
ValueSequenceSymmetryImp (Space &home, const ValueSequenceSymmetryImp< View > &vss) | |
Copy constructor. | |
virtual size_t | dispose (Space &home) |
Disposal. | |
void | update (Literal) |
Left-branch update. | |
virtual ArgArray< Literal > | symmetric (Literal, const ViewArray< View > &) const |
Compute symmetric literals. | |
SymmetryImp< View > * | copy (Space &home) const |
Copy function. | |
ArgArray< Literal > | symmetric (Literal l, const ViewArray< IntView > &x) const |
Compute symmetric literals. | |
ArgArray< Literal > | symmetric (Literal l, const ViewArray< BoolView > &x) const |
Compute symmetric literals. | |
ArgArray< Literal > | symmetric (Literal l, const ViewArray< Set::SetView > &x) const |
Public Member Functions inherited from Gecode::Int::LDSB::SymmetryImp< View > | |
virtual | ~SymmetryImp (void) |
Unused destructor. |
Protected Member Functions | |
int | getVal (unsigned int sequence, unsigned int position) const |
Get the value in the specified sequence at the specified position. (Both are zero-based.) |
Protected Attributes | |
int * | values |
Set of sequences. | |
unsigned int | n_values |
Total number of values (n_seqs * seq_size) | |
unsigned int | seq_size |
Size of each sequence in symmetry. | |
unsigned int | n_seqs |
Number of sequences in symmetry. | |
Support::BitSet< Space > | dead_sequences |
Which sequences are dead. |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Int::LDSB::SymmetryImp< View > | |
static void * | operator new (size_t s, Space &home) |
Placement new operator. | |
static void | operator delete (void *, Space &) |
Return memory to space. | |
static void | operator delete (void *) |
Needed for exceptions. |
Implementation of a value sequence symmetry.
Gecode::Int::LDSB::ValueSequenceSymmetryImp< View >::ValueSequenceSymmetryImp | ( | Space & | home, |
int * | _values, | ||
unsigned int | n, | ||
unsigned int | seqsize ) |
Constructor for creation.
Definition at line 293 of file sym-imp.hpp.
Gecode::Int::LDSB::ValueSequenceSymmetryImp< View >::ValueSequenceSymmetryImp | ( | Space & | home, |
const ValueSequenceSymmetryImp< View > & | vss ) |
Copy constructor.
Definition at line 304 of file sym-imp.hpp.
|
protected |
Get the value in the specified sequence at the specified position. (Both are zero-based.)
Definition at line 287 of file sym-imp.hpp.
|
virtual |
Disposal.
Implements Gecode::Int::LDSB::SymmetryImp< View >.
Definition at line 318 of file sym-imp.hpp.
|
virtual |
Left-branch update.
Implements Gecode::Int::LDSB::SymmetryImp< View >.
Definition at line 326 of file sym-imp.hpp.
|
virtual |
Compute symmetric literals.
Implements Gecode::Int::LDSB::SymmetryImp< View >.
|
virtual |
Copy function.
Implements Gecode::Int::LDSB::SymmetryImp< View >.
Definition at line 349 of file sym-imp.hpp.
ArgArray< Literal > Gecode::Int::LDSB::ValueSequenceSymmetryImp< Int::IntView >::symmetric | ( | Literal | l, |
const ViewArray< IntView > & | x ) const |
Compute symmetric literals.
Definition at line 120 of file sym-imp.cpp.
ArgArray< Literal > Gecode::Int::LDSB::ValueSequenceSymmetryImp< BoolView >::symmetric | ( | Literal | l, |
const ViewArray< BoolView > & | x ) const |
Compute symmetric literals.
Definition at line 141 of file sym-imp.cpp.
ArgArray< Literal > Gecode::Int::LDSB::ValueSequenceSymmetryImp< Set::SetView >::symmetric | ( | Literal | l, |
const ViewArray< Set::SetView > & | x ) const |
Definition at line 140 of file sym-imp.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |