Reference documentation for deal.II version 9.0.0
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

typedef std::conditional< Constness, const TransposeTable< T > *, TransposeTable< T > * >::type container_pointer_type
 
typedef TransposeTable< T >::size_type 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 1526 of file table.h.

Member Typedef Documentation

◆ container_pointer_type

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

Type of the stored pointer to the TransposeTable.

Definition at line 1533 of file table.h.

◆ size_type

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

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

Definition at line 1566 of file table.h.

Constructor & Destructor Documentation

◆ AccessorBase() [1/4]

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

Default constructor.

◆ AccessorBase() [2/4]

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

Constructor setting up the end iterator.

◆ AccessorBase() [3/4]

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

Copy constructor from a non-const Accessor.

◆ AccessorBase() [4/4]

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

◆ value()

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.

◆ row()

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

Access the row of the current entry.

◆ column()

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

◆ AccessorBase< T, true >

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

Make the const version a friend for copying.

Definition at line 1592 of file table.h.

◆ LinearIndexIterator< Iterator< T, Constness >, Accessor< T, Constness > >

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 1597 of file table.h.

Member Data Documentation

◆ container

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

Pointer to the TransposeTable.

Definition at line 1582 of file table.h.

◆ linear_index

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

Current index.

Definition at line 1587 of file table.h.


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