Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
static int getVersion ()
 Get version of data type.
 

Static Public Attributes

static const int ID = __ID
 Data type identifier.
 

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

◆ getName()

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 }

◆ getVersion()

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

◆ ID

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: