CYCLUS
|
ResMap container for the management of resources.
It allows you to associate keys with individual resources. The keys are often strings or ints and the ResMap enables you to add whatever semantic meaning that you want to these keys.
Typically, a ResMap will be a member variable of an archetype class. Resources can be added, removed, and retrieved from it as needed.
#include <res_map.h>
Public Types | |
typedef std::map< K, typenameR::Ptr >::const_iterator | const_iterator |
typedef std::map< K, int >::const_iterator | const_obj_iterator |
typedef std::map< K, typenameR::Ptr >::iterator | iterator |
typedef std::map< K, typename R::Ptr > | map_type |
typedef std::map< K, int >::iterator | obj_iterator |
typedef std::map< K, int > | obj_type |
Public Member Functions | |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
void | clear () |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
map_type::size_type | erase (const K &k) |
void | erase (iterator first, iterator last) |
void | erase (iterator position) |
obj_type & | obj_ids () |
void | obj_ids (obj_type oi) |
R::Ptr & | operator[] (const K &k) |
const R::Ptr & | operator[] (const K &k) const |
R::Ptr | Pop (const K key) |
double | quantity () |
ResMap () | |
std::vector< Resource::Ptr > | ResValues () |
void | ResValues (std::vector< Resource::Ptr > vals) |
int | size () const |
std::vector< typename R::Ptr > | Values () |
void | Values (std::vector< typename R::Ptr > vals) |
virtual | ~ResMap () |
typedef std::map<K,typenameR::Ptr>::const_iterator cyclus::toolkit::ResMap< K, R >::const_iterator |
typedef std::map<K,int>::const_iterator cyclus::toolkit::ResMap< K, R >::const_obj_iterator |
typedef std::map<K,typenameR::Ptr>::iterator cyclus::toolkit::ResMap< K, R >::iterator |
typedef std::map<K,int>::iterator cyclus::toolkit::ResMap< K, R >::obj_iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |