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_def & operator++ () ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def operator++ (int) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator-- () ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def operator-- (int) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator+= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator+= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator-= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator-= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator*= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator*= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator/= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator/= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator%= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator%= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator&= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator&= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator|= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator|= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 type_def & operator^= (T rhs) ETL_NOEXCEPT
ETL_CONSTEXPR14 type_def & operator^= (const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value, type_def & >::type operator<<= (T rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value, type_def & >::type operator>>= (T rhs) ETL_NOEXCEPT
TValue & get () ETL_NOEXCEPT
ETL_CONSTEXPR const TValue & get () 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
template<typename T>
ETL_CONSTEXPR etl::enable_if< etl::is_integral< T >::value, type_def >::type operator<< (const type_def &lhs, T rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR etl::enable_if<(etl::is_integral< T >::value &&etl::is_integral< TValue >::value), T >::type operator<< (T lhs, const type_def &rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR etl::enable_if< etl::is_integral< T >::value, type_def >::type operator>> (const type_def &lhs, T rhs) ETL_NOEXCEPT
template<typename T>
ETL_CONSTEXPR etl::enable_if<(etl::is_integral< T >::value &&etl::is_integral< TValue >::value), T >::type operator>> (T 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) 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);
or
ETL_USING(mytype, int);
// Long form.
class mytype_t_tag;
Definition type_def.h:58

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