Static Public Member Functions

ProcessorInstantiator< Tag > Class Template Reference

Instantiate a processor given its Tag. More...

#include <keyvalue/mngt/ProcessorInstantiator.h>

List of all members.

Static Public Member Functions

static ProcessorgetInstance ()
 Gets the unique instance of the Processor assigned to Tag.

Detailed Description

template<typename Tag>
class keyvalue::ProcessorInstantiator< Tag >

Instantiate a processor given its Tag.

To each Processor there should be assigned a Tag which is a type that uniquely identifies the Builder or Calculator. Certain parts of KeyValue assume that a Tag is a (declared but no defined) class member of namespace tag. Additionally, Builders can also be instantiated from the type of object they build.


Member Function Documentation

static Processor& getInstance (  )  [static]

Gets the unique instance of the Processor assigned to Tag.

Returns:
The unique instance of the Processor assigned to Tag.