operations_research::SetRangeWithCardinality< Set > Class Template Reference

Detailed Description

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

Definition at line 257 of file hamiltonian_path.h.

Public Types

typedef Set SetType
 

Public Member Functions

 SetRangeWithCardinality (int card, int max_card)
 The end_ set is the first set with cardinality card, that does not fit in max_card bits. More...
 
SetRangeIterator< SetRangeWithCardinalitybegin () const
 STL iterator-related methods. More...
 
SetRangeIterator< SetRangeWithCardinalityend () const
 

Member Typedef Documentation

◆ SetType

template<typename Set >
typedef Set operations_research::SetRangeWithCardinality< Set >::SetType

Definition at line 259 of file hamiltonian_path.h.

Constructor & Destructor Documentation

◆ SetRangeWithCardinality()

template<typename Set >
operations_research::SetRangeWithCardinality< Set >::SetRangeWithCardinality ( int  card,
int  max_card 
)
inline

The end_ set is the first set with cardinality card, that does not fit in max_card bits.

Thus, its bit at position max_card is set, and the rightmost (card - 1) bits are set.

Definition at line 263 of file hamiltonian_path.h.

Member Function Documentation

◆ begin()

STL iterator-related methods.

Definition at line 273 of file hamiltonian_path.h.

◆ end()

Definition at line 276 of file hamiltonian_path.h.


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