59 #define OBJECTIDPOINTERMANAGERT_C 63 #include "ObjectIDPointerManagerT.hh" 69 template<
class Po
inter >
71 typename PointerObjectIDMap::iterator po_itr;
72 typename PointerObjectIDMap::iterator po_itr_end = pointer_objectID_map_.end();
74 po_itr = pointer_objectID_map_.find(_identifier);
77 if (po_itr == po_itr_end)
81 _pointer = (Pointer)po_itr->second;
87 template<
class Po
inter >
90 if ( get_pointer(_identifier,tmp) )
98 template<
class Po
inter >
100 typename PointerObjectIDMap::iterator po_itr;
101 typename PointerObjectIDMap::iterator po_itr_end = pointer_objectID_map_.end();
103 po_itr = pointer_objectID_map_.find(_identifier);
106 if (po_itr != po_itr_end)
115 template<
class Po
inter >
117 typename PointerObjectIDMap::iterator po_itr;
118 typename PointerObjectIDMap::iterator po_itr_end = pointer_objectID_map_.end();
120 po_itr = pointer_objectID_map_.find(_identifier);
123 if (po_itr == po_itr_end)
126 pointer_objectID_map_.erase(_identifier);
132 template<
class Po
inter >
137 typename PointerObjectIDMap::iterator po_itr;
138 typename PointerObjectIDMap::iterator po_itr_end = pointer_objectID_map_.end();
140 for (po_itr = pointer_objectID_map_.begin(); po_itr != po_itr_end; ++po_itr)
141 _ids.push_back((*po_itr).first);
std::pair< int, Pointer > PointerObjectIDPair
typedef for the pairs
bool delete_object(int _identifier)
Doesn't actually delete object (pointed to by pointer) only clears entry from the map...
bool get_pointer(int _identifier, Pointer &_pointer)
bool add_pointer(int _identifier, const Pointer &_pointer)