CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edm::RefItem< KEY > Class Template Reference

#include <RefItem.h>

List of all members.

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_

Detailed Description

template<typename KEY>
class edm::RefItem< KEY >

Definition at line 19 of file RefItem.h.


Member Typedef Documentation

template<typename KEY>
typedef KEY edm::RefItem< KEY >::key_type

Definition at line 21 of file RefItem.h.


Constructor & Destructor Documentation

template<typename KEY>
edm::RefItem< KEY >::RefItem ( ) [inline]

Definition at line 23 of file RefItem.h.

template<typename KEY>
edm::RefItem< KEY >::RefItem ( key_type  inx,
void const *  p 
) [inline]

Definition at line 25 of file RefItem.h.

: index_(inx), cache_(p) {}
template<typename KEY>
edm::RefItem< KEY >::~RefItem ( ) [inline]

Definition at line 27 of file RefItem.h.

{}

Member Function Documentation

template<typename KEY>
bool edm::RefItem< KEY >::isNonnull ( ) const [inline]

Definition at line 34 of file RefItem.h.

References edm::RefItem< KEY >::isValid().

{ return isValid(); }
template<typename KEY>
bool edm::RefItem< KEY >::isNull ( ) const [inline]

Definition at line 35 of file RefItem.h.

References edm::RefItem< KEY >::isValid().

{ return !isValid(); }
template<typename KEY>
bool edm::RefItem< KEY >::isValid ( void  ) const [inline]
template<typename KEY>
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_;}
template<typename KEY>
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_;}
template<typename KEY>
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_.

{return(cache_.ptr_ = p);}

Member Data Documentation

template<typename KEY>
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().

template<typename KEY>
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().