|
Ion
|
This struct allows the Endpoint and Size types in a Range<1, T> to be treated like those of higher-dimension Range classes (specifically the use of index operators) to simplify templated functions that use them. More...
#include "range.h"

Public Member Functions | |
| Range1TWrapper () | |
| Range1TWrapper (const T &t_in) | |
| operator T () const | |
| T & | operator[] (int index) |
| const T & | operator[] (int index) const |
Static Public Member Functions | |
| static const T | Zero () |
Public Attributes | |
| T | t |
Friends | |
| template<typename U > | |
| std::istream & | operator>> (std::istream &in, Range1TWrapper< U, 0 > &w) |
| Allows reading wrapped value from a stream. More... | |
This struct allows the Endpoint and Size types in a Range<1, T> to be treated like those of higher-dimension Range classes (specifically the use of index operators) to simplify templated functions that use them.
It is essentially an implicit wrapper around a value of type T.
|
inline |
|
inline |
|
inline |
Definition at line 41 of file range.h.
References ion::math::Range1TWrapper< T, N >::t.
|
inline |
Definition at line 42 of file range.h.
References DCHECK_EQ, and ion::math::Range1TWrapper< T, N >::t.
|
inline |
Definition at line 46 of file range.h.
References DCHECK_EQ, and ion::math::Range1TWrapper< T, N >::t.
|
inlinestatic |
|
friend |
Allows reading wrapped value from a stream.
| T ion::math::Range1TWrapper< T, N >::t |
Definition at line 57 of file range.h.
Referenced by ion::math::Range1TWrapper< T, N >::operator T(), ion::math::operator>>(), and ion::math::Range1TWrapper< T, N >::operator[]().