00001 //<<<<<< INCLUDES >>>>>> 00002 00003 #include "IgTools/IgHook/interface/IgHookLiveMap.h" 00004 00005 //<<<<<< PRIVATE DEFINES >>>>>> 00006 //<<<<<< PRIVATE CONSTANTS >>>>>> 00007 //<<<<<< PRIVATE TYPES >>>>>> 00008 //<<<<<< PRIVATE VARIABLE DEFINITIONS >>>>>> 00009 //<<<<<< PUBLIC VARIABLE DEFINITIONS >>>>>> 00010 //<<<<<< CLASS STRUCTURE INITIALIZATION >>>>>> 00011 //<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>> 00012 //<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>> 00013 //<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>> 00014 00015 unsigned long 00016 IgHookLiveMap::size (void) 00017 { return m_live.size (); } 00018 00019 IgHookLiveMap::Iterator 00020 IgHookLiveMap::begin (void) 00021 { return m_live.begin (); } 00022 00023 IgHookLiveMap::Iterator 00024 IgHookLiveMap::end (void) 00025 { return m_live.end (); } 00026 00027 IgHookLiveMap::Iterator 00028 IgHookLiveMap::find (Resource x) 00029 { return m_live.find (x); } 00030 00031 IgHookTrace * 00032 IgHookLiveMap::owner (Resource x) 00033 { Iterator pos = find (x); return pos == end () ? 0 : pos->second.first; } 00034 00035 void 00036 IgHookLiveMap::insert (Resource x, Element item) 00037 { m_live [x] = item; } 00038 00039 void 00040 IgHookLiveMap::insert (Resource x, IgHookTrace *owner, Resource extra /* = 0 */) 00041 { m_live [x] = Element (owner, extra); } 00042 00043 void 00044 IgHookLiveMap::remove (Resource x) 00045 { m_live.erase (x); } 00046 00047 void 00048 IgHookLiveMap::remove (Iterator pos) 00049 { m_live.erase (pos); }