#include <OneToOneGeneric.h>
Public Types | |
typedef ValRef | data_type |
insert val type | |
typedef index | index_type |
index type | |
typedef KeyRef | key_type |
insert key type | |
typedef std::map< index_type, map_assoc > | map_type |
map type | |
typedef helpers::KeyVal < keyrefprod_type, valrefprod_type > | 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 *, typename CVal::value_type const * > | transient_map_type |
transient map type | |
typedef std::vector< typename CVal::value_type const * > | transient_val_vector |
transient val vector | |
typedef ValRef | 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 &ref, map_assoc iv) |
return values collection | |
Private Types | |
typedef KeyRefProd | keyrefprod_type |
reference to "key" collection | |
typedef index | map_assoc |
internal map associated data | |
typedef ValRefProd | valrefprod_type |
reference to "value" collection |
Definition at line 15 of file OneToOneGeneric.h.
typedef ValRef edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::data_type |
insert val type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 29 of file OneToOneGeneric.h.
typedef index edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::index_type |
index type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 31 of file OneToOneGeneric.h.
typedef KeyRef edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::key_type |
insert key type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 27 of file OneToOneGeneric.h.
typedef KeyRefProd edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::keyrefprod_type [private] |
reference to "key" collection
Definition at line 17 of file OneToOneGeneric.h.
typedef index edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::map_assoc [private] |
internal map associated data
Definition at line 21 of file OneToOneGeneric.h.
typedef std::map<index_type, map_assoc> edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::map_type |
map type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 33 of file OneToOneGeneric.h.
typedef helpers::KeyVal<keyrefprod_type, valrefprod_type> edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::ref_type |
reference set type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 35 of file OneToOneGeneric.h.
typedef std::vector<typename CKey::value_type const*> edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::transient_key_vector |
transient key vector
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 40 of file OneToOneGeneric.h.
typedef std::map<typename CKey::value_type const*, typename CVal::value_type const*> edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::transient_map_type |
transient map type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 38 of file OneToOneGeneric.h.
typedef std::vector<typename CVal::value_type const*> edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::transient_val_vector |
transient val vector
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 42 of file OneToOneGeneric.h.
typedef ValRef edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::val_type |
values reference collection type
Reimplemented in edm::OneToOne< CKey, CVal, index >.
Definition at line 25 of file OneToOneGeneric.h.
typedef ValRefProd edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::valrefprod_type [private] |
reference to "value" collection
Definition at line 19 of file OneToOneGeneric.h.
static void edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::insert | ( | ref_type & | ref, |
map_type & | m, | ||
key_type const & | k, | ||
data_type const & | v | ||
) | [inline, static] |
insert in the map
Definition at line 44 of file OneToOneGeneric.h.
{ if(k.isNull() || v.isNull()) { Exception::throwThis(errors::InvalidReference, "can't insert null references in AssociationMap"); } if(ref.key.isNull()) { ref.key = keyrefprod_type(k); ref.val = valrefprod_type(v); } helpers::checkRef(ref.key, k); helpers::checkRef(ref.val, v); index_type ik = index_type(k.key()), iv = index_type(v.key()); m[ik] = iv; }
static map_type::size_type edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::size | ( | map_assoc const & | ) | [inline, static] |
static void edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::sort | ( | map_type & | ) | [inline, static] |
static transient_key_vector edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::transientKeyVector | ( | ref_type const & | ref, |
map_type const & | map | ||
) | [inline, static] |
static transient_map_type edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::transientMap | ( | ref_type const & | ref, |
map_type const & | map | ||
) | [inline, static] |
fill transient map
Definition at line 67 of file OneToOneGeneric.h.
{ transient_map_type m; CKey const& ckey = *ref.key; CVal const& cval = *ref.val; for(typename map_type::const_iterator i = map.begin(); i != map.end(); ++i) { typename CKey::value_type const* k = &ckey[i->first]; typename CVal::value_type const* v = & cval[i->second]; m.insert(std::make_pair(k, v)); } return m; }
static transient_val_vector edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::transientValVector | ( | ref_type const & | ref, |
map_type const & | map | ||
) | [inline, static] |
static val_type edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::val | ( | ref_type const & | ref, |
map_assoc | iv | ||
) | [inline, static] |
return values collection
Definition at line 59 of file OneToOneGeneric.h.