CMS 3D CMS Logo

IgHookLiveMap Class Reference

#include <IgTools/IgHook/interface/IgHookLiveMap.h>

List of all members.

Public Types

typedef std::pair< IgHookTrace *,
Resource
Element
typedef Map::iterator Iterator
typedef IG_HOOK_MAP< Resource,
Element, IG_HOOK_MAP_COMP,
IgHookAlloc< MapElement > > 
Map
typedef std::pair< IgHookTrace
*const, Resource
MapElement
typedef unsigned long Resource

Public Member Functions

Iterator begin (void)
Iterator end (void)
Iterator find (Resource x)
void insert (Resource x, IgHookTrace *owner, Resource extra=0)
void insert (Resource x, Element element)
IgHookTraceowner (Resource x)
void remove (Resource x)
void remove (Iterator pos)
unsigned long size (void)

Private Attributes

Map m_live


Detailed Description

Definition at line 27 of file IgHookLiveMap.h.


Member Typedef Documentation

typedef std::pair<IgHookTrace *, Resource> IgHookLiveMap::Element

Definition at line 32 of file IgHookLiveMap.h.

typedef Map::iterator IgHookLiveMap::Iterator

Definition at line 37 of file IgHookLiveMap.h.

typedef IG_HOOK_MAP< Resource, Element, IG_HOOK_MAP_COMP, IgHookAlloc<MapElement> > IgHookLiveMap::Map

Definition at line 36 of file IgHookLiveMap.h.

typedef std::pair<IgHookTrace * const, Resource> IgHookLiveMap::MapElement

Definition at line 33 of file IgHookLiveMap.h.

typedef unsigned long IgHookLiveMap::Resource

Definition at line 31 of file IgHookLiveMap.h.


Member Function Documentation

IgHookLiveMap::Iterator IgHookLiveMap::begin ( void   ) 

Definition at line 20 of file IgHookLiveMap.cc.

References m_live.

00021 { return m_live.begin (); }

IgHookLiveMap::Iterator IgHookLiveMap::end ( void   ) 

Definition at line 24 of file IgHookLiveMap.cc.

References m_live.

Referenced by owner().

00025 { return m_live.end (); }

IgHookLiveMap::Iterator IgHookLiveMap::find ( Resource  x  ) 

Definition at line 28 of file IgHookLiveMap.cc.

References m_live.

Referenced by owner().

00029 { return m_live.find (x); }

void IgHookLiveMap::insert ( Resource  x,
IgHookTrace owner,
Resource  extra = 0 
)

Definition at line 40 of file IgHookLiveMap.cc.

References m_live.

00041 { m_live [x] = Element (owner, extra); }

void IgHookLiveMap::insert ( Resource  x,
Element  element 
)

Definition at line 36 of file IgHookLiveMap.cc.

References m_live.

00037 { m_live [x] = item; }

IgHookTrace * IgHookLiveMap::owner ( Resource  x  ) 

Definition at line 32 of file IgHookLiveMap.cc.

References end(), and find().

00033 { Iterator pos = find (x); return pos == end () ? 0 : pos->second.first; }

void IgHookLiveMap::remove ( Resource  x  ) 

Definition at line 44 of file IgHookLiveMap.cc.

References m_live.

00045 { m_live.erase (x); }

void IgHookLiveMap::remove ( Iterator  pos  ) 

Definition at line 48 of file IgHookLiveMap.cc.

References m_live.

00049 { m_live.erase (pos); }

unsigned long IgHookLiveMap::size ( void   ) 

Definition at line 16 of file IgHookLiveMap.cc.

References m_live.

00017 { return m_live.size (); }


Member Data Documentation

Map IgHookLiveMap::m_live [private]

Definition at line 56 of file IgHookLiveMap.h.

Referenced by begin(), end(), find(), insert(), remove(), and size().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:12 2009 for CMSSW by  doxygen 1.5.4