Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Teuchos::ArrayView< const T > Class Template Reference

Partial specialization of ArrayView for const T. More...

#include <Teuchos_ArrayViewDecl.hpp>

Public Types

typedef Teuchos_Ordinal Ordinal
 
typedef Ordinal size_type
 
typedef Ordinal difference_type
 
typedef const T value_type
 
typedef const Tpointer
 
typedef const Tconst_pointer
 
typedef const Treference
 
typedef const Tconst_reference
 
typedef pointer iterator
 
typedef const_pointer const_iterator
 

Public Member Functions

 ArrayView (ENull null_arg=null)
 
 ArrayView (const T *p, size_type size, const ERCPNodeLookup rcpNodeLookup=RCP_ENABLE_NODE_LOOKUP)
 
 ArrayView (const ArrayView< const T > &array)
 
 ArrayView (std::vector< typename ConstTypeTraits< T >::NonConstType > &vec)
 
 ArrayView (const std::vector< typename ConstTypeTraits< T >::NonConstType > &vec)
 
ArrayView< const T > & operator= (const ArrayView< const T > &array)
 
 ~ArrayView ()
 
bool is_null () const
 
size_type size () const
 
std::string toString () const
 
const TgetRawPtr () const
 
const Tdata () const
 
const Toperator[] (size_type i) const
 
const Tfront () const
 
const Tback () const
 
ArrayView< const Tview (size_type offset, size_type size) const
 
ArrayView< const Toperator() (size_type offset, size_type size) const
 
const ArrayView< const T > & operator() () const
 
ArrayView< const TgetConst () const
 Return a const view of *this.
 
iterator begin () const
 
iterator end () const
 
const ArrayView< const T > & assert_not_null () const
 
const ArrayView< const T > & assert_in_range (size_type offset, size_type size) const
 
const Taccess_private_ptr () const
 

Private Member Functions

void setUpIterators (const ERCPNodeLookup rcpNodeLookup=RCP_ENABLE_NODE_LOOKUP)
 
void debug_assert_not_null () const
 
void debug_assert_in_range (size_type offset, size_type size_in) const
 
void debug_assert_valid_ptr () const
 

Private Attributes

const Tptr_
 
size_type size_
 

Detailed Description

template<class T>
class Teuchos::ArrayView< const T >

Partial specialization of ArrayView for const T.

The main documentation for ArrayView explains why this class needs a partial specialization for const types.

Definition at line 433 of file Teuchos_ArrayViewDecl.hpp.

Member Typedef Documentation

◆ Ordinal

Definition at line 435 of file Teuchos_ArrayViewDecl.hpp.

◆ size_type

template<class T >
typedef Ordinal Teuchos::ArrayView< const T >::size_type

Definition at line 436 of file Teuchos_ArrayViewDecl.hpp.

◆ difference_type

template<class T >
typedef Ordinal Teuchos::ArrayView< const T >::difference_type

Definition at line 437 of file Teuchos_ArrayViewDecl.hpp.

◆ value_type

template<class T >
typedef const T Teuchos::ArrayView< const T >::value_type

Definition at line 438 of file Teuchos_ArrayViewDecl.hpp.

◆ pointer

template<class T >
typedef const T* Teuchos::ArrayView< const T >::pointer

Definition at line 439 of file Teuchos_ArrayViewDecl.hpp.

◆ const_pointer

template<class T >
typedef const T* Teuchos::ArrayView< const T >::const_pointer

Definition at line 440 of file Teuchos_ArrayViewDecl.hpp.

◆ reference

template<class T >
typedef const T& Teuchos::ArrayView< const T >::reference

Definition at line 441 of file Teuchos_ArrayViewDecl.hpp.

◆ const_reference

template<class T >
typedef const T& Teuchos::ArrayView< const T >::const_reference

Definition at line 442 of file Teuchos_ArrayViewDecl.hpp.

◆ iterator

template<class T >
typedef pointer Teuchos::ArrayView< const T >::iterator

Definition at line 448 of file Teuchos_ArrayViewDecl.hpp.

◆ const_iterator

template<class T >
typedef const_pointer Teuchos::ArrayView< const T >::const_iterator

Definition at line 449 of file Teuchos_ArrayViewDecl.hpp.

Constructor & Destructor Documentation

◆ ArrayView() [1/5]

template<class T >
Teuchos::ArrayView< const T >::ArrayView ( ENull null_arg = null)

◆ ArrayView() [2/5]

template<class T >
Teuchos::ArrayView< const T >::ArrayView ( const T * p,
size_type size,
const ERCPNodeLookup rcpNodeLookup = RCP_ENABLE_NODE_LOOKUP )

◆ ArrayView() [3/5]

template<class T >
Teuchos::ArrayView< const T >::ArrayView ( const ArrayView< const T > & array)

◆ ArrayView() [4/5]

template<class T >
Teuchos::ArrayView< const T >::ArrayView ( std::vector< typename ConstTypeTraits< T >::NonConstType > & vec)

◆ ArrayView() [5/5]

template<class T >
Teuchos::ArrayView< const T >::ArrayView ( const std::vector< typename ConstTypeTraits< T >::NonConstType > & vec)

◆ ~ArrayView()

template<class T >
Teuchos::ArrayView< const T >::~ArrayView ( )

Member Function Documentation

◆ operator=()

template<class T >
ArrayView< const T > & Teuchos::ArrayView< const T >::operator= ( const ArrayView< const T > & array)

◆ is_null()

template<class T >
bool Teuchos::ArrayView< const T >::is_null ( ) const

◆ size()

template<class T >
size_type Teuchos::ArrayView< const T >::size ( ) const

◆ toString()

template<class T >
std::string Teuchos::ArrayView< const T >::toString ( ) const

◆ getRawPtr()

template<class T >
const T * Teuchos::ArrayView< const T >::getRawPtr ( ) const
inline

◆ data()

template<class T >
const T * Teuchos::ArrayView< const T >::data ( ) const
inline

◆ operator[]()

template<class T >
const T & Teuchos::ArrayView< const T >::operator[] ( size_type i) const

◆ front()

template<class T >
const T & Teuchos::ArrayView< const T >::front ( ) const

◆ back()

template<class T >
const T & Teuchos::ArrayView< const T >::back ( ) const

◆ view()

template<class T >
ArrayView< const T > Teuchos::ArrayView< const T >::view ( size_type offset,
size_type size ) const

◆ operator()() [1/2]

template<class T >
ArrayView< const T > Teuchos::ArrayView< const T >::operator() ( size_type offset,
size_type size ) const

◆ operator()() [2/2]

template<class T >
const ArrayView< const T > & Teuchos::ArrayView< const T >::operator() ( ) const

◆ getConst()

template<class T >
ArrayView< const T > Teuchos::ArrayView< const T >::getConst ( ) const

Return a const view of *this.

This object is already const (this is a specialization for const T), so this method is trivial; it just returns *this.

◆ begin()

template<class T >
iterator Teuchos::ArrayView< const T >::begin ( ) const

◆ end()

template<class T >
iterator Teuchos::ArrayView< const T >::end ( ) const

◆ assert_not_null()

template<class T >
const ArrayView< const T > & Teuchos::ArrayView< const T >::assert_not_null ( ) const

◆ assert_in_range()

template<class T >
const ArrayView< const T > & Teuchos::ArrayView< const T >::assert_in_range ( size_type offset,
size_type size ) const

◆ setUpIterators()

template<class T >
void Teuchos::ArrayView< const T >::setUpIterators ( const ERCPNodeLookup rcpNodeLookup = RCP_ENABLE_NODE_LOOKUP)
private

◆ debug_assert_not_null()

template<class T >
void Teuchos::ArrayView< const T >::debug_assert_not_null ( ) const
inlineprivate

Definition at line 525 of file Teuchos_ArrayViewDecl.hpp.

◆ debug_assert_in_range()

template<class T >
void Teuchos::ArrayView< const T >::debug_assert_in_range ( size_type offset,
size_type size_in ) const
inlineprivate

Definition at line 531 of file Teuchos_ArrayViewDecl.hpp.

◆ debug_assert_valid_ptr()

template<class T >
void Teuchos::ArrayView< const T >::debug_assert_valid_ptr ( ) const
inlineprivate

Definition at line 538 of file Teuchos_ArrayViewDecl.hpp.

◆ access_private_ptr()

template<class T >
const T * Teuchos::ArrayView< const T >::access_private_ptr ( ) const
inline

Definition at line 548 of file Teuchos_ArrayViewDecl.hpp.

Member Data Documentation

◆ ptr_

template<class T >
const T* Teuchos::ArrayView< const T >::ptr_
private

Definition at line 517 of file Teuchos_ArrayViewDecl.hpp.

◆ size_

template<class T >
size_type Teuchos::ArrayView< const T >::size_
private

Definition at line 518 of file Teuchos_ArrayViewDecl.hpp.


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