#include <OneToValue.h>
Public Types | |
typedef Val | data_type |
insert val type | |
typedef index | index_type |
index type | |
typedef Ref< CKey > | key_type |
insert key type | |
typedef std::map< index_type, map_assoc > | map_type |
map type | |
typedef helpers::Key< KeyRefProd > | ref_type |
reference set type | |
typedef std::vector< typename CKey::value_type const * > | transient_key_vector |
transient key vector | |
typedef std::map< typename CKey::value_type const *, Val > | transient_map_type |
transient map type | |
typedef std::vector< Val > | transient_val_vector |
transient val vector | |
typedef Val | val_type |
values reference collection type | |
Static Public Member Functions | |
static void | insert (ref_type &ref, map_type &m, key_type const &k, data_type const &v) |
insert in the map | |
static map_type::size_type | size (map_assoc const &) |
size of data_type | |
static void | sort (map_type &) |
sort | |
static transient_key_vector | transientKeyVector (ref_type const &ref, map_type const &map) |
fill transient key vector | |
static transient_map_type | transientMap (ref_type const &ref, map_type const &map) |
fill transient map | |
static transient_val_vector | transientValVector (ref_type const &ref, map_type const &map) |
fill transient val vector | |
static val_type | val (ref_type const &, map_assoc const &v) |
return values collection | |
Private Types | |
typedef RefProd< CKey > | KeyRefProd |
reference to "key" collection | |
typedef Val | map_assoc |
internal map associated data |
Definition at line 12 of file OneToValue.h.
typedef Val edm::OneToValue< CKey, Val, index >::data_type |
insert val type
Definition at line 23 of file OneToValue.h.
typedef index edm::OneToValue< CKey, Val, index >::index_type |
index type
Definition at line 25 of file OneToValue.h.
typedef Ref<CKey> edm::OneToValue< CKey, Val, index >::key_type |
insert key type
Definition at line 21 of file OneToValue.h.
typedef RefProd<CKey> edm::OneToValue< CKey, Val, index >::KeyRefProd [private] |
reference to "key" collection
Definition at line 14 of file OneToValue.h.
typedef Val edm::OneToValue< CKey, Val, index >::map_assoc [private] |
internal map associated data
Definition at line 16 of file OneToValue.h.
typedef std::map<index_type, map_assoc> edm::OneToValue< CKey, Val, index >::map_type |
map type
Definition at line 27 of file OneToValue.h.
typedef helpers::Key<KeyRefProd> edm::OneToValue< CKey, Val, index >::ref_type |
reference set type
Definition at line 29 of file OneToValue.h.
typedef std::vector<typename CKey::value_type const*> edm::OneToValue< CKey, Val, index >::transient_key_vector |
transient key vector
Definition at line 33 of file OneToValue.h.
typedef std::map<typename CKey::value_type const*, Val> edm::OneToValue< CKey, Val, index >::transient_map_type |
transient map type
Definition at line 31 of file OneToValue.h.
typedef std::vector<Val> edm::OneToValue< CKey, Val, index >::transient_val_vector |
transient val vector
Definition at line 35 of file OneToValue.h.
typedef Val edm::OneToValue< CKey, Val, index >::val_type |
values reference collection type
Definition at line 19 of file OneToValue.h.
static void edm::OneToValue< CKey, Val, index >::insert | ( | ref_type & | ref, |
map_type & | m, | ||
key_type const & | k, | ||
data_type const & | v | ||
) | [inline, static] |
insert in the map
Definition at line 37 of file OneToValue.h.
{ if(k.isNull()) { Exception::throwThis(errors::InvalidReference, "can't insert null references in AssociationMap"); } if(ref.key.isNull()) { ref.key = KeyRefProd(k); } helpers::checkRef(ref.key, k); index_type ik = index_type(k.key()); m[ik] = v; }
static map_type::size_type edm::OneToValue< CKey, Val, index >::size | ( | map_assoc const & | ) | [inline, static] |
static void edm::OneToValue< CKey, Val, index >::sort | ( | map_type & | ) | [inline, static] |
static transient_key_vector edm::OneToValue< CKey, Val, index >::transientKeyVector | ( | ref_type const & | ref, |
map_type const & | map | ||
) | [inline, static] |
static transient_map_type edm::OneToValue< CKey, Val, index >::transientMap | ( | ref_type const & | ref, |
map_type const & | map | ||
) | [inline, static] |
fill transient map
Definition at line 59 of file OneToValue.h.
static transient_val_vector edm::OneToValue< CKey, Val, index >::transientValVector | ( | ref_type const & | ref, |
map_type const & | map | ||
) | [inline, static] |
static val_type edm::OneToValue< CKey, Val, index >::val | ( | ref_type const & | , |
map_assoc const & | v | ||
) | [inline, static] |