#include <RefItem.h>
Public Types | |
typedef KEY | key_type |
Public Member Functions | |
bool | isNonnull () const |
bool | isNull () const |
bool | isValid () const |
key_type | key () const |
void const * | ptr () const |
RefItem () | |
RefItem (key_type inx, void const *p) | |
void const * | setPtr (void const *p) const |
~RefItem () | |
Private Attributes | |
ConstPtrCache | cache_ |
key_type | index_ |
typedef KEY edm::RefItem< KEY >::key_type |
edm::RefItem< KEY >::RefItem | ( | ) | [inline] |
Definition at line 23 of file RefItem.h.
: index_(key_traits<key_type>::value), cache_(0) {}
edm::RefItem< KEY >::RefItem | ( | key_type | inx, |
void const * | p | ||
) | [inline] |
edm::RefItem< KEY >::~RefItem | ( | ) | [inline] |
bool edm::RefItem< KEY >::isNonnull | ( | ) | const [inline] |
Definition at line 34 of file RefItem.h.
References edm::RefItem< KEY >::isValid().
{ return isValid(); }
bool edm::RefItem< KEY >::isNull | ( | ) | const [inline] |
Definition at line 35 of file RefItem.h.
References edm::RefItem< KEY >::isValid().
{ return !isValid(); }
bool edm::RefItem< KEY >::isValid | ( | void | ) | const [inline] |
Definition at line 33 of file RefItem.h.
References edm::RefItem< KEY >::index_.
Referenced by edm::RefItem< KEY >::isNonnull(), and edm::RefItem< KEY >::isNull().
{ return index_!=edm::key_traits<key_type>::value; }
key_type edm::RefItem< KEY >::key | ( | ) | const [inline] |
Definition at line 29 of file RefItem.h.
References edm::RefItem< KEY >::index_.
Referenced by edm::operator<(), and edm::operator==().
{return index_;}
void const* edm::RefItem< KEY >::ptr | ( | ) | const [inline] |
Definition at line 30 of file RefItem.h.
References edm::RefItem< KEY >::cache_, and edm::ConstPtrCache::ptr_.
{return cache_.ptr_;}
void const* edm::RefItem< KEY >::setPtr | ( | void const * | p | ) | const [inline] |
Definition at line 31 of file RefItem.h.
References edm::RefItem< KEY >::cache_, and edm::ConstPtrCache::ptr_.
ConstPtrCache edm::RefItem< KEY >::cache_ [mutable, private] |
Definition at line 39 of file RefItem.h.
Referenced by edm::RefItem< KEY >::ptr(), and edm::RefItem< KEY >::setPtr().
key_type edm::RefItem< KEY >::index_ [private] |
Definition at line 38 of file RefItem.h.
Referenced by edm::RefItem< KEY >::isValid(), and edm::RefItem< KEY >::key().