Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Attributes | List of all members
AlgorithmParametersTemplate< T > Class Template Reference

Template base class for AlgorithmParameters. More...

#include <algparam.h>

Inheritance diagram for AlgorithmParametersTemplate< T >:
[legend]
Collaboration diagram for AlgorithmParametersTemplate< T >:
[legend]

Public Member Functions

 AlgorithmParametersTemplate (const char *name, const T &value, bool throwIfNotUsed)
 Construct an AlgorithmParametersTemplate. More...
 
void AssignValue (const char *name, const std::type_info &valueType, void *pValue) const
 
void MoveInto (void *buffer) const
 
- Public Member Functions inherited from AlgorithmParametersBase
virtual ~AlgorithmParametersBase () CRYPTOPP_THROW
 
 AlgorithmParametersBase (const AlgorithmParametersBase &x)
 
 AlgorithmParametersBase (const char *name, bool throwIfNotUsed)
 Construct a AlgorithmParametersBase. More...
 
bool GetVoidValue (const char *name, const std::type_info &valueType, void *pValue) const
 

Protected Attributes

T m_value
 
- Protected Attributes inherited from AlgorithmParametersBase
const char * m_name
 
bool m_throwIfNotUsed
 
bool m_used
 
member_ptr< AlgorithmParametersBasem_next
 

Additional Inherited Members

- Protected Member Functions inherited from AlgorithmParametersBase
void operator= (const AlgorithmParametersBase &rhs)
 

Detailed Description

template<class T>
class AlgorithmParametersTemplate< T >

Template base class for AlgorithmParameters.

Template Parameters
Tthe class or type

Definition at line 373 of file algparam.h.

Constructor & Destructor Documentation

template<class T>
AlgorithmParametersTemplate< T >::AlgorithmParametersTemplate ( const char *  name,
const T value,
bool  throwIfNotUsed 
)
inline

Construct an AlgorithmParametersTemplate.

Parameters
namethe name of the value
valuea reference to the value
throwIfNotUsedflags indicating whether an exception should be thrown

If throwIfNotUsed is true, then a ParameterNotUsed exception will be thrown in the destructor if the parameter is not not retrieved.

Definition at line 382 of file algparam.h.

Member Function Documentation

template<class T>
void AlgorithmParametersTemplate< T >::AssignValue ( const char *  name,
const std::type_info &  valueType,
void *  pValue 
) const
inlinevirtual

Implements AlgorithmParametersBase.

Definition at line 387 of file algparam.h.

Here is the call graph for this function:

template<class T>
void AlgorithmParametersTemplate< T >::MoveInto ( void *  buffer) const
inlinevirtual

Implements AlgorithmParametersBase.

Definition at line 402 of file algparam.h.

Member Data Documentation

template<class T>
T AlgorithmParametersTemplate< T >::m_value
protected

Definition at line 413 of file algparam.h.


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