Generated on Tue Aug 27 2024 03:47:35 for Gecode by doxygen 1.9.8
Gecode::Int::LDSB::ValueSymmetryImp< View > Class Template Reference

Implementation of a value symmetry. More...

#include <ldsb.hh>

Public Member Functions

 ValueSymmetryImp (Space &home, int *vs, unsigned int n)
 Constructor for creation.
 
 ValueSymmetryImp (Space &home, const ValueSymmetryImp< View > &other)
 Copy constructor.
 
virtual size_t dispose (Space &home)
 Disposal.
 
void update (Literal)
 Left-branch update.
 
virtual ArgArray< Literalsymmetric (Literal, const ViewArray< View > &) const
 Compute symmetric literals.
 
SymmetryImp< View > * copy (Space &home) const
 Copy function.
 
ArgArray< Literalsymmetric (Literal l, const ViewArray< IntView > &x) const
 Compute symmetric literals.
 
ArgArray< Literalsymmetric (Literal l, const ViewArray< BoolView > &x) const
 Compute symmetric literals.
 
ArgArray< Literalsymmetric (Literal l, const ViewArray< Set::SetView > &x) const
 
- Public Member Functions inherited from Gecode::Int::LDSB::SymmetryImp< View >
virtual ~SymmetryImp (void)
 Unused destructor.
 

Public Attributes

Support::BitSetOffset< Spacevalues
 Symmetric values.
 

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.
 

Detailed Description

template<class View>
class Gecode::Int::LDSB::ValueSymmetryImp< View >

Implementation of a value symmetry.

Definition at line 203 of file ldsb.hh.

Constructor & Destructor Documentation

◆ ValueSymmetryImp() [1/2]

template<class View >
Gecode::Int::LDSB::ValueSymmetryImp< View >::ValueSymmetryImp ( Space home,
int *  vs,
unsigned int  n 
)

Constructor for creation.

Definition at line 122 of file sym-imp.hpp.

◆ ValueSymmetryImp() [2/2]

template<class View >
Gecode::Int::LDSB::ValueSymmetryImp< View >::ValueSymmetryImp ( Space home,
const ValueSymmetryImp< View > &  other 
)

Copy constructor.

Definition at line 144 of file sym-imp.hpp.

Member Function Documentation

◆ dispose()

template<class View >
size_t Gecode::Int::LDSB::ValueSymmetryImp< View >::dispose ( Space home)
virtual

Disposal.

Implements Gecode::Int::LDSB::SymmetryImp< View >.

Definition at line 150 of file sym-imp.hpp.

◆ update()

template<class View >
void Gecode::Int::LDSB::ValueSymmetryImp< View >::update ( Literal  l)
virtual

Left-branch update.

Implements Gecode::Int::LDSB::SymmetryImp< View >.

Definition at line 158 of file sym-imp.hpp.

◆ symmetric() [1/4]

template<class View >
virtual ArgArray< Literal > Gecode::Int::LDSB::ValueSymmetryImp< View >::symmetric ( Literal  ,
const ViewArray< View > &   
) const
virtual

Compute symmetric literals.

Implements Gecode::Int::LDSB::SymmetryImp< View >.

◆ copy()

template<class View >
SymmetryImp< View > * Gecode::Int::LDSB::ValueSymmetryImp< View >::copy ( Space home) const
virtual

Copy function.

Implements Gecode::Int::LDSB::SymmetryImp< View >.

Definition at line 165 of file sym-imp.hpp.

◆ symmetric() [2/4]

ArgArray< Literal > Gecode::Int::LDSB::ValueSymmetryImp< IntView >::symmetric ( Literal  l,
const ViewArray< IntView > &  x 
) const

Compute symmetric literals.

Definition at line 81 of file sym-imp.cpp.

◆ symmetric() [3/4]

ArgArray< Literal > Gecode::Int::LDSB::ValueSymmetryImp< BoolView >::symmetric ( Literal  l,
const ViewArray< BoolView > &  x 
) const

Compute symmetric literals.

Definition at line 100 of file sym-imp.cpp.

◆ symmetric() [4/4]

Definition at line 77 of file sym-imp.cpp.

Member Data Documentation

◆ values

template<class View >
Support::BitSetOffset<Space> Gecode::Int::LDSB::ValueSymmetryImp< View >::values

Symmetric values.

Definition at line 207 of file ldsb.hh.


The documentation for this class was generated from the following files: