|
template<typename ... TT> |
| UniTuple (const TT &... args) |
|
| UniTuple (const UniTuple< T, N > &t) |
| Copy constructor.
|
|
template<typename S > |
| UniTuple (std::initializer_list< S > l) |
|
tuple_t & | operator= (const tuple_t &t) |
|
tuple_t & | operator= (const value_type &value) |
|
template<typename S > |
tuple_t & | operator= (std::initializer_list< S > l) |
|
virtual const_iterator | begin () const override final |
|
virtual const_iterator | end () const override final |
|
virtual iterator | begin () override final |
|
virtual iterator | end () override final |
|
tuple_t & | tuple () |
|
const tuple_t & | tuple () const |
|
void | debug (std::ostream &ostr) const |
|
const T & | at (size_t i) const |
| Return const reference to element i. More...
|
|
T & | at (size_t i) |
| Return reference to element i. More...
|
|
const T & | operator[] (size_t i) const |
|
T & | operator[] (size_t i) |
|
bool | operator== (const tuplebase_t &t) const |
| Equality operator.
|
|
bool | operator!= (const tuplebase_t &t) const |
| Inequality operator.
|
|
T & | toSequence (T &sequence) const |
| Copy elements to a Sequence, like stl::list, stl::set or stl::vector.
|
|
void | set (const tuplebase_t &t) |
|
void | set (const TupleBase< T2, N2 > &t) |
| Assign tuple of different type and/or size.
|
|
void | set (const T &arg) |
|
void | set (const T &arg, const SS &... rest) |
| Set element(s).
|
|
void | set (std::initializer_list< T > l) |
|
tuplebase_t & | assignSequence (T &sequence, bool LENIENT=false) |
| Proposed for tuples only; derived classes should not shadow this. More...
|
|
void | fill (T i) |
| Set all the elements to i.
|
|
void | clear () |
|
virtual std::ostream & | toStream (std::ostream &ostr, char separator=',') const |
|
std::string | toStr (char separator=',') const |
|
virtual void | updateTuple () |
|
template<class T, size_t N = 2>
class drain::UniTuple< T, N >
Tuple of N elements of type T.
Uniformity means that all the elements are of same type unlike in std::tuple.