Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::TypeInfoUtil Struct Reference

#include <TypeInfoUtil.h>

Static Public Member Functions

static bool isCompound (SchemaType schemaType)
 
static bool isCompound (CppType cppType)
 
static bool hasChoice (SchemaType schemaType)
 
static bool hasChoice (CppType cppType)
 
static bool isFixedSize (SchemaType schemaType)
 
static bool isFixedSize (CppType cppType)
 
static bool isIntegral (SchemaType schemaType)
 
static bool isIntegral (CppType cppType)
 
static bool isSigned (SchemaType schemaType)
 
static bool isSigned (CppType cppType)
 
static bool isFloatingPoint (SchemaType schemaType)
 
static bool isFloatingPoint (CppType cppType)
 

Detailed Description

The type information helper utilities to check zserio schema and C++ types.

Definition at line 12 of file TypeInfoUtil.h.

Member Function Documentation

◆ hasChoice() [1/2]

bool zserio::TypeInfoUtil::hasChoice ( CppType  cppType)
static

Checks if C++ type is a choice or union type.

Parameters
cppTypeC++ type to check.
Returns
true if C++ type is a choice or union type, otherwise false.

Definition at line 44 of file TypeInfoUtil.cpp.

◆ hasChoice() [2/2]

bool zserio::TypeInfoUtil::hasChoice ( SchemaType  schemaType)
static

Checks if zserio type is a choice or union type.

Parameters
schemaTypeSchema type to check.
Returns
true if zserio type is a choice or union type, otherwise false.

Definition at line 32 of file TypeInfoUtil.cpp.

◆ isCompound() [1/2]

bool zserio::TypeInfoUtil::isCompound ( CppType  cppType)
static

Checks if C++ type is a compound type.

Parameters
cppTypeC++ type to check.
Returns
true if C++ type is a compound type, otherwise false.

Definition at line 19 of file TypeInfoUtil.cpp.

◆ isCompound() [2/2]

bool zserio::TypeInfoUtil::isCompound ( SchemaType  schemaType)
static

Checks if zserio type is a compound type.

Parameters
schemaTypeSchema type to check.
Returns
true if zserio type is a compound type, otherwise false.

Definition at line 6 of file TypeInfoUtil.cpp.

◆ isFixedSize() [1/2]

bool zserio::TypeInfoUtil::isFixedSize ( CppType  cppType)
static

Checks if C++ type is a fixed sized type.

Parameters
cppTypeC++ type to check.
Returns
true if C++ type is a fixed sized type, otherwise false.

Definition at line 80 of file TypeInfoUtil.cpp.

◆ isFixedSize() [2/2]

bool zserio::TypeInfoUtil::isFixedSize ( SchemaType  schemaType)
static

Checks if zserio type is a fixed sized type.

Parameters
schemaTypeSchema type to check.
Returns
true if zserio type is a fixed sized type, otherwise false.

Definition at line 56 of file TypeInfoUtil.cpp.

◆ isFloatingPoint() [1/2]

bool zserio::TypeInfoUtil::isFloatingPoint ( CppType  cppType)
static

Checks if C++ type is a floating point type.

Parameters
cppTypeC++ type to check.
Returns
true if C++ type is a floating point type, otherwise false.

Definition at line 204 of file TypeInfoUtil.cpp.

◆ isFloatingPoint() [2/2]

bool zserio::TypeInfoUtil::isFloatingPoint ( SchemaType  schemaType)
static

Checks if zserio type is a floating point type.

Parameters
schemaTypeSchema type to check.
Returns
true if zserio type is a floating point type, otherwise false.

Definition at line 191 of file TypeInfoUtil.cpp.

◆ isIntegral() [1/2]

bool zserio::TypeInfoUtil::isIntegral ( CppType  cppType)
static

Checks if C++ type is a integral type.

Parameters
cppTypeC++ type to check.
Returns
true if C++ type is a integral type, otherwise false.

Definition at line 133 of file TypeInfoUtil.cpp.

◆ isIntegral() [2/2]

bool zserio::TypeInfoUtil::isIntegral ( SchemaType  schemaType)
static

Checks if zserio type is a integral type.

Parameters
schemaTypeSchema type to check.
Returns
true if zserio type is a integral type, otherwise false.

Definition at line 101 of file TypeInfoUtil.cpp.

◆ isSigned() [1/2]

bool zserio::TypeInfoUtil::isSigned ( CppType  cppType)
static

Checks if C++ type is a signed type.

Parameters
cppTypeC++ type to check.
Returns
true if C++ type is a signed type, otherwise false.

Definition at line 175 of file TypeInfoUtil.cpp.

◆ isSigned() [2/2]

bool zserio::TypeInfoUtil::isSigned ( SchemaType  schemaType)
static

Checks if zserio type is a signed type.

Parameters
schemaTypeSchema type to check.
Returns
true if zserio type is a signed type, otherwise false.

Definition at line 152 of file TypeInfoUtil.cpp.


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