35 #ifndef ANA_PROCESSOR_UNSERIALIZER_H 36 #define ANA_PROCESSOR_UNSERIALIZER_H 54 void*
pointer(
int id,
const std::string & typecheck )
const;
55 std::string
type(
void *ptr )
const;
56 const std::map<int, void *> &
ids()
const {
return( _id2ptr ); }
63 int id(
void* ptr,
const std::string & type =
"" )
const;
65 int makeID(
void* ptr,
const std::string & type =
"" );
72 std::map<int, void*> _id2ptr;
73 std::map<void *, std::string> _ptr2type;
int makeID(void *ptr, const std::string &type="")
ganaerates an ID for given pointer and registers it
int freeID() const
provides a new free ID for future registration
const std::map< int, void * > & ids() const
void registerPointer(void *ptr, int id, const std::string &type="")
int id(void *ptr, const std::string &type="") const
retreives the ID of an object.
Pointer decoder (or id to pointer map)
void * pointer(int id) const
std::string type(void *ptr) const