Fixposition SDK 0.0.0-heads/main-0-gfaec355
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
types.hpp File Reference

Fixposition SDK: Common types and type helpers. More...

#include <array>
#include <cstdint>
#include <type_traits>
Include dependency graph for types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fpsdk::common::types::NoCopyNoMove
 Base class to prevent copy or move. More...
 

Namespaces

namespace  fpsdk
 Fixposition SDK.
 
namespace  fpsdk::common
 Fixposition SDK: Common library.
 
namespace  fpsdk::common::types
 Common types.
 

Macros

#define UNUSED(thing)
 Mark variable as unused to silence compiler warnings.
 
#define STRINGIFY(x)
 Preprocessor stringification.
 
#define CONCAT(a, b)
 Preprocessor concatenation.
 
#define SIZEOF_FIELD(_type_, _member_)   sizeof((((_type_*)NULL)->_member_))
 Size of struct member.
 

Functions

template<typename T , typename = typename std::enable_if<std::is_enum<T>::value, T>::type>
constexpr std::underlying_type< T >::type fpsdk::common::types::EnumToVal (T enum_val)
 Convert enum class constant to the underlying integral type value.
 
template<typename T >
constexpr std::size_t fpsdk::common::types::NumOf (const T &arr)
 Get number of elements in array variable.
 
template<typename T >
constexpr std::size_t fpsdk::common::types::NumOf ()
 Get number of elements in array type.
 

Detailed Description

Fixposition SDK: Common types and type helpers.

* ___    ___
* \  \  /  /
*  \  \/  /   Copyright (c) Fixposition AG (www.fixposition.com) and contributors
*  /  /\  \   License: see the LICENSE file
* /__/  \__\
* 

Definition in file types.hpp.

Macro Definition Documentation

◆ UNUSED

#define UNUSED ( thing)

Mark variable as unused to silence compiler warnings.

Definition at line 110 of file types.hpp.

◆ STRINGIFY

#define STRINGIFY ( x)

Preprocessor stringification.

Definition at line 115 of file types.hpp.

◆ CONCAT

#define CONCAT ( a,
b )

Preprocessor concatenation.

Definition at line 120 of file types.hpp.

◆ SIZEOF_FIELD

#define SIZEOF_FIELD ( _type_,
_member_ )   sizeof((((_type_*)NULL)->_member_))

Size of struct member.

Definition at line 125 of file types.hpp.