Scarab  v2.4.2
Project 8 C++ Utility Library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
registrar< XBaseType, XDerivedType, XArgs > Class Template Reference

#include <factory.hh>

Inheritance diagram for registrar< XBaseType, XDerivedType, XArgs >:
Inheritance graph

Public Member Functions

 registrar (const std::string &a_class_name)
 
virtual ~registrar ()
 
- Public Member Functions inherited from base_registrar< XBaseType, XArgs... >
 base_registrar ()
 
virtual ~base_registrar ()
 

Protected Member Functions

void register_class (const std::string &a_class_name) const
 
XBaseType * create (XArgs ... args) const
 

Protected Attributes

std::string f_class_name
 

Detailed Description

template<class XBaseType, class XDerivedType, typename ... XArgs>
class scarab::registrar< XBaseType, XDerivedType, XArgs >

Definition at line 50 of file factory.hh.

Constructor & Destructor Documentation

◆ registrar()

registrar ( const std::string &  a_class_name)

Definition at line 257 of file factory.hh.

◆ ~registrar()

~registrar ( )
virtual

Definition at line 265 of file factory.hh.

Member Function Documentation

◆ create()

XBaseType * create ( XArgs ...  args) const
protectedvirtual

Implements base_registrar< XBaseType, XArgs... >.

Definition at line 278 of file factory.hh.

◆ register_class()

void register_class ( const std::string &  a_class_name) const
protected

Definition at line 271 of file factory.hh.

Member Data Documentation

◆ f_class_name

std::string f_class_name
protected

Definition at line 61 of file factory.hh.


The documentation for this class was generated from the following file: