AngelCAD  1.5-00
Public Member Functions | List of all members
map Class Reference

Template container storing sorted keys and values: map<T_key,T_value> More...

#include <angelcad.h>

Public Member Functions

 map (int &in)
 
 map (int &in, map< T_key, T_value >@)
 
T_value & find (const T_key &in)
 
T_value & find (const T_key &in, bool &out)
 
bool contains (const T_key &in)
 
bool empty ()
 
bool erase (const map_iterator< T_key, T_value > &in)
 
const T_value & get_opIndex (const T_key &in) const
 
int erase (const map_iterator< T_key, T_value > &in, const map_iterator< T_key, T_value > &in)
 
int size ()
 
map< T_key, T_value > & opAssign (map< T_key, T_value >@)
 
map< T_key, T_value > & swap (map< T_key, T_value > &inout)
 
map_iterator< T_key, T_value > begin ()
 
map_iterator< T_key, T_value > end ()
 
map_iterator< T_key, T_value > find_iterator (const T_key &in)
 
void SetDirectcomp (bool)
 
void clear ()
 
void erase (const T_key &in)
 
void insert (const T_key &in, const T_value &in)
 
void set_opIndex (const T_key &in, const T_value &in)
 

Detailed Description

Template container storing sorted keys and values: map<T_key,T_value>

basic use:
map<int,string> cont;
cont.insert(2,"bb");
cont.insert(1,"aa");
cont.insert(3,"cc");
for(auto it = cont.begin(); it++;) cout << it.key << it.value << endl;

Constructor & Destructor Documentation

◆ map() [1/2]

map::map ( int &  in)
Parameters
int

◆ map() [2/2]

map::map ( int &  in,
map< T_key, T_value >@   
)
Parameters
int
map

Member Function Documentation

◆ begin()

map_iterator<T_key,T_value> map::begin ( )
Returns
map_iterator

◆ clear()

void map::clear ( )

◆ contains()

bool map::contains ( const T_key &  in)
Parameters
constT_key&
Returns
bool

◆ empty()

bool map::empty ( )
Returns
bool

◆ end()

map_iterator<T_key,T_value> map::end ( )
Returns
map_iterator

◆ erase() [1/3]

bool map::erase ( const map_iterator< T_key, T_value > &  in)
Parameters
constmap_iterator&
Returns
bool

◆ erase() [2/3]

int map::erase ( const map_iterator< T_key, T_value > &  in,
const map_iterator< T_key, T_value > &  in 
)
Parameters
constmap_iterator&
constmap_iterator&
Returns
int

◆ erase() [3/3]

void map::erase ( const T_key &  in)
Parameters
constT_key&

◆ find() [1/2]

T_value& map::find ( const T_key &  in)
Parameters
constT_key&
Returns
T_value&

◆ find() [2/2]

T_value& map::find ( const T_key &  in,
bool &  out 
)
Parameters
constT_key&
bool
Returns
T_value&

◆ find_iterator()

map_iterator<T_key,T_value> map::find_iterator ( const T_key &  in)
Parameters
constT_key&
Returns
map_iterator

◆ get_opIndex()

const T_value& map::get_opIndex ( const T_key &  in) const
Parameters
constT_key&
Returns
const T_value&

◆ insert()

void map::insert ( const T_key &  in,
const T_value &  in 
)
Parameters
constT_key&
constT_value&

◆ opAssign()

map<T_key,T_value>& map::opAssign ( map< T_key, T_value >@  )
Parameters
map

◆ set_opIndex()

void map::set_opIndex ( const T_key &  in,
const T_value &  in 
)
Parameters
constT_key&
constT_value&

◆ SetDirectcomp()

void map::SetDirectcomp ( bool  )
Parameters
bool

◆ size()

int map::size ( )
Returns
int

◆ swap()

map<T_key,T_value>& map::swap ( map< T_key, T_value > &  inout)
Parameters
map&

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