Pointer decoder (or id to pointer map)  
 More...
#include <anatomist/processor/unserializer.h>
Pointer decoder (or id to pointer map) 
Definition at line 46 of file unserializer.h.
◆ Unserializer()
      
        
          | anatomist::Unserializer::Unserializer | ( |  | ) |  | 
      
 
 
◆ ~Unserializer()
  
  | 
        
          | virtual anatomist::Unserializer::~Unserializer | ( |  | ) |  |  | virtual | 
 
 
◆ freeID()
      
        
          | int anatomist::Unserializer::freeID | ( |  | ) | const | 
      
 
provides a new free ID for future registration 
 
 
◆ garbageCollect()
      
        
          | void anatomist::Unserializer::garbageCollect | ( |  | ) |  | 
      
 
 
◆ id()
      
        
          | int anatomist::Unserializer::id | ( | void * | ptr, | 
        
          |  |  | const std::string & | type = "" | 
        
          |  | ) |  | const | 
      
 
retreives the ID of an object. 
If type is omitted, it will not be checked. Warning: this function is rather slow 
 
 
◆ ids()
  
  | 
        
          | const std::map<int, void *>& anatomist::Unserializer::ids | ( |  | ) | const |  | inline | 
 
 
◆ makeID()
      
        
          | int anatomist::Unserializer::makeID | ( | void * | ptr, | 
        
          |  |  | const std::string & | type = "" | 
        
          |  | ) |  |  | 
      
 
ganaerates an ID for given pointer and registers it 
 
 
◆ pointer() [1/2]
      
        
          | void* anatomist::Unserializer::pointer | ( | int | id | ) | const | 
      
 
 
◆ pointer() [2/2]
      
        
          | void* anatomist::Unserializer::pointer | ( | int | id, | 
        
          |  |  | const std::string & | typecheck | 
        
          |  | ) |  | const | 
      
 
 
◆ registerPointer()
      
        
          | void anatomist::Unserializer::registerPointer | ( | void * | ptr, | 
        
          |  |  | int | id, | 
        
          |  |  | const std::string & | type = "" | 
        
          |  | ) |  |  | 
      
 
 
◆ type()
      
        
          | std::string anatomist::Unserializer::type | ( | void * | ptr | ) | const | 
      
 
 
◆ unregister()
      
        
          | void anatomist::Unserializer::unregister | ( | int | id | ) |  | 
      
 
 
The documentation for this class was generated from the following file: