OR-Tools  9.6
RevMap< Map >

Detailed Description

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

Definition at line 154 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 contains (key_type key) const
 
const mapped_typeat (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 159 of file rev.h.

◆ key_type

typedef Map::key_type key_type

Definition at line 156 of file rev.h.

◆ mapped_type

typedef Map::mapped_type mapped_type

Definition at line 157 of file rev.h.

◆ value_type

typedef Map::value_type value_type

Definition at line 158 of file rev.h.

Member Function Documentation

◆ at()

const mapped_type& at ( key_type  key) const
inline

Definition at line 171 of file rev.h.

◆ begin()

const_iterator begin ( ) const
inline

Definition at line 180 of file rev.h.

◆ contains()

bool contains ( key_type  key) const
inline

Definition at line 170 of file rev.h.

◆ empty()

bool empty ( ) const
inline

Definition at line 178 of file rev.h.

◆ end()

const_iterator end ( ) const
inline

Definition at line 181 of file rev.h.

◆ EraseOrDie()

void EraseOrDie ( key_type  key)

Definition at line 225 of file rev.h.

◆ find()

const_iterator find ( const key_type k) const
inline

Definition at line 179 of file rev.h.

◆ Level()

int Level ( ) const
inline

Definition at line 168 of file rev.h.

◆ Set()

void Set ( key_type  key,
mapped_type  value 
)

Definition at line 235 of file rev.h.

◆ SetLevel()

void SetLevel ( int  level)
finalvirtual

Implements ReversibleInterface.

Definition at line 203 of file rev.h.

◆ size()

int size ( ) const
inline

Definition at line 177 of file rev.h.


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