Definition at line 127 of file hamiltonian_path.h.
Public Types | |
| typedef Integer | IntegerType |
| Make this visible to classes using this class. More... | |
Public Member Functions | |
| Set (Integer n) | |
| Construct a set from an Integer. More... | |
| Integer | value () const |
| Returns the integer corresponding to the set. More... | |
| Set | AddElement (int n) const |
| Returns a set equal to the calling object, with element n added. More... | |
| Set | RemoveElement (int n) const |
| Returns a set equal to the calling object, with element n removed. More... | |
| bool | Contains (int n) const |
| Returns true if the calling set contains element n. More... | |
| bool | Includes (Set other) const |
| Returns true if 'other' is included in the calling set. More... | |
| int | Cardinality () const |
| Returns the number of elements in the set. More... | |
| int | SmallestElement () const |
| Returns the index of the smallest element in the set. More... | |
| Set | RemoveSmallestElement () const |
| Returns a set equal to the calling object, with its smallest element removed. More... | |
| int | ElementRank (int n) const |
| Returns the rank of an element in a set. More... | |
| Set | SmallestSingleton () const |
| Returns the set consisting of the smallest element of the calling object. More... | |
| int | SingletonRank (Set singleton) const |
| Returns the rank of the singleton's element in the calling Set. More... | |
| ElementIterator< Set > | begin () const |
| STL iterator-related member functions. More... | |
| ElementIterator< Set > | end () const |
| bool | operator!= (const Set &other) const |
| template<> | |
| int | SmallestElement () const |
| template<> | |
| int | Cardinality () const |
Static Public Member Functions | |
| static Set | FullSet (Integer card) |
| static Set | Singleton (Integer n) |
| Returns the singleton set with 'n' as its only element. More... | |
Static Public Attributes | |
| static const Integer | One = static_cast<Integer>(1) |
| Useful constants. More... | |
| static const Integer | Zero = static_cast<Integer>(0) |
| static const int | MaxCardinality = 8 * sizeof(Integer) |
| typedef Integer operations_research::Set< Integer >::IntegerType |
Make this visible to classes using this class.
Definition at line 130 of file hamiltonian_path.h.
|
inlineexplicit |
Construct a set from an Integer.
Definition at line 138 of file hamiltonian_path.h.
|
inline |
Returns a set equal to the calling object, with element n added.
If n is already in the set, no operation occurs.
Definition at line 155 of file hamiltonian_path.h.
|
inline |
STL iterator-related member functions.
Definition at line 198 of file hamiltonian_path.h.
|
inline |
Returns the number of elements in the set.
Uses the 32-bit version for types that have 32-bits or less. Specialized for uint64.
Definition at line 171 of file hamiltonian_path.h.
|
inline |
Definition at line 215 of file hamiltonian_path.h.
|
inline |
Returns true if the calling set contains element n.
Definition at line 162 of file hamiltonian_path.h.
|
inline |
Returns the rank of an element in a set.
For the set 11100, ElementRank(4) would return 2. (Ranks start at zero).
Definition at line 183 of file hamiltonian_path.h.
|
inline |
Definition at line 201 of file hamiltonian_path.h.
|
inlinestatic |
Definition at line 146 of file hamiltonian_path.h.
|
inline |
Returns true if 'other' is included in the calling set.
Definition at line 165 of file hamiltonian_path.h.
|
inline |
Definition at line 202 of file hamiltonian_path.h.
|
inline |
Returns a set equal to the calling object, with element n removed.
If n is not in the set, no operation occurs.
Definition at line 159 of file hamiltonian_path.h.
|
inline |
Returns a set equal to the calling object, with its smallest element removed.
Definition at line 179 of file hamiltonian_path.h.
|
inlinestatic |
Returns the singleton set with 'n' as its only element.
Definition at line 151 of file hamiltonian_path.h.
|
inline |
Returns the rank of the singleton's element in the calling Set.
Definition at line 192 of file hamiltonian_path.h.
|
inline |
Returns the index of the smallest element in the set.
Uses the 32-bit version for types that have 32-bits or less. Specialized for uint64.
Definition at line 175 of file hamiltonian_path.h.
|
inline |
Definition at line 210 of file hamiltonian_path.h.
|
inline |
Returns the set consisting of the smallest element of the calling object.
Definition at line 189 of file hamiltonian_path.h.
|
inline |
Returns the integer corresponding to the set.
Definition at line 144 of file hamiltonian_path.h.
|
static |
Definition at line 135 of file hamiltonian_path.h.
|
static |
Useful constants.
Definition at line 133 of file hamiltonian_path.h.
|
static |
Definition at line 134 of file hamiltonian_path.h.