Macros
FunctionBind.h File Reference

Go to the source code of this file.

Macros

#define DELEGATE(CLASS, FUNC, OUTPUT, ...)   OUTPUT (CLASS::*FUNC) (__VA_ARGS__)
 Delegate (or function pointer) More...
 
#define DELEGATEV(CLASS, FUNC, OUTPUT)   DELEGATE(CLASS,FUNC,OUTPUT,)
 
#define Init_t(FUNC)    DELEGATEV(RawDAQData, FUNC, void )
 
#define Sizeofdata_t(FUNC)    DELEGATEV(RawDAQData, FUNC, uint32_t) const
 
#define Print_t(FUNC)    DELEGATE(RawDAQData, FUNC, void , std::ostream&) const
 
#define ReadData_t(FUNC)    DELEGATE(RawDAQData, FUNC, void* , const void* )
 
#define SetBufferSource_t(FUNC)    DELEGATE(RawDAQData, FUNC, bool , const void* )
 
#define ResetBufferSource_t(FUNC)   DELEGATEV(RawDAQData, FUNC, bool )
 
#define init_t   Init_t()
 
#define sizeofdata_t   Sizeofdata_t()
 
#define print_t   Print_t()
 
#define readData_t   ReadData_t()
 
#define setBufferSource_t   SetBufferSource_t()
 
#define resetBufferSource_t   ResetBufferSource_t()
 
#define EXECUTE_GENERAL_FUNCTION(FULLFUNCTIONNAME)   (this->*FULLFUNCTIONNAME)
 Macro to execute the function given a function pointer. More...
 
#define DEEPCOPY_FUNCTION(FUNC)   _function_##FUNC(copyin._function_##FUNC)
 
#define DEEPCOPY_GET(FUNC)    DEEPCOPY_FUNCTION(get##FUNC)
 
#define DEEPCOPY_IS(FUNC)    DEEPCOPY_FUNCTION(is##FUNC)
 
#define DEEPCOPY_SET(FUNC)    DEEPCOPY_FUNCTION(set##FUNC)
 
#define DEEPCOPY_GET_AND_SET(FUNC)
 
#define DEEPCOPY_IS_AND_SET(FUNC)
 
#define ZEROOUT_FUNCTION(FUNC)   _function_##FUNC(NULL)
 
#define ZEROOUT_GET(FUNC)    ZEROOUT_FUNCTION(get##FUNC)
 
#define ZEROOUT_IS(FUNC)    ZEROOUT_FUNCTION(is##FUNC)
 
#define ZEROOUT_SET(FUNC)    ZEROOUT_FUNCTION(set##FUNC)
 
#define ZEROOUT_GET_AND_SET(FUNC)
 
#define ZEROOUT_IS_AND_SET(FUNC)
 

Macro Definition Documentation

#define DEEPCOPY_FUNCTION (   FUNC)    _function_##FUNC(copyin._function_##FUNC)

Definition at line 40 of file FunctionBind.h.

#define DEEPCOPY_GET (   FUNC)    DEEPCOPY_FUNCTION(get##FUNC)

Definition at line 41 of file FunctionBind.h.

#define DEEPCOPY_GET_AND_SET (   FUNC)
Value:
,DEEPCOPY_SET(FUNC)
#define DEEPCOPY_GET(FUNC)
Definition: FunctionBind.h:41
#define DEEPCOPY_SET(FUNC)
Definition: FunctionBind.h:43

Definition at line 44 of file FunctionBind.h.

#define DEEPCOPY_IS (   FUNC)    DEEPCOPY_FUNCTION(is##FUNC)

Definition at line 42 of file FunctionBind.h.

#define DEEPCOPY_IS_AND_SET (   FUNC)
Value:
,DEEPCOPY_SET(FUNC)
#define DEEPCOPY_IS(FUNC)
Definition: FunctionBind.h:42
#define DEEPCOPY_SET(FUNC)
Definition: FunctionBind.h:43

Definition at line 47 of file FunctionBind.h.

