MEAL::Advocate< Type > Class Template Reference

Classes derived from Function are registered for use via an Advocate. More...

#include <Agent.h>

Inheritance diagram for MEAL::Advocate< Type >:
MEAL::Agent Reference::Able Reference::HeapTracked

Public Member Functions

 Advocate ()
 Constructor ensures that template entry is instantiated.
template<typename Arg>
 Advocate (const Arg &arg)
 Constructor ensures that template entry is instantiated.
std::string get_name ()
 Return the name of the derived class.
Functionnew_Function ()
 Return a new instance of the Function derived class.
Public Member Functions inherited from MEAL::Agent
virtual ~Agent ()
 Destructor.
Public Member Functions inherited from Reference::Able
 Able (const Able &)
Ableoperator= (const Able &)
unsigned get_reference_count () const
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
HeapTrackedoperator= (const HeapTracked &)
bool __is_on_heap () const

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
static void operator delete (void *location, void *ptr)
static void operator delete (void *location)
static size_t get_heap_queue_size ()
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Detailed Description

template<class Type>
class MEAL::Advocate< Type >

Classes derived from Function are registered for use via an Advocate.

This abstract template base class may be used to register Function-derived classes for use with the Function::load factory.

Member Function Documentation

◆ get_name()

template<class Type>
std::string MEAL::Advocate< Type >::get_name ( )
inlinevirtual

Return the name of the derived class.

Implements MEAL::Agent.

◆ new_Function()

template<class Type>
Function * MEAL::Advocate< Type >::new_Function ( )
inlinevirtual

Return a new instance of the Function derived class.

Implements MEAL::Agent.

References MEAL::Function::clone(), and MEAL::Agent::Function.


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

Generated using doxygen 1.14.0