Embedded Template Library 1.0
Loading...
Searching...
No Matches
etl::type_def< TIdType, TValue > Class Template Reference

#include <type_def.h>

Public Types

typedef TValue type
 
typedef TValue value_type
 
typedef TIdType id_type
 

Public Member Functions

template<typename T >
ETL_CONSTEXPR type_def (T value_) ETL_NOEXCEPT
 
ETL_CONSTEXPR operator TValue () const ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator++ () ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_def operator++ (int) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator-- () ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_def operator-- (int) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator+= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator+= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator-= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator-= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator*= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator*= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator/= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator/= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator%= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator%= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator&= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator&= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator|= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator|= (const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 type_defoperator^= (T rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator^= (const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator<<= (int rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR14 type_defoperator>>= (int rhs) ETL_NOEXCEPT
 
TValueget () ETL_NOEXCEPT
 
ETL_CONSTEXPR const TValueget () const ETL_NOEXCEPT
 

Friends

template<typename T >
ETL_CONSTEXPR type_def operator+ (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator+ (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator+ (const type_def &lhs, const type_def &rhs)
 
template<typename T >
ETL_CONSTEXPR type_def operator- (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator- (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator- (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator* (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator* (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator* (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator/ (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator/ (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator/ (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator% (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator% (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator% (const type_def &lhs, const type_def &rhs)
 
template<typename T >
ETL_CONSTEXPR type_def operator& (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator& (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator& (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator| (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator| (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator| (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator^ (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR type_def operator^ (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator^ (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator<< (const type_def &lhs, int rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR type_def operator>> (const type_def &lhs, int rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator< (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator< (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR bool operator< (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator<= (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator<= (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR bool operator<= (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator> (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator> (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR bool operator> (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator>= (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator>= (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR bool operator>= (const type_def &lhs, const type_def &rhs)
 
template<typename T >
ETL_CONSTEXPR bool operator== (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator== (T lhs, const type_def &rhs)
 
ETL_CONSTEXPR bool operator== (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator!= (const type_def &lhs, T rhs) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR bool operator!= (T lhs, const type_def &rhs) ETL_NOEXCEPT
 
ETL_CONSTEXPR bool operator!= (const type_def &lhs, const type_def &rhs) ETL_NOEXCEPT
 

Detailed Description

template<typename TIdType, typename TValue>
class etl::type_def< TIdType, TValue >

A template type to define strong typedefs. Usage:

// Short form.
ETL_TYPEDEF(int, mytype);
ETL_USING(mytype, int);
// Long form.
Definition type_def.h:58
ETL_NODISCARD ETL_CONSTEXPR14 T round_half_even_unscaled(T value) ETL_NOEXCEPT
Definition scaled_rounding.h:314

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