OR-Tools  8.2
IntType< IntTypeName, _ValueType >

Detailed Description

template<typename IntTypeName, typename _ValueType>
class gtl::IntType< IntTypeName, _ValueType >

Definition at line 183 of file int_type.h.

Classes

struct  Hasher
 

Public Types

typedef _ValueType ValueType
 
typedef IntType< IntTypeName, ValueTypeThisType
 

Public Member Functions

constexpr IntType ()
 
constexpr IntType (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
 
 INT_TYPE_ASSIGNMENT_OP (+=)
 
 INT_TYPE_ASSIGNMENT_OP (-=)
 
INT_TYPE_ASSIGNMENT_OP * INT_TYPE_ASSIGNMENT_OP (/=);INT_TYPE_ASSIGNMENT_OP(<<=
 
 INT_TYPE_ASSIGNMENT_OP (> >=)
 
 INT_TYPE_ASSIGNMENT_OP (%=)
 
ThisTypeoperator= (ValueType arg_value)
 

Static Public Member Functions

static constexpr absl::string_view TypeName ()
 

Member Typedef Documentation

◆ ThisType

typedef IntType<IntTypeName, ValueType> ThisType

Definition at line 186 of file int_type.h.

◆ ValueType

typedef _ValueType ValueType

Definition at line 185 of file int_type.h.

Constructor & Destructor Documentation

◆ IntType() [1/2]

constexpr IntType ( )
inlineconstexpr

Definition at line 201 of file int_type.h.

◆ IntType() [2/2]

constexpr IntType ( ValueType  value)
inlineexplicitconstexpr

Definition at line 203 of file int_type.h.

Member Function Documentation

◆ INT_TYPE_ASSIGNMENT_OP() [1/5]

INT_TYPE_ASSIGNMENT_OP ( )

◆ INT_TYPE_ASSIGNMENT_OP() [2/5]

INT_TYPE_ASSIGNMENT_OP ( )

◆ INT_TYPE_ASSIGNMENT_OP() [3/5]

INT_TYPE_ASSIGNMENT_OP ( )

◆ INT_TYPE_ASSIGNMENT_OP() [4/5]

INT_TYPE_ASSIGNMENT_OP * INT_TYPE_ASSIGNMENT_OP ( )

◆ INT_TYPE_ASSIGNMENT_OP() [5/5]

INT_TYPE_ASSIGNMENT_OP ( >=  )

◆ operator!()

constexpr bool operator! ( ) const
inlineconstexpr

Definition at line 240 of file int_type.h.

◆ operator+()

constexpr const ThisType operator+ ( ) const
inlineconstexpr

Definition at line 241 of file int_type.h.

◆ operator++() [1/2]

ThisType & operator++ ( )
inline

Definition at line 221 of file int_type.h.

◆ operator++() [2/2]

const ThisType operator++ ( int  v)
inline

Definition at line 225 of file int_type.h.

◆ operator-()

constexpr const ThisType operator- ( ) const
inlineconstexpr

Definition at line 242 of file int_type.h.

◆ operator--() [1/2]

ThisType & operator-- ( )
inline

Definition at line 230 of file int_type.h.

◆ operator--() [2/2]

const ThisType operator-- ( int  v)
inline

Definition at line 234 of file int_type.h.

◆ operator=()

ThisType & operator= ( ValueType  arg_value)
inline

Definition at line 266 of file int_type.h.

◆ operator~()

constexpr const ThisType operator~ ( ) const
inlineconstexpr

Definition at line 243 of file int_type.h.

◆ TypeName()

static constexpr absl::string_view TypeName ( )
inlinestaticconstexpr

Definition at line 188 of file int_type.h.

◆ value() [1/2]

constexpr ValueType value ( ) const
inlineconstexpr

Definition at line 213 of file int_type.h.

◆ value() [2/2]

constexpr ValType value ( ) const
inlineconstexpr

Definition at line 216 of file int_type.h.


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