Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
serialbox::TypeUtil Struct Reference

Utilites for TypeID. More...

#include <Type.h>

Static Public Member Functions

static std::string toString (TypeID id)
 Convert to string.
 
static int sizeOf (TypeID id)
 Get size of the type. More...
 
static bool isPrimitive (TypeID id) noexcept
 Check if type is primitive.
 
static TypeID getPrimitive (TypeID id) noexcept
 Return the underlying primitve type.
 
static bool isArray (TypeID id) noexcept
 Check if type is an array of types.
 
static TypeID getArray (TypeID id) noexcept
 Return the array type.
 

Detailed Description

Utilites for TypeID.

Definition at line 101 of file Type.h.

Member Function Documentation

◆ sizeOf()

int serialbox::TypeUtil::sizeOf ( TypeID  id)
static

Get size of the type.

Exceptions
ExceptionType can not be handled

Definition at line 73 of file Type.cpp.


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