#include <boost/static_assert.hpp>
#include "uhal/Node.hpp"
#include "uhal/TemplateDefinitions/DerivedNode.hxx"
Go to the source code of this file.
Classes | |
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... | |
Namespaces | |
uhal | |
Macros | |
#define | UHAL_REGISTER_DERIVED_NODE(classname) |
Macro which adds a Derived Node Class to the factory It takes a classname and then creates a registration helper object, with the classname as its template parameter and a stringified version of the classname as its constructor argument. More... | |
#define | UHAL_DERIVEDNODE(DerivedType) |
Macro which adds the clone method implementation for derived classesk. More... | |
Definition in file DerivedNode.hpp.
#define UHAL_DERIVEDNODE | ( | DerivedType | ) |
Macro which adds the clone method implementation for derived classesk.
Definition at line 65 of file DerivedNode.hpp.
#define UHAL_REGISTER_DERIVED_NODE | ( | classname | ) |
Macro which adds a Derived Node Class to the factory It takes a classname and then creates a registration helper object, with the classname as its template parameter and a stringified version of the classname as its constructor argument.
Definition at line 54 of file DerivedNode.hpp.