Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PseudoTuple< C, T, N > Class Template Reference
Inheritance diagram for PseudoTuple< C, T, N >:
Inheritance graph
[legend]
Collaboration diagram for PseudoTuple< C, T, N >:
Collaboration graph
[legend]

Public Types

typedef T * iterator
 
typedef T const * const_iterator
 
- Public Types inherited from TupleBase< typename C::value_t, sizeof(C)/sizeof(typename C::value_t) >
typedef TupleBase< typename C::value_t, N > tuplebase_t
 
typedef typename C::value_t value_type
 
typedef typename C::value_t * iterator
 
typedef typename C::value_t const * const_iterator
 

Public Member Functions

virtual const_iterator begin () const
 
virtual const_iterator end () const
 
virtual iterator begin ()
 
virtual iterator end ()
 
- Public Member Functions inherited from TupleBase< typename C::value_t, sizeof(C)/sizeof(typename C::value_t) >
const typename C::value_t & at (size_t i) const
 Return const reference to element i. More...
 
typename C::value_t & at (size_t i)
 Return reference to element i. More...
 
const typename C::value_t & operator[] (size_t i) const
 
typename C::value_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 typename C::value_t &arg)
 
void set (const typename C::value_t &arg, const SS &... rest)
 Set element(s).
 
void set (std::initializer_list< T > l)
 
tuplebase_tassignSequence (T &sequence, bool LENIENT=false)
 Proposed for tuples only; derived classes should not shadow this. More...
 
void fill (typename C::value_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 ()
 

Public Attributes

const size_t elementCount
 

Static Public Attributes

static const size_t baseTypeSize = sizeof(C)
 
- Static Public Attributes inherited from TupleBase< typename C::value_t, sizeof(C)/sizeof(typename C::value_t) >
static const size_t storageTypeSize
 

Additional Inherited Members

- Static Public Member Functions inherited from TupleBase< typename C::value_t, sizeof(C)/sizeof(typename C::value_t) >
static size_t size ()
 Return the number of elements. More...
 
- Protected Member Functions inherited from TupleBase< typename C::value_t, sizeof(C)/sizeof(typename C::value_t) >
void setIndexed (size_t i)
 Argument stack endpoint function; final step of variadic argument set(arg, ...) .
 
void setIndexed (size_t i, T2 arg, const TT &... rest)
 Worker called by set(T2 arg, T2 arg2, ...)
 

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