Embedded Template Library 1.0
etl::type_def< TIdType, TValue > Class Template Reference

#include <type_def.h>

Public Types

typedef TValue value_type
 
typedef TIdType id_type
 

Public Member Functions

 type_def (TValue value_)
 
 type_def (const type_def &other)
 
 operator TValue () const
 
type_defoperator++ ()
 
type_def operator++ (int)
 
type_defoperator-- ()
 
type_def operator-- (int)
 
type_defoperator+= (TValue rhs)
 
type_defoperator+= (const type_def &rhs)
 
type_defoperator-= (TValue rhs)
 
type_defoperator-= (const type_def &rhs)
 
type_defoperator*= (TValue rhs)
 
type_defoperator*= (const type_def &rhs)
 
type_defoperator/= (TValue rhs)
 
type_defoperator/= (const type_def &rhs)
 
type_defoperator%= (TValue rhs)
 
type_defoperator%= (const type_def &rhs)
 
type_defoperator&= (TValue rhs)
 
type_defoperator&= (const type_def &rhs)
 
type_defoperator|= (TValue rhs)
 
type_defoperator|= (const type_def &rhs)
 
type_defoperator^= (TValue rhs)
 
type_defoperator^= (const type_def &rhs)
 
type_defoperator<<= (TValue rhs)
 
type_defoperator>>= (TValue rhs)
 
type_defoperator= (TValue rhs)
 
type_defoperator= (const type_def &rhs)
 
TValue & get ()
 
const TValue & get () const
 

Friends

bool operator< (const type_def &lhs, const type_def &rhs)
 
bool operator<= (const type_def &lhs, const type_def &rhs)
 
bool operator> (const type_def &lhs, const type_def &rhs)
 
bool operator>= (const type_def &lhs, const type_def &rhs)
 
bool operator== (const type_def &lhs, const type_def &rhs)
 
bool operator!= (const type_def &lhs, const type_def &rhs)
 

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);
// Long form.
class mytype_t_tag;
typedef etl::type_def<mytype_t_tag, int> mytype_t_tag;
Definition: type_def.h:54

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