μHAL (v2.7.9)
Part of the IPbus software repository
Classes | Namespaces
DerivedNodeFactory.hpp File Reference
#include <string>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/unordered_map.hpp>
#include "uhal/TemplateDefinitions/DerivedNodeFactory.hxx"
Include dependency graph for DerivedNodeFactory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  boost::shared_ptr< Y >
 
struct  uhal::RegistrationHelper< T >
 Experimental!! Helper struct for adding the DerivedNode to the Node Factory Declaring an instance of an object at global scope means that it is created before the main code is entered We can use this to our advantage by using the constructor of this object to add entries to the factory in a distributed fashion (for instance, in the file where the derived node is defined), rather than manually having to add entries in one file To make things even simpler, the REGISTER macro expands the template argument to a string and passes it to the constructor. More...
 
class  uhal::DerivedNodeFactory
 A singleton class to register derived nodes, and create instances of them later NOTE! This is a factory method and must be Mutex protected if it is used in multithreaded environments! More...
 
class  uhal::DerivedNodeFactory::CreatorInterface
 An abstract base class for defining the interface to the creators. More...
 
class  uhal::DerivedNodeFactory::Creator< T >
 Templated concrete implementation with a CreatorInterface interface. More...
 

Namespaces

 boost
 
 uhal
 

Detailed Description

Author
Andrew W. Rose
Marc Magrans De Abril
Date
2012

Definition in file DerivedNodeFactory.hpp.