39 #ifndef _uhal_DerivedNode_hpp_ 40 #define _uhal_DerivedNode_hpp_ 44 #include <boost/static_assert.hpp> 52 #define UHAL_REGISTER_DERIVED_NODE( classname ) \ 53 uhal::RegistrationHelper< classname > classname##RegistrationHelper( #classname ); \ 54 uhal::Node* classname::clone() const \ 56 return new classname ( static_cast<const classname&> ( *this ) ); \ 63 #define UHAL_DERIVEDNODE(DerivedType) \ 65 BOOST_STATIC_ASSERT(( boost::is_base_of<Node, uhal::Node>::value )); \ 67 virtual uhal::Node* clone() const; 80 template<
typename T >
RegistrationHelper(const std::string &aDerivedClassName)
Constructor.
Experimental!! Helper struct for adding the DerivedNode to the Node Factory Declaring an instance of ...