Develop Biology
The language of life
|
Go to the source code of this file.
Macros | |
#define | BIO_ID(className, dimension) BIO_ID_WITH_PLURAL(className, className##s, dimension) |
#define | BIO_ID_FUNCTION_BODY(functionName, perspective, dimension) |
#define | BIO_ID_WITH_PERSPECTIVE(className, dimension) |
#define | BIO_ID_WITH_PERSPECTIVE_WITH_PLURAL(className, pluralName, dimension) |
#define | BIO_ID_WITH_PLURAL(className, pluralName, dimension) |
#define | BIO_PERSPECTIVE_SINGLETON(className, dimension) BIO_SINGLETON(className, ::bio::physical::Perspective<dimension>) |
#define BIO_ID | ( | className, | |
dimension | |||
) | BIO_ID_WITH_PLURAL(className, className##s, dimension) |
Define a BIO_ID with "classNames" as plural (e.g. StandardDimensions)
Definition at line 41 of file IdAndPerspectiveMacros.h.
#define BIO_ID_FUNCTION_BODY | ( | functionName, | |
perspective, | |||
dimension | |||
) |
To make defining ids easier, use this macro to define the function body of your Id Function(). This will assign a value to a string that is identical to your FunctionName e.g. MyPerspective::Instance().GetNameFromId(Value()) would give "Value". Necessitates that functionName be a part of any namespaces are already specified (e.g. using namespace somewhere above a call to this macro).
Definition at line 49 of file IdAndPerspectiveMacros.h.
#define BIO_ID_WITH_PERSPECTIVE | ( | className, | |
dimension | |||
) |
This is the preferred design pattern if using singletons and a custom dimension
Definition at line 59 of file IdAndPerspectiveMacros.h.
#define BIO_ID_WITH_PERSPECTIVE_WITH_PLURAL | ( | className, | |
pluralName, | |||
dimension | |||
) |
For when the plural of className isn't "classNames" (e.g. Properties or Axes)
Definition at line 66 of file IdAndPerspectiveMacros.h.
#define BIO_ID_WITH_PLURAL | ( | className, | |
pluralName, | |||
dimension | |||
) |
Ease of use for defining Ids. For more on DIMENSIONs, Ids, etc., see Perspective.h and Identifiable.h
Definition at line 34 of file IdAndPerspectiveMacros.h.
#define BIO_PERSPECTIVE_SINGLETON | ( | className, | |
dimension | |||
) | BIO_SINGLETON(className, ::bio::physical::Perspective<dimension>) |
For ease of use for defining Singleton Perspectives.
Definition at line 27 of file IdAndPerspectiveMacros.h.