OR-Tools  9.3
StrongIndex< StrongIndexName >

Detailed Description

template<typename StrongIndexName>
class operations_research::StrongIndex< StrongIndexName >

Definition at line 138 of file strong_integers.h.

Public Types

typedef int ValueType
 
typedef StrongIndex< StrongIndexName > ThisType
 

Public Member Functions

struct ABSL_DEPRECATED ("Use absl::Hash instead") Hasher
 
constexpr StrongIndex ()
 
constexpr StrongIndex (int value)
 
StrongIndexoperator= (int arg_value)
 
constexpr int value () const
 
template<typename ValType >
constexpr ValType value () const
 
constexpr const ThisType operator+ () const
 
constexpr const ThisType operator- () const
 
 STRONG_ASSIGNMENT_OP (StrongIndex, int,+=)
 
 STRONG_ASSIGNMENT_OP (StrongIndex, int, -=)
 

Static Public Member Functions

static constexpr absl::string_view TypeName ()
 

Public Attributes

 INCREMENT_AND_DECREMENT_OPERATORS
 

Member Typedef Documentation

◆ ThisType

typedef StrongIndex<StrongIndexName> ThisType

Definition at line 141 of file strong_integers.h.

◆ ValueType

typedef int ValueType

Definition at line 140 of file strong_integers.h.

Constructor & Destructor Documentation

◆ StrongIndex() [1/2]

constexpr StrongIndex ( )
inlineconstexpr

Definition at line 153 of file strong_integers.h.

◆ StrongIndex() [2/2]

constexpr StrongIndex ( int  value)
inlineconstexpr

Definition at line 156 of file strong_integers.h.

Member Function Documentation

◆ ABSL_DEPRECATED()

struct ABSL_DEPRECATED ( "Use absl::Hash instead"  )
inline

Definition at line 143 of file strong_integers.h.

◆ operator+()

constexpr const ThisType operator+ ( ) const
inlineconstexpr

Definition at line 174 of file strong_integers.h.

◆ operator-()

constexpr const ThisType operator- ( ) const
inlineconstexpr

Definition at line 175 of file strong_integers.h.

◆ operator=()

StrongIndex & operator= ( int  arg_value)
inline

Definition at line 159 of file strong_integers.h.

◆ STRONG_ASSIGNMENT_OP() [1/2]

STRONG_ASSIGNMENT_OP ( StrongIndex< StrongIndexName >  ,
int  ,
 
)

◆ STRONG_ASSIGNMENT_OP() [2/2]

STRONG_ASSIGNMENT_OP ( StrongIndex< StrongIndexName >  ,
int  ,
 
)

◆ TypeName()

static constexpr absl::string_view TypeName ( )
inlinestaticconstexpr

Definition at line 143 of file strong_integers.h.

◆ value() [1/2]

constexpr int value ( ) const
inlineconstexpr

Definition at line 167 of file strong_integers.h.

◆ value() [2/2]

constexpr ValType value ( ) const
inlineconstexpr

Definition at line 170 of file strong_integers.h.

Member Data Documentation

◆ INCREMENT_AND_DECREMENT_OPERATORS

INCREMENT_AND_DECREMENT_OPERATORS

Definition at line 177 of file strong_integers.h.


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