Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <int-type.h>
Public Types | |
typedef _ValueType | ValueType |
for non-member operators | |
typedef IntType< IntTypeName, ValueType > | ThisType |
Syntactic sugar. | |
Public Member Functions | |
IntType () | |
Default c'tor initializing value_ to 0. | |
IntType (ValueType value) | |
C'tor explicitly initializing from a ValueType. | |
ValueType | value () const |
IntType uses the default copy constructor and destructor. | |
template<typename ValType> | |
ValType | value () const |
ThisType & | operator++ () |
-- UNARY OPERATORS -------------------------------------------------------- | |
const ThisType | operator++ (int v) |
ThisType & | operator-- () |
const ThisType | operator-- (int v) |
bool | operator! () const |
const ThisType | operator+ () const |
const ThisType | operator- () const |
const ThisType | operator~ () const |
INT_TYPE_ASSIGNMENT_OP (=) | |
INT_TYPE_ASSIGNMENT_OP (+=) | |
INT_TYPE_ASSIGNMENT_OP (-=) | |
INT_TYPE_ASSIGNMENT_OP * | INT_TYPE_ASSIGNMENT_OP (/=);INT_TYPE_ASSIGNMENT_OP(<<= |
NOLINT. | |
INT_TYPE_ASSIGNMENT_OP (>>=) | |
NOLINT. | |
INT_TYPE_ASSIGNMENT_OP (%=) |
The template parameter IntTypeName defines the name for the int type and must be unique within a binary (the convenient DEFINE_INT_TYPE macro at the end of the file generates a unique IntTypeName). The parameter ValueType defines the integer type value (see supported list above).
This class is NOT thread-safe.
Definition at line 175 of file int-type.h.
ValueType IntType< IntTypeName, _ValueType >::value | ( | ) | const [inline] |
IntType uses the default copy constructor and destructor.
-- ACCESSORS -------------------------------------------------------------- The class provides a value() accessor returning the stored ValueType value_ as well as a templatized accessor that is just a syntactic sugar for static_cast<T>(var.value());
Definition at line 191 of file int-type.h.
ValType IntType< IntTypeName, _ValueType >::value | ( | ) | const [inline] |
Definition at line 194 of file int-type.h.
ThisType& IntType< IntTypeName, _ValueType >::operator++ | ( | ) | [inline] |
-- UNARY OPERATORS --------------------------------------------------------
Definition at line 197 of file int-type.h.
const ThisType IntType< IntTypeName, _ValueType >::operator++ | ( | int | v | ) | [inline] |
Definition at line 201 of file int-type.h.
ThisType& IntType< IntTypeName, _ValueType >::operator-- | ( | ) | [inline] |
Definition at line 206 of file int-type.h.
const ThisType IntType< IntTypeName, _ValueType >::operator-- | ( | int | v | ) | [inline] |
Definition at line 210 of file int-type.h.
bool IntType< IntTypeName, _ValueType >::operator! | ( | ) | const [inline] |
Definition at line 216 of file int-type.h.
const ThisType IntType< IntTypeName, _ValueType >::operator+ | ( | ) | const [inline] |
Definition at line 217 of file int-type.h.
const ThisType IntType< IntTypeName, _ValueType >::operator- | ( | ) | const [inline] |
Definition at line 218 of file int-type.h.
const ThisType IntType< IntTypeName, _ValueType >::operator~ | ( | ) | const [inline] |
Definition at line 219 of file int-type.h.
IntType< IntTypeName, _ValueType >::INT_TYPE_ASSIGNMENT_OP | ( | ) |
IntType< IntTypeName, _ValueType >::INT_TYPE_ASSIGNMENT_OP | ( | + | ) |
IntType< IntTypeName, _ValueType >::INT_TYPE_ASSIGNMENT_OP | ( | - | ) |
INT_TYPE_ASSIGNMENT_OP* IntType< IntTypeName, _ValueType >::INT_TYPE_ASSIGNMENT_OP | ( | / | ) |
NOLINT.
IntType< IntTypeName, _ValueType >::INT_TYPE_ASSIGNMENT_OP | ( | >> | ) |
NOLINT.
IntType< IntTypeName, _ValueType >::INT_TYPE_ASSIGNMENT_OP | ( | % | ) |