Reference documentation for deal.II version 9.1.0-pre
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
TransposeTableIterators::AccessorBase< T, Constness > Class Template Reference

#include <deal.II/base/table.h>

Inheritance diagram for TransposeTableIterators::AccessorBase< T, Constness >:
[legend]

Public Types

using container_pointer_type = typename std::conditional< Constness, const TransposeTable< T > *, TransposeTable< T > * >::type
 
using size_type = typename TransposeTable< T >::size_type
 

Public Member Functions

 AccessorBase ()
 
 AccessorBase (const container_pointer_type table)
 
 AccessorBase (const AccessorBase< T, false > &)
 
 AccessorBase (const container_pointer_type table, const std::ptrdiff_t linear_index)
 
const T & value () const
 
size_type row () const
 
size_type column () const
 

Protected Attributes

container_pointer_type container
 
std::ptrdiff_t linear_index
 

Friends

class AccessorBase< T, true >
 
class LinearIndexIterator< Iterator< T, Constness >, Accessor< T, Constness > >
 

Detailed Description

template<typename T, bool Constness>
class TransposeTableIterators::AccessorBase< T, Constness >

Accessor base class. Stores a const pointer when Constness == true and a non-const pointer when Constness == false.

Definition at line 1564 of file table.h.

Member Typedef Documentation

template<typename T, bool Constness>
using TransposeTableIterators::AccessorBase< T, Constness >::container_pointer_type = typename std::conditional<Constness, const TransposeTable<T> *, TransposeTable<T> *>::type

Type of the stored pointer to the TransposeTable.

Definition at line 1573 of file table.h.

template<typename T, bool Constness>
using TransposeTableIterators::AccessorBase< T, Constness >::size_type = typename TransposeTable<T>::size_type

Numerical type of the row and column indices of the TransposeTable.

Definition at line 1607 of file table.h.

Constructor & Destructor Documentation

template<typename T, bool Constness>
TransposeTableIterators::AccessorBase< T, Constness >::AccessorBase ( )

Default constructor.

template<typename T, bool Constness>
TransposeTableIterators::AccessorBase< T, Constness >::AccessorBase ( const container_pointer_type  table)

Constructor setting up the end iterator.

template<typename T, bool Constness>
TransposeTableIterators::AccessorBase< T, Constness >::AccessorBase ( const AccessorBase< T, false > &  )

Copy constructor from a non-const Accessor.

template<typename T, bool Constness>
TransposeTableIterators::AccessorBase< T, Constness >::AccessorBase ( const container_pointer_type  table,
const std::ptrdiff_t  linear_index 
)

Constructor taking an array index. Note that TransposeTable stores data in column-major order.

Member Function Documentation

template<typename T, bool Constness>
const T& TransposeTableIterators::AccessorBase< T, Constness >::value ( ) const

Get a constant reference to the value of the element represented by this object.

template<typename T, bool Constness>
size_type TransposeTableIterators::AccessorBase< T, Constness >::row ( ) const

Access the row of the current entry.

template<typename T, bool Constness>
size_type TransposeTableIterators::AccessorBase< T, Constness >::column ( ) const

Access the column of the current entry.

Friends And Related Function Documentation

template<typename T, bool Constness>
friend class AccessorBase< T, true >
friend

Make the const version a friend for copying.

Definition at line 1635 of file table.h.

template<typename T, bool Constness>
friend class LinearIndexIterator< Iterator< T, Constness >,Accessor< T, Constness > >
friend

Make the underlying iterator class a friend.

Definition at line 1641 of file table.h.

Member Data Documentation

template<typename T, bool Constness>
container_pointer_type TransposeTableIterators::AccessorBase< T, Constness >::container
protected

Pointer to the TransposeTable.

Definition at line 1625 of file table.h.

template<typename T, bool Constness>
std::ptrdiff_t TransposeTableIterators::AccessorBase< T, Constness >::linear_index
protected

Current index.

Definition at line 1630 of file table.h.


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