Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::Set< Integer > Class Template Reference

Detailed Description

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

Definition at line 132 of file hamiltonian_path.h.

#include <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 kOne = Integer{1}
static constexpr Integer kZero = Integer{0}
static constexpr int kMaxCardinality = std::numeric_limits<Integer>::digits

Member Typedef Documentation

◆ IntegerType

template<typename Integer>
typedef Integer operations_research::Set< Integer >::IntegerType

Definition at line 135 of file hamiltonian_path.h.

Constructor & Destructor Documentation

◆ Set()

template<typename Integer>
operations_research::Set< Integer >::Set ( Integer n)
inlineexplicit

Definition at line 143 of file hamiltonian_path.h.

Member Function Documentation

◆ AddElement()

template<typename Integer>
Set operations_research::Set< Integer >::AddElement ( int n) const
inline

Definition at line 160 of file hamiltonian_path.h.

◆ begin()

template<typename Integer>
ElementIterator< Set > operations_research::Set< Integer >::begin ( ) const
inline

Definition at line 203 of file hamiltonian_path.h.

◆ Cardinality() [1/2]

int operations_research::Set< uint64_t >::Cardinality ( ) const
inline

Definition at line 220 of file hamiltonian_path.h.

◆ Cardinality() [2/2]

template<typename Integer>
int operations_research::Set< Integer >::Cardinality ( ) const
inline

Definition at line 176 of file hamiltonian_path.h.

◆ Contains()

template<typename Integer>
bool operations_research::Set< Integer >::Contains ( int n) const
inline

Definition at line 167 of file hamiltonian_path.h.

◆ ElementRank()

template<typename Integer>
int operations_research::Set< Integer >::ElementRank ( int n) const
inline

Definition at line 188 of file hamiltonian_path.h.

◆ end()

template<typename Integer>
ElementIterator< Set > operations_research::Set< Integer >::end ( ) const
inline

Definition at line 206 of file hamiltonian_path.h.

◆ FullSet()

template<typename Integer>
Set operations_research::Set< Integer >::FullSet ( Integer card)
inlinestatic

Definition at line 151 of file hamiltonian_path.h.

◆ Includes()

template<typename Integer>
bool operations_research::Set< Integer >::Includes ( Set< Integer > other) const
inline

Definition at line 170 of file hamiltonian_path.h.

◆ operator!=()

template<typename Integer>
bool operations_research::Set< Integer >::operator!= ( const Set< Integer > & other) const
inline

Definition at line 207 of file hamiltonian_path.h.

◆ RemoveElement()

template<typename Integer>
Set operations_research::Set< Integer >::RemoveElement ( int n) const
inline

Definition at line 164 of file hamiltonian_path.h.

◆ RemoveSmallestElement()

template<typename Integer>
Set operations_research::Set< Integer >::RemoveSmallestElement ( ) const
inline

Definition at line 184 of file hamiltonian_path.h.

◆ Singleton()

template<typename Integer>
Set operations_research::Set< Integer >::Singleton ( Integer n)
inlinestatic

Definition at line 156 of file hamiltonian_path.h.

◆ SingletonRank()

template<typename Integer>
int operations_research::Set< Integer >::SingletonRank ( Set< Integer > singleton) const
inline

Definition at line 197 of file hamiltonian_path.h.

◆ SmallestElement() [1/2]

int operations_research::Set< uint64_t >::SmallestElement ( ) const
inline

Definition at line 215 of file hamiltonian_path.h.

◆ SmallestElement() [2/2]

template<typename Integer>
int operations_research::Set< Integer >::SmallestElement ( ) const
inline

Definition at line 180 of file hamiltonian_path.h.

◆ SmallestSingleton()

template<typename Integer>
Set operations_research::Set< Integer >::SmallestSingleton ( ) const
inline

Definition at line 194 of file hamiltonian_path.h.

◆ value()

template<typename Integer>
Integer operations_research::Set< Integer >::value ( ) const
inline

Definition at line 149 of file hamiltonian_path.h.

Member Data Documentation

◆ kMaxCardinality

template<typename Integer>
int operations_research::Set< Integer >::kMaxCardinality = std::numeric_limits<Integer>::digits
staticconstexpr

Definition at line 140 of file hamiltonian_path.h.

◆ kOne

template<typename Integer>
Integer operations_research::Set< Integer >::kOne = Integer{1}
staticconstexpr

Definition at line 138 of file hamiltonian_path.h.

◆ kZero

template<typename Integer>
Integer operations_research::Set< Integer >::kZero = Integer{0}
staticconstexpr

Definition at line 139 of file hamiltonian_path.h.


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