#define DEEPCOPY_SET (   FUNC)    DEEPCOPY_FUNCTION(set##FUNC)

Definition at line 43 of file FunctionBind.h.

#define DELEGATE (   CLASS,
  FUNC,
  OUTPUT,
  ... 
)    OUTPUT (CLASS::*FUNC) (__VA_ARGS__)

Delegate (or function pointer)

Definition at line 16 of file FunctionBind.h.

Referenced by daqdataformats::RawDAQData::isVersionUnknown(), and daqdataformats::RawDAQData::setUint64_t().

#define DELEGATEV (   CLASS,
  FUNC,
  OUTPUT 
)    DELEGATE(CLASS,FUNC,OUTPUT,)

Definition at line 17 of file FunctionBind.h.

#define EXECUTE_GENERAL_FUNCTION (   FULLFUNCTIONNAME)    (this->*FULLFUNCTIONNAME)

Macro to execute the function given a function pointer.

Definition at line 37 of file FunctionBind.h.

Referenced by daqdataformats::RawDAQData::defaultConstructorFloatingSize(), and daqdataformats::RawDAQData::setUint64_t().

#define Init_t (   FUNC)    DELEGATEV(RawDAQData, FUNC, void )

Definition at line 21 of file FunctionBind.h.

#define init_t   Init_t()
#define Print_t (   FUNC)    DELEGATE(RawDAQData, FUNC, void , std::ostream&) const

Definition at line 23 of file FunctionBind.h.

#define print_t   Print_t()

Definition at line 31 of file FunctionBind.h.

Referenced by daqdataformats::RawDAQData::RawDAQData().

#define ReadData_t (   FUNC)    DELEGATE(RawDAQData, FUNC, void* , const void* )

Definition at line 24 of file FunctionBind.h.

#define readData_t   ReadData_t()

Definition at line 32 of file FunctionBind.h.

Referenced by daqdataformats::RawDAQData::RawDAQData().

#define ResetBufferSource_t (   FUNC)    DELEGATEV(RawDAQData, FUNC, bool )
#define resetBufferSource_t   ResetBufferSource_t()
#define SetBufferSource_t (   FUNC)    DELEGATE(RawDAQData, FUNC, bool , const void* )

Definition at line 25 of file FunctionBind.h.

#define setBufferSource_t   SetBufferSource_t()

Definition at line 33 of file FunctionBind.h.

Referenced by daqdataformats::RawDAQData::RawDAQData().

#define Sizeofdata_t (   FUNC)    DELEGATEV(RawDAQData, FUNC, uint32_t) const

Definition at line 22 of file FunctionBind.h.

#define sizeofdata_t   Sizeofdata_t()
#define ZEROOUT_FUNCTION (   FUNC)    _function_##FUNC(NULL)

Definition at line 52 of file FunctionBind.h.

#define ZEROOUT_GET (   FUNC)    ZEROOUT_FUNCTION(get##FUNC)

Definition at line 53 of file FunctionBind.h.

#define ZEROOUT_GET_AND_SET (   FUNC)
Value:
,ZEROOUT_SET(FUNC)
#define ZEROOUT_GET(FUNC)
Definition: FunctionBind.h:53
#define ZEROOUT_SET(FUNC)
Definition: FunctionBind.h:55

Definition at line 56 of file FunctionBind.h.

#define ZEROOUT_IS (   FUNC)    ZEROOUT_FUNCTION(is##FUNC)

Definition at line 54 of file FunctionBind.h.

#define ZEROOUT_IS_AND_SET (   FUNC)
Value:
ZEROOUT_IS(FUNC)\
,ZEROOUT_SET(FUNC)
#define ZEROOUT_SET(FUNC)
Definition: FunctionBind.h:55
#define ZEROOUT_IS(FUNC)
Definition: FunctionBind.h:54

Definition at line 59 of file FunctionBind.h.

#define ZEROOUT_SET (   FUNC)    ZEROOUT_FUNCTION(set##FUNC)

Definition at line 55 of file FunctionBind.h.