OR-Tools  8.2
RevMap< Map >

Detailed Description

template<class Map>
class operations_research::RevMap< Map >

Definition at line 155 of file rev.h.

Public Types

typedef Map::key_type key_type
 
typedef Map::mapped_type mapped_type
 
typedef Map::value_type value_type
 
typedef Map::const_iterator const_iterator
 

Public Member Functions

void SetLevel (int level) final
 
int Level () const
 
bool ContainsKey (key_type key) const
 
const mapped_typeFindOrDie (key_type key) const
 
void EraseOrDie (key_type key)
 
void Set (key_type key, mapped_type value)
 
int size () const
 
bool empty () const
 
const_iterator find (const key_type &k) const
 
const_iterator begin () const
 
const_iterator end () const
 

Member Typedef Documentation

◆ const_iterator

typedef Map::const_iterator const_iterator

Definition at line 160 of file rev.h.

◆ key_type

typedef Map::key_type key_type

Definition at line 157 of file rev.h.

◆ mapped_type

typedef Map::mapped_type mapped_type

Definition at line 158 of file rev.h.

◆ value_type

typedef Map::value_type value_type

Definition at line 159 of file rev.h.

Member Function Documentation

◆ begin()

const_iterator begin ( ) const
inline

Definition at line 183 of file rev.h.

◆ ContainsKey()

bool ContainsKey ( key_type  key) const
inline

Definition at line 171 of file rev.h.

◆ empty()

bool empty ( ) const
inline

Definition at line 181 of file rev.h.

◆ end()

const_iterator end ( ) const
inline

Definition at line 184 of file rev.h.

◆ EraseOrDie()

void EraseOrDie ( key_type  key)

Definition at line 228 of file rev.h.

◆ find()

const_iterator find ( const key_type k) const
inline

Definition at line 182 of file rev.h.

◆ FindOrDie()

const mapped_type& FindOrDie ( key_type  key) const
inline

Definition at line 172 of file rev.h.

◆ Level()

int Level ( ) const
inline

Definition at line 169 of file rev.h.

◆ Set()

void Set ( key_type  key,
mapped_type  value 
)

Definition at line 238 of file rev.h.

◆ SetLevel()

void SetLevel ( int  level)
finalvirtual

Implements ReversibleInterface.

Definition at line 206 of file rev.h.

◆ size()

int size ( ) const
inline

Definition at line 180 of file rev.h.


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