Jpp  15.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Public Attributes | List of all members
JLabel< __ID, __getName, __getVersion > Struct Template Reference

Auxiliary data structure to label data types within a type list. More...

#include <JTypeID.hh>

Static Public Member Functions

static const char * getName ()
 Get name of data type. More...
 
static int getVersion ()
 Get version of data type. More...
 

Static Public Attributes

static const int ID = __ID
 Data type identifier. More...
 

Detailed Description

template<int __ID, const char *(*)() __getName = JLANG::getDefaultName, int(*)() __getVersion = JLANG::getDefaultVersion>
struct JLabel< __ID, __getName, __getVersion >

Auxiliary data structure to label data types within a type list.

Definition at line 141 of file JTypeID.hh.

Member Function Documentation

template<int __ID, const char *(*)() __getName = JLANG::getDefaultName, int(*)() __getVersion = JLANG::getDefaultVersion>
static const char* JLabel< __ID, __getName, __getVersion >::getName ( )
inlinestatic

Get name of data type.

Returns
name

Definition at line 154 of file JTypeID.hh.

155  {
156  return (*__getName)();
157  }
template<int __ID, const char *(*)() __getName = JLANG::getDefaultName, int(*)() __getVersion = JLANG::getDefaultVersion>
static int JLabel< __ID, __getName, __getVersion >::getVersion ( )
inlinestatic

Get version of data type.

Returns
version

Definition at line 165 of file JTypeID.hh.

166  {
167  return (*__getVersion)();
168  }

Member Data Documentation

template<int __ID, const char *(*)() __getName = JLANG::getDefaultName, int(*)() __getVersion = JLANG::getDefaultVersion>
const int JLabel< __ID, __getName, __getVersion >::ID = __ID
static

Data type identifier.

Definition at line 146 of file JTypeID.hh.


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