Web Analytics Made Easy - Statcounter
Skip to content

File SBDDataGraphNodeGetter.hpp#

FileList > DataGraph > SBDDataGraphNodeGetter.hpp

  • #include "SBCFunctor.hpp"

Classes#

Type Name
class SBDDataGraphNodeGetter <typename Output>
This class describes a getter functor of a data graph node.

Macros#

Type Name
define SBNodeGetter
The short name of SBDDataGraphNodeGetter .
define SB_NODE_GETTER_0 (EXPORT, OUTPUT, NAME)
A macro that defines a description of a node getter.
define SB_NODE_GETTER_IMPLEMENTATION_0 (CLASS, OUTPUT, NAME, GETTER)
A macro that defines an implementation of a node getter.

Macro Definition Documentation#

define SBNodeGetter#

The short name of SBDDataGraphNodeGetter .

#define SBNodeGetter 


define SB_NODE_GETTER_0#

A macro that defines a description of a node getter.

#define SB_NODE_GETTER_0 (
    EXPORT,
    OUTPUT,
    NAME
) 

Parameters:

  • EXPORT E.g., SB_EXPORT
  • OUTPUT The output type
  • NAME The node getter's name

This should go into a header of the class to which this getter belongs.

Example:

SB_NODE_GETTER_0(SB_EXPORT, std::string, GetStringRepresentation);


define SB_NODE_GETTER_IMPLEMENTATION_0#

A macro that defines an implementation of a node getter.

#define SB_NODE_GETTER_IMPLEMENTATION_0 (
    CLASS,
    OUTPUT,
    NAME,
    GETTER
) 

Parameters:

  • CLASS The class to which this getter belongs
  • OUTPUT The output type
  • NAME The node getter's name
  • GETTER The node getter's function

Example:

SB_NODE_GETTER_IMPLEMENTATION_0(MyClass, std::string, GetStringRepresentation, static_cast<MyClass const*>(node)->getStringRepresentation());