ModErn Text Analysis
META Enumerates Textual Applications
|
A CRTP template base that adds numeric functionality to the identifier type. More...
#include <identifiers.h>
Public Member Functions | |
Derived & | operator++ () |
Prefix-increment. More... | |
Derived | operator++ (int) |
Postifx-increment. More... | |
Derived & | operator-- () |
Prefix-decrement. More... | |
Derived | operator-- (int) |
Postfix-decrement. More... | |
Derived & | operator+= (const T &step) |
Derived & | operator-= (const T &step) |
Public Member Functions inherited from meta::util::identifier< Derived, T > | |
identifier (const T &t) | |
identifiers must be explicitly constructed from their base type—they cannot be implicitly converted from them! More... | |
identifier ()=default | |
identifier has a default constructor. | |
identifier (const identifier &)=default | |
identifiers may be copy constructed. | |
identifier (identifier &&)=default | |
identifiers may be move constructed. | |
identifier & | operator= (const identifier &)=default |
identifiers may be copy assigned. | |
identifier & | operator= (identifier &&)=default |
identifiers may be move assigned. | |
identifier & | operator= (const T &t) |
identifiers may be assigned into from their base type, provided they have already been constructed. More... | |
operator const T & () const | |
identifiers may be converted into their base type. More... | |
operator T & () | |
identifiers may be converted into their base type. More... | |
Private Member Functions | |
Derived * | derived () |
Reinterprets the current numerical_identifier as is underlying Derived type. | |
Friends | |
Derived | operator+ (Derived lhs, const Derived &rhs) |
Derived | operator- (Derived lhs, const Derived &rhs) |
Additional Inherited Members | |
Public Attributes inherited from meta::util::identifier< Derived, T > | |
T | id_ |
The underlying id for the identifier. | |
A CRTP template base that adds numeric functionality to the identifier type.
numerical_identifiers support typical integer math functions on top of the things supported by identifiers.
|
inline |
Prefix-increment.
|
inline |
Postifx-increment.
|
inline |
Prefix-decrement.
|
inline |
Postfix-decrement.
|
inline |
step | How much to increase the current identifier by |
|
inline |
step | How much to decrease the current identifier by |
|
friend |
lhs | |
rhs |
|
friend |
lhs | |
rhs |