Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Typedefs | Functions | Variables
algparam.h File Reference

Classes for working with NameValuePairs. More...

#include "config.h"
#include "cryptlib.h"
#include "smartptr.h"
#include "secblock.h"
#include "integer.h"
#include "misc.h"
Include dependency graph for algparam.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ConstByteArrayParameter
 Used to pass byte array input as part of a NameValuePairs object. More...
 
class  ByteArrayParameter
 Used to pass byte array input as part of a NameValuePairs object. More...
 
class  CombinedNameValuePairs
 Combines two sets of NameValuePairs. More...
 
class  GetValueHelperClass< T, BASE >
 
class  AssignFromHelperClass< T, BASE >
 
class  AlgorithmParametersBase
 Base class for AlgorithmParameters. More...
 
class  AlgorithmParametersBase::ParameterNotUsed
 Exception thrown when an AlgorithmParameter is unused. More...
 
class  AlgorithmParametersTemplate< T >
 Template base class for AlgorithmParameters. More...
 
class  AlgorithmParameters
 An object that implements NameValuePairs. More...
 

Macros

#define CRYPTOPP_GET_FUNCTION_ENTRY(name)   (Name::name(), &ThisClass::Get##name)
 
#define CRYPTOPP_SET_FUNCTION_ENTRY(name)   (Name::name(), &ThisClass::Set##name)
 
#define CRYPTOPP_SET_FUNCTION_ENTRY2(name1, name2)   (Name::name1(), Name::name2(), &ThisClass::Set##name1##And##name2)
 

Typedefs

typedef bool(CRYPTOPP_APIPAssignIntToInteger) (const std::type_info &valueType, void *pInteger, const void *pInt)
 

Functions

template<class BASE , class T >
GetValueHelperClass< T, BASE > GetValueHelper (const T *pObject, const char *name, const std::type_info &valueType, void *pValue, const NameValuePairs *searchFirst=NULL)
 
template<class T >
GetValueHelperClass< T, TGetValueHelper (const T *pObject, const char *name, const std::type_info &valueType, void *pValue, const NameValuePairs *searchFirst=NULL)
 
template<class BASE , class T >
AssignFromHelperClass< T, BASE > AssignFromHelper (T *pObject, const NameValuePairs &source)
 
template<class T >
AssignFromHelperClass< T, TAssignFromHelper (T *pObject, const NameValuePairs &source)
 
CRYPTOPP_DLL const std::type_info &CRYPTOPP_API IntegerTypeId ()
 
template<class T >
AlgorithmParameters MakeParameters (const char *name, const T &value, bool throwIfNotUsed=true)
 Create an object that implements NameValuePairs. More...
 

Variables

CRYPTOPP_DLL PAssignIntToInteger g_pAssignIntToInteger
 
CRYPTOPP_DLL_TEMPLATE_CLASS AlgorithmParametersTemplate< bool >
 
CRYPTOPP_DLL_TEMPLATE_CLASS AlgorithmParametersTemplate< int >
 
CRYPTOPP_DLL_TEMPLATE_CLASS AlgorithmParametersTemplate< ConstByteArrayParameter >
 

Detailed Description

Classes for working with NameValuePairs.

Definition in file algparam.h.

Macro Definition Documentation

#define CRYPTOPP_GET_FUNCTION_ENTRY (   name)    (Name::name(), &ThisClass::Get##name)

Definition at line 504 of file algparam.h.

#define CRYPTOPP_SET_FUNCTION_ENTRY (   name)    (Name::name(), &ThisClass::Set##name)

Definition at line 505 of file algparam.h.

#define CRYPTOPP_SET_FUNCTION_ENTRY2 (   name1,
  name2 
)    (Name::name1(), Name::name2(), &ThisClass::Set##name1##And##name2)

Definition at line 506 of file algparam.h.

Typedef Documentation

typedef bool(CRYPTOPP_API * PAssignIntToInteger) (const std::type_info &valueType, void *pInteger, const void *pInt)

Definition at line 302 of file algparam.h.

Function Documentation

template<class BASE , class T >
AssignFromHelperClass<T, BASE> AssignFromHelper ( T pObject,
const NameValuePairs source 
)

Definition at line 286 of file algparam.h.

Here is the caller graph for this function:

template<class T >
AssignFromHelperClass<T, T> AssignFromHelper ( T pObject,
const NameValuePairs source 
)

Definition at line 292 of file algparam.h.

template<class BASE , class T >
GetValueHelperClass<T, BASE> GetValueHelper ( const T pObject,
const char *  name,
const std::type_info &  valueType,
void *  pValue,
const NameValuePairs searchFirst = NULL 
)

Definition at line 224 of file algparam.h.

Here is the caller graph for this function:

template<class T >
GetValueHelperClass<T, T> GetValueHelper ( const T pObject,
const char *  name,
const std::type_info &  valueType,
void *  pValue,
const NameValuePairs searchFirst = NULL 
)

Definition at line 230 of file algparam.h.

CRYPTOPP_DLL const std::type_info& CRYPTOPP_API IntegerTypeId ( )
template<class T >
AlgorithmParameters MakeParameters ( const char *  name,
const T value,
bool  throwIfNotUsed = true 
)

Create an object that implements NameValuePairs.

Template Parameters
Tthe class or type
Parameters
namethe name of the object or value to retrieve
valuereference to a variable that receives the value
throwIfNotUsedif true, the object will throw an exception if the value is not accessed
Note
throwIfNotUsed is ignored if using a compiler that does not support std::uncaught_exception(), such as MSVC 7.0 and earlier.
A NameValuePairs object containing an arbitrary number of name value pairs may be constructed by repeatedly using operator() on the object returned by MakeParameters, for example:
    AlgorithmParameters parameters = MakeParameters(name1, value1)(name2, value2)(name3, value3);
  

Definition at line 498 of file algparam.h.

Variable Documentation

Definition at line 416 of file algparam.h.

Definition at line 418 of file algparam.h.

Definition at line 417 of file algparam.h.

CRYPTOPP_DLL PAssignIntToInteger g_pAssignIntToInteger

Definition at line 12 of file algparam.cpp.