C++ Reference

C++ Reference: Graph

Set< Integer >

Detailed Description

template<typename Integer>
class operations_research::Set< Integer >

Definition at line 127 of file hamiltonian_path.h.

Public Types

typedef Integer IntegerType
 

Public Member Functions

 Set (Integer n)
 
Integer value () const
 
Set AddElement (int n) const
 
Set RemoveElement (int n) const
 
bool Contains (int n) const
 
bool Includes (Set other) const
 
int Cardinality () const
 
int SmallestElement () const
 
Set RemoveSmallestElement () const
 
int ElementRank (int n) const
 
Set SmallestSingleton () const
 
int SingletonRank (Set singleton) const
 
ElementIterator< Setbegin () const
 
ElementIterator< Setend () const
 
bool operator!= (const Set &other) const
 
int SmallestElement () const
 
int Cardinality () const
 

Static Public Member Functions

static Set FullSet (Integer card)
 
static Set Singleton (Integer n)
 

Static Public Attributes

static constexpr Integer One = static_cast<Integer>(1)
 
static constexpr Integer Zero = static_cast<Integer>(0)
 
static const int MaxCardinality = 8 * sizeof(Integer)
 

Member Typedef Documentation

◆ IntegerType

typedef Integer IntegerType

Definition at line 130 of file hamiltonian_path.h.

Constructor & Destructor Documentation

◆ Set()

Set ( Integer  n)
inlineexplicit

Definition at line 138 of file hamiltonian_path.h.

Member Function Documentation

◆ AddElement()

Set AddElement ( int  n) const
inline

Definition at line 155 of file hamiltonian_path.h.

◆ begin()

ElementIterator<Set> begin ( ) const
inline

Definition at line 198 of file hamiltonian_path.h.

◆ Cardinality() [1/2]

int Cardinality ( ) const
inline

Definition at line 171 of file hamiltonian_path.h.

◆ Cardinality() [2/2]

int Cardinality ( ) const
inline

Definition at line 215 of file hamiltonian_path.h.

◆ Contains()

bool Contains ( int  n) const
inline

Definition at line 162 of file hamiltonian_path.h.

◆ ElementRank()

int ElementRank ( int  n) const
inline

Definition at line 183 of file hamiltonian_path.h.

◆ end()

ElementIterator<Set> end ( ) const
inline

Definition at line 201 of file hamiltonian_path.h.

◆ FullSet()

static Set FullSet ( Integer  card)
inlinestatic

Definition at line 146 of file hamiltonian_path.h.

◆ Includes()

bool Includes ( Set< Integer >  other) const
inline

Definition at line 165 of file hamiltonian_path.h.

◆ operator!=()

bool operator!= ( const Set< Integer > &  other) const
inline

Definition at line 202 of file hamiltonian_path.h.

◆ RemoveElement()

Set RemoveElement ( int  n) const
inline

Definition at line 159 of file hamiltonian_path.h.

◆ RemoveSmallestElement()

Set RemoveSmallestElement ( ) const
inline

Definition at line 179 of file hamiltonian_path.h.

◆ Singleton()

static Set Singleton ( Integer  n)
inlinestatic

Definition at line 151 of file hamiltonian_path.h.

◆ SingletonRank()

int SingletonRank ( Set< Integer >  singleton) const
inline

Definition at line 192 of file hamiltonian_path.h.

◆ SmallestElement() [1/2]

int SmallestElement ( ) const
inline

Definition at line 175 of file hamiltonian_path.h.

◆ SmallestElement() [2/2]

int SmallestElement ( ) const
inline

Definition at line 210 of file hamiltonian_path.h.

◆ SmallestSingleton()

Set SmallestSingleton ( ) const
inline

Definition at line 189 of file hamiltonian_path.h.

◆ value()

Integer value ( ) const
inline

Definition at line 144 of file hamiltonian_path.h.

Member Data Documentation

◆ MaxCardinality

const int MaxCardinality = 8 * sizeof(Integer)
static

Definition at line 135 of file hamiltonian_path.h.

◆ One

constexpr Integer One = static_cast<Integer>(1)
staticconstexpr

Definition at line 133 of file hamiltonian_path.h.

◆ Zero

constexpr Integer Zero = static_cast<Integer>(0)
staticconstexpr

Definition at line 134 of file hamiltonian_path.h.


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