mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::meta::typeDescription< T > Struct Template Reference

template<typename T>
struct mx::meta::typeDescription< T >

Struct which contains static members describing a type.

Specializations are provided for the fundamental types, std::string, and std::vector of fundamental types.

Definition at line 42 of file typeDescription.hpp.

#include <meta/typeDescription.hpp>

Public Types

typedef T type
 The type iteself. More...
 

Static Public Member Functions

static constexpr int code ()
 Returns a unique numeric code for this type. More...
 
static constexpr const char * name ()
 Returns the name of this type. More...
 

Member Typedef Documentation

◆ type

template<typename T >
typedef T mx::meta::typeDescription< T >::type

The type iteself.

Definition at line 44 of file typeDescription.hpp.

Member Function Documentation

◆ code()

template<typename T >
static constexpr int mx::meta::typeDescription< T >::code ( )
inlinestaticconstexpr

Returns a unique numeric code for this type.

Definition at line 47 of file typeDescription.hpp.

◆ name()

template<typename T >
static constexpr const char* mx::meta::typeDescription< T >::name ( )
inlinestaticconstexpr

Returns the name of this type.

Definition at line 50 of file typeDescription.hpp.


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