internal::TableBaseAccessors::Accessor< N, T, C, 1 > Class Template Reference
List of all members.
template<int N, typename T, bool C>
class internal::TableBaseAccessors::Accessor< N, T, C, 1 >
Member Typedef Documentation
template<int N, typename T , bool C>
Typedef constant and non-constant iterator types to the elements of this row, as well as all the other types usually required for the standard library algorithms.
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
template<int N, typename T , bool C>
Import a typedef from the switch class above.
Constructor & Destructor Documentation
template<int N, typename T , bool C>
Constructor. Take a pointer to the table object to know about the sizes of the various dimensions, and a pointer to the subset of data we may access (which in this particular case is only one row).
The constructor is made private in order to prevent you having such objects around. The only way to create such objects is via the Table
class, which only generates them as temporary objects. This guarantees that the accessor objects go out of scope earlier than the mother object, avoid problems with data consistency.
template<int N, typename T , bool C>
Default constructor. Not needed, so private.
template<int N, typename T , bool C>
Copy constructor. This constructor is public so that one can pass sub-tables to functions as arguments, as in f(table[i])
.
Using this constructor is risky if accessors are stored longer than the table it points to. Don't do this.
Member Function Documentation
template<int N, typename T , bool C>
Index operator. Performs a range check.
template<int N, typename T , bool C>
Return the length of one row, i.e. the number of elements corresponding to the last index of the table object.
template<int N, typename T , bool C>
Return an iterator to the first element of this row.
template<int N, typename T , bool C>
Return an interator to the element past the end of this row.
Friends And Related Function Documentation
template<int N, typename T , bool C>
friend class ::Table [friend] |
template<int N, typename T , bool C>
template<int N, typename T , bool C>
friend class ::Table< 2, T > [friend] |
template<int N, typename T , bool C>
friend class Accessor< N, T, C, 2 > [friend] |
Member Data Documentation
template<int N, typename T , bool C>
Store the data given to the constructor. There are no non-const member functions of this class, so there is no reason not to make these elements constant.
template<int N, typename T , bool C>
The documentation for this class was generated from the following file: