template<typename EntryType, typename FunctionType>
class dmlc::FunctionRegEntryBase< EntryType, FunctionType >
Common base class for function registry.
struct TreeFactory :
};
}
.describe("Constructor of BinaryTree")
.set_body([]() { return new BinaryTree(); });
Common base class for function registry.
Definition registry.h:151
namespace for dmlc
Definition array_view.h:12
#define DMLC_REGISTRY_ENABLE(EntryType)
Macro to enable the registry of EntryType. This macro must be used under namespace dmlc,...
Definition registry.h:234
#define DMLC_REGISTRY_REGISTER(EntryType, EntryTypeName, Name)
Generic macro to register an EntryType There is a complete example in FactoryRegistryEntryBase.
Definition registry.h:250
- Template Parameters
-
EntryType | The type of subclass that inheritate the base. |
FunctionType | The function type this registry is registerd. |