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;
72 std::map<int, void*> _id2ptr;
73 std::map<void *, std::string> _ptr2type;
Pointer decoder (or id to pointer map)
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
void registerPointer(void *ptr, int id, const std::string &type="")
void * pointer(int id, const std::string &typecheck) const
void * pointer(int id) const
std::string type(void *ptr) const
int id(void *ptr, const std::string &type="") const
retreives the ID of an object.
const std::map< int, void * > & ids() const