OR-Tools  9.3
StrongInt< StrongIntName, _ValueType >

Detailed Description

template<typename StrongIntName, typename _ValueType>
class util_intops::StrongInt< StrongIntName, _ValueType >

Definition at line 184 of file strong_int.h.

Classes

struct  Hasher
 

Public Types

typedef _ValueType ValueType
 
typedef StrongInt< StrongIntName, ValueTypeThisType
 

Public Member Functions

constexpr StrongInt ()
 
constexpr StrongInt (ValueType value)
 
constexpr ValueType value () const
 
template<typename ValType >
constexpr ValType value () const
 
ThisTypeoperator++ ()
 
const ThisType operator++ (int v)
 
ThisTypeoperator-- ()
 
const ThisType operator-- (int v)
 
constexpr bool operator! () const
 
constexpr const ThisType operator+ () const
 
constexpr const ThisType operator- () const
 
constexpr const ThisType operator~ () const
 
 STRONG_INT_TYPE_ASSIGNMENT_OP (+=)
 
 STRONG_INT_TYPE_ASSIGNMENT_OP (-=)
 
STRONG_INT_TYPE_ASSIGNMENT_OP * STRONG_INT_TYPE_ASSIGNMENT_OP (/=);STRONG_INT_TYPE_ASSIGNMENT_OP(<<=
 
 STRONG_INT_TYPE_ASSIGNMENT_OP (> >=)
 
 STRONG_INT_TYPE_ASSIGNMENT_OP (%=)
 
ThisTypeoperator= (ValueType arg_value)
 

Static Public Member Functions

static constexpr absl::string_view TypeName ()
 

Member Typedef Documentation

◆ ThisType

typedef StrongInt<StrongIntName, ValueType> ThisType

Definition at line 187 of file strong_int.h.

◆ ValueType

typedef _ValueType ValueType

Definition at line 186 of file strong_int.h.

Constructor & Destructor Documentation

◆ StrongInt() [1/2]

constexpr StrongInt ( )
inlineconstexpr

Definition at line 202 of file strong_int.h.

◆ StrongInt() [2/2]

constexpr StrongInt ( ValueType  value)
inlineexplicitconstexpr

Definition at line 204 of file strong_int.h.

Member Function Documentation

◆ operator!()

constexpr bool operator! ( ) const
inlineconstexpr

Definition at line 241 of file strong_int.h.

◆ operator+()

constexpr const ThisType operator+ ( ) const
inlineconstexpr

Definition at line 242 of file strong_int.h.

◆ operator++() [1/2]

ThisType & operator++ ( )
inline

Definition at line 222 of file strong_int.h.

◆ operator++() [2/2]

const ThisType operator++ ( int  v)
inline

Definition at line 226 of file strong_int.h.

◆ operator-()

constexpr const ThisType operator- ( ) const
inlineconstexpr

Definition at line 243 of file strong_int.h.

◆ operator--() [1/2]

ThisType & operator-- ( )
inline

Definition at line 231 of file strong_int.h.

◆ operator--() [2/2]

const ThisType operator-- ( int  v)
inline

Definition at line 235 of file strong_int.h.

◆ operator=()

ThisType & operator= ( ValueType  arg_value)
inline

Definition at line 267 of file strong_int.h.

◆ operator~()

constexpr const ThisType operator~ ( ) const
inlineconstexpr

Definition at line 244 of file strong_int.h.

◆ STRONG_INT_TYPE_ASSIGNMENT_OP() [1/5]

STRONG_INT_TYPE_ASSIGNMENT_OP ( )

◆ STRONG_INT_TYPE_ASSIGNMENT_OP() [2/5]

STRONG_INT_TYPE_ASSIGNMENT_OP ( )

◆ STRONG_INT_TYPE_ASSIGNMENT_OP() [3/5]

STRONG_INT_TYPE_ASSIGNMENT_OP ( )

◆ STRONG_INT_TYPE_ASSIGNMENT_OP() [4/5]

STRONG_INT_TYPE_ASSIGNMENT_OP * STRONG_INT_TYPE_ASSIGNMENT_OP ( )

◆ STRONG_INT_TYPE_ASSIGNMENT_OP() [5/5]

STRONG_INT_TYPE_ASSIGNMENT_OP ( >=  )

◆ TypeName()

static constexpr absl::string_view TypeName ( )
inlinestaticconstexpr

Definition at line 189 of file strong_int.h.

◆ value() [1/2]

constexpr ValueType value ( ) const
inlineconstexpr

Definition at line 214 of file strong_int.h.

◆ value() [2/2]

constexpr ValType value ( ) const
inlineconstexpr

Definition at line 217 of file strong_int.h.


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