Loading...
Searching...
No Matches
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< S, N >
typedef TupleBase< S, N > tuplebase_t
 
typedef S value_type
 
typedef S * iterator
 
typedef S 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< S, N >
const S & at (size_t i) const
 Return const reference to element i.
 
const S & operator[] (size_t i) const
 
S & at (size_t i)
 Return reference to element i.
 
S & operator[] (size_t i)
 
bool operator== (const tuplebase_t &t) const
 Equality operator.
 
bool operator== (const value_type &t) const
 Equality operator against single value.
 
bool operator!= (const tuplebase_t &t) const
 Inequality operator.
 
template<class T >
T & toSequence (T &sequence) const
 Copy elements to a Sequence, like stl::list, stl::set or stl::vector.
 
void set (const tuplebase_t &t)
 
template<class T2 , size_t N2 = 2>
void set (const TupleBase< T2, N2 > &t)
 Assign tuple of different type and/or size.
 
void set (const S &arg)
 
template<typename ... SS>
void set (const S &arg, const SS &... rest)
 Set element(s).
 
template<typename T >
void set (std::initializer_list< T > l)
 
template<class T >
tuplebase_tassignSequence (T &sequence, bool LENIENT=false)
 Proposed for tuples only; derived classes should not shadow this.
 
void fill (S i)
 Set all the elements to i.
 
void clear ()
 
virtual void toStreamFormatted (std::ostream &ostr, char separator=',') const
 
virtual void toStream (std::ostream &ostr) 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< S, N >
static const size_t storageTypeSize = sizeof(S)
 

Additional Inherited Members

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

Member Function Documentation

◆ begin() [1/2]

template<class C , typename T = typename C::value_t, size_t N = sizeof(C)/sizeof(T)>
virtual iterator begin ( )
inlinevirtual

Implements TupleBase< S, N >.

◆ begin() [2/2]

template<class C , typename T = typename C::value_t, size_t N = sizeof(C)/sizeof(T)>
virtual const_iterator begin ( ) const
inlinevirtual

Implements TupleBase< S, N >.

◆ end() [1/2]

template<class C , typename T = typename C::value_t, size_t N = sizeof(C)/sizeof(T)>
virtual iterator end ( )
inlinevirtual

Implements TupleBase< S, N >.

◆ end() [2/2]

template<class C , typename T = typename C::value_t, size_t N = sizeof(C)/sizeof(T)>
virtual const_iterator end ( ) const
inlinevirtual

Implements TupleBase< S, N >.


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