|
Teuchos Package Browser (Single Doxygen Collection) Version of the Day
|
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 T * | pointer |
| typedef const T * | const_pointer |
| typedef const T & | reference |
| typedef const T & | const_reference |
| typedef pointer | iterator |
| typedef const_pointer | const_iterator |
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 T * | ptr_ |
| size_type | size_ |
Related Symbols | |
(Note that these are not member symbols.) | |
| ArrayView< T > | arrayView (T *p, typename ArrayView< T >::size_type size) |
| Construct a const or non-const view to const or non-const data. | |
| ArrayView< T > | arrayViewFromVector (std::vector< T > &vec) |
| Construct a non-const view of an std::vector. | |
| ArrayView< const T > | arrayViewFromVector (const std::vector< T > &vec) |
| Construct a const view of an std::vector. | |
| std::vector< T > | createVector (const ArrayView< T > &av) |
Get a new std::vector<T> object out of an ArrayView<T> object. | |
| std::vector< T > | createVector (const ArrayView< const T > &av) |
Get a new std::vector<T> object out of an ArrayView<const T> object. | |
| bool | is_null (const ArrayView< T > &av) |
Returns true if av.is_null()==true. | |
| bool | nonnull (const ArrayView< T > &av) |
Returns true if av.get()!=NULL. | |
| std::ostream & | operator<< (std::ostream &out, const ArrayView< T > &av) |
| Output stream inserter. | |
| ArrayView< T2 > | av_const_cast (const ArrayView< T1 > &p1) |
Const cast of underlying ArrayView type from const T* to T*. | |
| ArrayView< T2 > | av_reinterpret_cast (const ArrayView< T1 > &p1) |
Reinterpret cast of underlying ArrayView type from T1* to T2*. | |
| bool | is_null (const ArrayView< T > &av) |
Returns true if av.is_null()==true. | |
| ArrayView< T > | arrayView (T *p, typename ArrayView< T >::size_type size) |
| Construct a const or non-const view to const or non-const data. | |
| ArrayView< T > | arrayViewFromVector (std::vector< T > &vec) |
| Construct a non-const view of an std::vector. | |
| ArrayView< const T > | arrayViewFromVector (const std::vector< T > &vec) |
| Construct a const view of an std::vector. | |
| std::vector< T > | createVector (const ArrayView< T > &av) |
Get a new std::vector<T> object out of an ArrayView<T> object. | |
| std::vector< T > | createVector (const ArrayView< const T > &av) |
Get a new std::vector<T> object out of an ArrayView<const T> object. | |
| bool | nonnull (const ArrayView< T > &av) |
Returns true if av.get()!=NULL. | |
| std::ostream & | operator<< (std::ostream &out, const ArrayView< T > &av) |
| Output stream inserter. | |
| ArrayView< T2 > | av_const_cast (const ArrayView< T1 > &p1) |
Const cast of underlying ArrayView type from const T* to T*. | |
| ArrayView< T2 > | av_reinterpret_cast (const ArrayView< T1 > &p1) |
Reinterpret cast of underlying ArrayView type from T1* to T2*. | |
| bool | is_null (const ArrayView< T > &av) |
Returns true if av.is_null()==true. | |
| ArrayView< T > | arrayView (T *p, typename ArrayView< T >::size_type size) |
| Construct a const or non-const view to const or non-const data. | |
| ArrayView< T > | arrayViewFromVector (std::vector< T > &vec) |
| Construct a non-const view of an std::vector. | |
| ArrayView< const T > | arrayViewFromVector (const std::vector< T > &vec) |
| Construct a const view of an std::vector. | |
| std::vector< T > | createVector (const ArrayView< T > &av) |
Get a new std::vector<T> object out of an ArrayView<T> object. | |
| std::vector< T > | createVector (const ArrayView< const T > &av) |
Get a new std::vector<T> object out of an ArrayView<const T> object. | |
| bool | nonnull (const ArrayView< T > &av) |
Returns true if av.get()!=NULL. | |
| std::ostream & | operator<< (std::ostream &out, const ArrayView< T > &av) |
| Output stream inserter. | |
| ArrayView< T2 > | av_const_cast (const ArrayView< T1 > &p1) |
Const cast of underlying ArrayView type from const T* to T*. | |
| ArrayView< T2 > | av_reinterpret_cast (const ArrayView< T1 > &p1) |
Reinterpret cast of underlying ArrayView type from T1* to T2*. | |
| bool | is_null (const ArrayView< T > &av) |
Returns true if av.is_null()==true. | |
| ArrayView< T > | arrayView (T *p, typename ArrayView< T >::size_type size) |
| Construct a const or non-const view to const or non-const data. | |
| ArrayView< T > | arrayViewFromVector (std::vector< T > &vec) |
| Construct a non-const view of an std::vector. | |
| ArrayView< const T > | arrayViewFromVector (const std::vector< T > &vec) |
| Construct a const view of an std::vector. | |
| std::vector< T > | createVector (const ArrayView< T > &av) |
Get a new std::vector<T> object out of an ArrayView<T> object. | |
| std::vector< T > | createVector (const ArrayView< const T > &av) |
Get a new std::vector<T> object out of an ArrayView<const T> object. | |
| bool | nonnull (const ArrayView< T > &av) |
Returns true if av.get()!=NULL. | |
| std::ostream & | operator<< (std::ostream &out, const ArrayView< T > &av) |
| Output stream inserter. | |
| ArrayView< T2 > | av_const_cast (const ArrayView< T1 > &p1) |
Const cast of underlying ArrayView type from const T* to T*. | |
| ArrayView< T2 > | av_reinterpret_cast (const ArrayView< T1 > &p1) |
Reinterpret cast of underlying ArrayView type from T1* to T2*. | |
Public typedefs | |
| typedef Teuchos_Ordinal | Ordinal |
| Integer index type used throughout ArrayView. | |
| typedef Ordinal | size_type |
| Type representing the number of elements in an ArrayRCP or view thereof. | |
| typedef Ordinal | difference_type |
| Type representing the difference between two size_type values. | |
| typedef T | value_type |
| Type of each array element. | |
| typedef T * | pointer |
| Type of a pointer to an array element. | |
| typedef const T * | const_pointer |
| Type of a const pointer to an array element. | |
| typedef T & | reference |
| Type of a reference to an array element. | |
| typedef const T & | const_reference |
| Type of a const reference to an array element. | |
| typedef pointer | iterator |
| Type of a nonconst iterator. | |
| typedef const_pointer | const_iterator |
| Type of a const iterator. | |
| typedef Teuchos_Ordinal | Ordinal |
| Integer index type used throughout ArrayView. | |
| typedef Ordinal | size_type |
| Type representing the number of elements in an ArrayRCP or view thereof. | |
| typedef Ordinal | difference_type |
| Type representing the difference between two size_type values. | |
| typedef T | value_type |
| Type of each array element. | |
| typedef T * | pointer |
| Type of a pointer to an array element. | |
| typedef const T * | const_pointer |
| Type of a const pointer to an array element. | |
| typedef T & | reference |
| Type of a reference to an array element. | |
| typedef const T & | const_reference |
| Type of a const reference to an array element. | |
| typedef pointer | iterator |
| Type of a nonconst iterator. | |
| typedef const_pointer | const_iterator |
| Type of a const iterator. | |
| typedef Teuchos_Ordinal | Ordinal |
| Integer index type used throughout ArrayView. | |
| typedef Ordinal | size_type |
| Type representing the number of elements in an ArrayRCP or view thereof. | |
| typedef Ordinal | difference_type |
| Type representing the difference between two size_type values. | |
| typedef T | value_type |
| Type of each array element. | |
| typedef T * | pointer |
| Type of a pointer to an array element. | |
| typedef const T * | const_pointer |
| Type of a const pointer to an array element. | |
| typedef T & | reference |
| Type of a reference to an array element. | |
| typedef const T & | const_reference |
| Type of a const reference to an array element. | |
| typedef pointer | iterator |
| Type of a nonconst iterator. | |
| typedef const_pointer | const_iterator |
| Type of a const iterator. | |
Assertion Functions. | |
| T * | ptr_ |
| size_type | size_ |
| T * | ptr_ |
| size_type | size_ |
| T * | ptr_ |
| size_type | size_ |
| const ArrayView< T > & | assert_not_null () const |
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this. | |
| const ArrayView< T > & | assert_in_range (size_type offset, size_type size) const |
Throws NullReferenceError if this->get()==NULL orthis->get()!=NULL, throws RangeError if (offset < 0 || this->size() < offset+size, otherwise returns reference to *this | |
| T * | access_private_ptr () const |
| const ArrayView< T > & | assert_not_null () const |
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this. | |
| const ArrayView< T > & | assert_in_range (size_type offset, size_type size) const |
Throws NullReferenceError if this->get()==NULL orthis->get()!=NULL, throws RangeError if (offset < 0 || this->size() < offset+size, otherwise returns reference to *this | |
| T * | access_private_ptr () const |
| const ArrayView< T > & | assert_not_null () const |
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this. | |
| const ArrayView< T > & | assert_in_range (size_type offset, size_type size) const |
Throws NullReferenceError if this->get()==NULL orthis->get()!=NULL, throws RangeError if (offset < 0 || this->size() < offset+size, otherwise returns reference to *this | |
| T * | access_private_ptr () const |
| 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 |
| 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 |
| 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 |
Constructors/Destructors | |
| ArrayView (ENull null_arg=null) | |
| Constructor that initializes to NULL (implicitly or explicitly). | |
| ArrayView (T *p, size_type size, const ERCPNodeLookup rcpNodeLookup=RCP_ENABLE_NODE_LOOKUP) | |
| Initialize view from raw memory. | |
| ArrayView (const ArrayView< T > &array) | |
Initialize from another ArrayView<T> object. | |
| ArrayView (std::vector< typename ConstTypeTraits< T >::NonConstType > &vec) | |
| Create a nonconst view of an std::vector<T>. | |
| ArrayView (const std::vector< typename ConstTypeTraits< T >::NonConstType > &vec) | |
| Create a const view of an std::vector<T>. | |
| ArrayView< T > & | operator= (const ArrayView< T > &array) |
| Shallow copy assignment operator. | |
| ~ArrayView () | |
| Destructor. | |
| ArrayView (ENull null_arg=null) | |
| Constructor that initializes to NULL (implicitly or explicitly). | |
| ArrayView (T *p, size_type size, const ERCPNodeLookup rcpNodeLookup=RCP_ENABLE_NODE_LOOKUP) | |
| Initialize view from raw memory. | |
| ArrayView (const ArrayView< T > &array) | |
Initialize from another ArrayView<T> object. | |
| ArrayView (std::vector< typename ConstTypeTraits< T >::NonConstType > &vec) | |
| Create a nonconst view of an std::vector<T>. | |
| ArrayView (const std::vector< typename ConstTypeTraits< T >::NonConstType > &vec) | |
| Create a const view of an std::vector<T>. | |
| ArrayView< T > & | operator= (const ArrayView< T > &array) |
| Shallow copy assignment operator. | |
| ~ArrayView () | |
| Destructor. | |
| ArrayView (ENull null_arg=null) | |
| Constructor that initializes to NULL (implicitly or explicitly). | |
| ArrayView (T *p, size_type size, const ERCPNodeLookup rcpNodeLookup=RCP_ENABLE_NODE_LOOKUP) | |
| Initialize view from raw memory. | |
| ArrayView (const ArrayView< T > &array) | |
Initialize from another ArrayView<T> object. | |
| ArrayView (std::vector< typename ConstTypeTraits< T >::NonConstType > &vec) | |
| Create a nonconst view of an std::vector<T>. | |
| ArrayView (const std::vector< typename ConstTypeTraits< T >::NonConstType > &vec) | |
| Create a const view of an std::vector<T>. | |
| ArrayView< T > & | operator= (const ArrayView< T > &array) |
| Shallow copy assignment operator. | |
| ~ArrayView () | |
| Destructor. | |
General query functions | |
| bool | is_null () const |
| Returns true if the underlying pointer is null. | |
| size_type | size () const |
| The total number of items in the managed array. | |
| std::string | toString () const |
Convert an ArrayView<T> to an std::string | |
| bool | is_null () const |
| Returns true if the underlying pointer is null. | |
| size_type | size () const |
| The total number of items in the managed array. | |
| std::string | toString () const |
Convert an ArrayView<T> to an std::string | |
| bool | is_null () const |
| Returns true if the underlying pointer is null. | |
| size_type | size () const |
| The total number of items in the managed array. | |
| std::string | toString () const |
Convert an ArrayView<T> to an std::string | |
Element Access Functions | |
| T * | getRawPtr () const |
| Return a raw pointer to beginning of array or NULL if unsized. | |
| T * | data () const |
| Return a raw pointer to beginning of array. | |
| T & | operator[] (size_type i) const |
| Random object access. | |
| T & | front () const |
| Get the first element. | |
| T & | back () const |
| Get the last element. | |
| T * | getRawPtr () const |
| Return a raw pointer to beginning of array or NULL if unsized. | |
| T * | data () const |
| Return a raw pointer to beginning of array. | |
| T & | operator[] (size_type i) const |
| Random object access. | |
| T & | front () const |
| Get the first element. | |
| T & | back () const |
| Get the last element. | |
| T * | getRawPtr () const |
| Return a raw pointer to beginning of array or NULL if unsized. | |
| T * | data () const |
| Return a raw pointer to beginning of array. | |
| T & | operator[] (size_type i) const |
| Random object access. | |
| T & | front () const |
| Get the first element. | |
| T & | back () const |
| Get the last element. | |
Views | |
| ArrayView< T > | view (size_type offset, size_type size) const |
| Return a view of a contiguous range of elements. | |
| ArrayView< T > | operator() (size_type offset, size_type size) const |
| Return a view of a contiguous range of elements (calls view(offset, size)). | |
| const ArrayView< T > & | operator() () const |
Return *this (just for compatibility with Array and ArrayPtr). | |
| ArrayView< const T > | getConst () const |
| Return a const view of a possibly nonconst view. | |
| operator ArrayView< const T > () const | |
| Implicitly convert an ArrayView<T> to an ArrayView<const T>. | |
| ArrayView< T > | view (size_type offset, size_type size) const |
| Return a view of a contiguous range of elements. | |
| ArrayView< T > | operator() (size_type offset, size_type size) const |
| Return a view of a contiguous range of elements (calls view(offset, size)). | |
| const ArrayView< T > & | operator() () const |
Return *this (just for compatibility with Array and ArrayPtr). | |
| ArrayView< const T > | getConst () const |
| Return a const view of a possibly nonconst view. | |
| operator ArrayView< const T > () const | |
| Implicitly convert an ArrayView<T> to an ArrayView<const T>. | |
| ArrayView< T > | view (size_type offset, size_type size) const |
| Return a view of a contiguous range of elements. | |
| ArrayView< T > | operator() (size_type offset, size_type size) const |
| Return a view of a contiguous range of elements (calls view(offset, size)). | |
| const ArrayView< T > & | operator() () const |
Return *this (just for compatibility with Array and ArrayPtr). | |
| ArrayView< const T > | getConst () const |
| Return a const view of a possibly nonconst view. | |
| operator ArrayView< const T > () const | |
| Implicitly convert an ArrayView<T> to an ArrayView<const T>. | |
Assignment | |
| void | assign (const ArrayView< const T > &array) const |
| Copy the data from one array view object to this array view object. | |
| void | assign (const ArrayView< const T > &array) const |
| Copy the data from one array view object to this array view object. | |
| void | assign (const ArrayView< const T > &array) const |
| Copy the data from one array view object to this array view object. | |
Standard Container-Like Functions | |
| iterator | begin () const |
| Return an iterator to beginning of the array of data. | |
| iterator | end () const |
| Return an iterator to past the end of the array of data. | |
| iterator | begin () const |
| Return an iterator to beginning of the array of data. | |
| iterator | end () const |
| Return an iterator to past the end of the array of data. | |
| iterator | begin () const |
| Return an iterator to beginning of the array of data. | |
| iterator | end () const |
| Return an iterator to past the end of the array of data. | |
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.
| typedef Teuchos_Ordinal Teuchos::ArrayView< const T >::Ordinal |
Definition at line 435 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< const T >::size_type |
Definition at line 436 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< const T >::difference_type |
Definition at line 437 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T Teuchos::ArrayView< const T >::value_type |
Definition at line 438 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T* Teuchos::ArrayView< const T >::pointer |
Definition at line 439 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T* Teuchos::ArrayView< const T >::const_pointer |
Definition at line 440 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T& Teuchos::ArrayView< const T >::reference |
Definition at line 441 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T& Teuchos::ArrayView< const T >::const_reference |
Definition at line 442 of file Teuchos_ArrayViewDecl.hpp.
| typedef pointer Teuchos::ArrayView< const T >::iterator |
Definition at line 448 of file Teuchos_ArrayViewDecl.hpp.
| typedef const_pointer Teuchos::ArrayView< const T >::const_iterator |
Definition at line 449 of file Teuchos_ArrayViewDecl.hpp.
| typedef Teuchos_Ordinal Teuchos::ArrayView< T >::Ordinal |
Integer index type used throughout ArrayView.
Definition at line 129 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< T >::size_type |
Type representing the number of elements in an ArrayRCP or view thereof.
Definition at line 132 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< T >::difference_type |
Type representing the difference between two size_type values.
Definition at line 135 of file Teuchos_ArrayViewDecl.hpp.
| typedef T Teuchos::ArrayView< T >::value_type |
Type of each array element.
Definition at line 138 of file Teuchos_ArrayViewDecl.hpp.
| typedef T* Teuchos::ArrayView< T >::pointer |
Type of a pointer to an array element.
It may be const or nonconst, depending on T.
Definition at line 143 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T* Teuchos::ArrayView< T >::const_pointer |
Type of a const pointer to an array element.
Definition at line 146 of file Teuchos_ArrayViewDecl.hpp.
| typedef T& Teuchos::ArrayView< T >::reference |
Type of a reference to an array element.
It may be const or nonconst, depending on T.
Definition at line 151 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T& Teuchos::ArrayView< T >::const_reference |
Type of a const reference to an array element.
Definition at line 154 of file Teuchos_ArrayViewDecl.hpp.
| typedef pointer Teuchos::ArrayView< T >::iterator |
Type of a nonconst iterator.
Definition at line 163 of file Teuchos_ArrayViewDecl.hpp.
| typedef const_pointer Teuchos::ArrayView< T >::const_iterator |
Type of a const iterator.
Definition at line 165 of file Teuchos_ArrayViewDecl.hpp.
| typedef Teuchos_Ordinal Teuchos::ArrayView< T >::Ordinal |
Integer index type used throughout ArrayView.
Definition at line 129 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< T >::size_type |
Type representing the number of elements in an ArrayRCP or view thereof.
Definition at line 132 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< T >::difference_type |
Type representing the difference between two size_type values.
Definition at line 135 of file Teuchos_ArrayViewDecl.hpp.
| typedef T Teuchos::ArrayView< T >::value_type |
Type of each array element.
Definition at line 138 of file Teuchos_ArrayViewDecl.hpp.
| typedef T* Teuchos::ArrayView< T >::pointer |
Type of a pointer to an array element.
It may be const or nonconst, depending on T.
Definition at line 143 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T* Teuchos::ArrayView< T >::const_pointer |
Type of a const pointer to an array element.
Definition at line 146 of file Teuchos_ArrayViewDecl.hpp.
| typedef T& Teuchos::ArrayView< T >::reference |
Type of a reference to an array element.
It may be const or nonconst, depending on T.
Definition at line 151 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T& Teuchos::ArrayView< T >::const_reference |
Type of a const reference to an array element.
Definition at line 154 of file Teuchos_ArrayViewDecl.hpp.
| typedef pointer Teuchos::ArrayView< T >::iterator |
Type of a nonconst iterator.
Definition at line 163 of file Teuchos_ArrayViewDecl.hpp.
| typedef const_pointer Teuchos::ArrayView< T >::const_iterator |
Type of a const iterator.
Definition at line 165 of file Teuchos_ArrayViewDecl.hpp.
| typedef Teuchos_Ordinal Teuchos::ArrayView< T >::Ordinal |
Integer index type used throughout ArrayView.
Definition at line 129 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< T >::size_type |
Type representing the number of elements in an ArrayRCP or view thereof.
Definition at line 132 of file Teuchos_ArrayViewDecl.hpp.
| typedef Ordinal Teuchos::ArrayView< T >::difference_type |
Type representing the difference between two size_type values.
Definition at line 135 of file Teuchos_ArrayViewDecl.hpp.
| typedef T Teuchos::ArrayView< T >::value_type |
Type of each array element.
Definition at line 138 of file Teuchos_ArrayViewDecl.hpp.
| typedef T* Teuchos::ArrayView< T >::pointer |
Type of a pointer to an array element.
It may be const or nonconst, depending on T.
Definition at line 143 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T* Teuchos::ArrayView< T >::const_pointer |
Type of a const pointer to an array element.
Definition at line 146 of file Teuchos_ArrayViewDecl.hpp.
| typedef T& Teuchos::ArrayView< T >::reference |
Type of a reference to an array element.
It may be const or nonconst, depending on T.
Definition at line 151 of file Teuchos_ArrayViewDecl.hpp.
| typedef const T& Teuchos::ArrayView< T >::const_reference |
Type of a const reference to an array element.
Definition at line 154 of file Teuchos_ArrayViewDecl.hpp.
| typedef pointer Teuchos::ArrayView< T >::iterator |
Type of a nonconst iterator.
Definition at line 163 of file Teuchos_ArrayViewDecl.hpp.
| typedef const_pointer Teuchos::ArrayView< T >::const_iterator |
Type of a const iterator.
Definition at line 165 of file Teuchos_ArrayViewDecl.hpp.
| Teuchos::ArrayView< const T >::ArrayView | ( | ENull | null_arg = null | ) |
| Teuchos::ArrayView< const T >::ArrayView | ( | const T * | p, |
| size_type | size, | ||
| const ERCPNodeLookup | rcpNodeLookup = RCP_ENABLE_NODE_LOOKUP ) |
| Teuchos::ArrayView< const T >::ArrayView | ( | const ArrayView< const T > & | array | ) |
| Teuchos::ArrayView< const T >::ArrayView | ( | std::vector< typename ConstTypeTraits< T >::NonConstType > & | vec | ) |
| Teuchos::ArrayView< const T >::ArrayView | ( | const std::vector< typename ConstTypeTraits< T >::NonConstType > & | vec | ) |
| Teuchos::ArrayView< const T >::~ArrayView | ( | ) |
|
inline |
Constructor that initializes to NULL (implicitly or explicitly).
Definition at line 173 of file Teuchos_ArrayView.hpp.
|
inline |
Initialize view from raw memory.
| p | [in] Pointer to array of typed memory of size size. If p==0, then *this is a null view. Note that the memory pointed to by p can not go away until this view object is destoryed! |
| size | [in] The size of the array that *this will represent pointer to by p. If p==0 then size must be 0! |
Preconditions:
p!=0] size > 0 p==0] size == 0 Definition at line 190 of file Teuchos_ArrayView.hpp.
|
inline |
Initialize from another ArrayView<T> object.
After construction, this and array will reference the same array.
This form of the copy constructor is required even though the below more general templated version is sufficient since some compilers will generate this function automatically which will give an incorrect implementation.
Definition at line 203 of file Teuchos_ArrayView.hpp.
|
inline |
Create a nonconst view of an std::vector<T>.
Definition at line 206 of file Teuchos_ArrayView.hpp.
|
inline |
Create a const view of an std::vector<T>.
Definition at line 209 of file Teuchos_ArrayView.hpp.
|
inline |
Destructor.
Definition at line 215 of file Teuchos_ArrayView.hpp.
|
inline |
Constructor that initializes to NULL (implicitly or explicitly).
Definition at line 173 of file Teuchos_ArrayView.hpp.
|
inline |
Initialize view from raw memory.
| p | [in] Pointer to array of typed memory of size size. If p==0, then *this is a null view. Note that the memory pointed to by p can not go away until this view object is destoryed! |
| size | [in] The size of the array that *this will represent pointer to by p. If p==0 then size must be 0! |
Preconditions:
p!=0] size > 0 p==0] size == 0 Definition at line 190 of file Teuchos_ArrayView.hpp.
|
inline |
Initialize from another ArrayView<T> object.
After construction, this and array will reference the same array.
This form of the copy constructor is required even though the below more general templated version is sufficient since some compilers will generate this function automatically which will give an incorrect implementation.
Definition at line 203 of file Teuchos_ArrayView.hpp.
|
inline |
Create a nonconst view of an std::vector<T>.
Definition at line 206 of file Teuchos_ArrayView.hpp.
|
inline |
Create a const view of an std::vector<T>.
Definition at line 209 of file Teuchos_ArrayView.hpp.
|
inline |
Destructor.
Definition at line 215 of file Teuchos_ArrayView.hpp.
|
inline |
Constructor that initializes to NULL (implicitly or explicitly).
Definition at line 173 of file Teuchos_ArrayView.hpp.
|
inline |
Initialize view from raw memory.
| p | [in] Pointer to array of typed memory of size size. If p==0, then *this is a null view. Note that the memory pointed to by p can not go away until this view object is destoryed! |
| size | [in] The size of the array that *this will represent pointer to by p. If p==0 then size must be 0! |
Preconditions:
p!=0] size > 0 p==0] size == 0 Definition at line 190 of file Teuchos_ArrayView.hpp.
|
inline |
Initialize from another ArrayView<T> object.
After construction, this and array will reference the same array.
This form of the copy constructor is required even though the below more general templated version is sufficient since some compilers will generate this function automatically which will give an incorrect implementation.
Definition at line 203 of file Teuchos_ArrayView.hpp.
|
inline |
Create a nonconst view of an std::vector<T>.
Definition at line 206 of file Teuchos_ArrayView.hpp.
|
inline |
Create a const view of an std::vector<T>.
Definition at line 209 of file Teuchos_ArrayView.hpp.
|
inline |
Destructor.
Definition at line 215 of file Teuchos_ArrayView.hpp.
| ArrayView< const T > & Teuchos::ArrayView< const T >::operator= | ( | const ArrayView< const T > & | array | ) |
| bool Teuchos::ArrayView< const T >::is_null | ( | ) | const |
| size_type Teuchos::ArrayView< const T >::size | ( | ) | const |
| std::string Teuchos::ArrayView< const T >::toString | ( | ) | const |
|
inline |
|
inline |
| const T & Teuchos::ArrayView< const T >::operator[] | ( | size_type | i | ) | const |
| const T & Teuchos::ArrayView< const T >::front | ( | ) | const |
| const T & Teuchos::ArrayView< const T >::back | ( | ) | const |
| ArrayView< const T > Teuchos::ArrayView< const T >::view | ( | size_type | offset, |
| size_type | size ) const |
| ArrayView< const T > Teuchos::ArrayView< const T >::operator() | ( | size_type | offset, |
| size_type | size ) const |
| const ArrayView< const T > & Teuchos::ArrayView< const T >::operator() | ( | ) | const |
| 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.
| iterator Teuchos::ArrayView< const T >::begin | ( | ) | const |
| iterator Teuchos::ArrayView< const T >::end | ( | ) | const |
| const ArrayView< const T > & Teuchos::ArrayView< const T >::assert_not_null | ( | ) | const |
| const ArrayView< const T > & Teuchos::ArrayView< const T >::assert_in_range | ( | size_type | offset, |
| size_type | size ) const |
|
private |
|
inlineprivate |
Definition at line 525 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 531 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 538 of file Teuchos_ArrayViewDecl.hpp.
|
inline |
Definition at line 548 of file Teuchos_ArrayViewDecl.hpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
Definition at line 48 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
Definition at line 74 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
Definition at line 100 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
Definition at line 126 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
|
inline |
Shallow copy assignment operator.
Definition at line 212 of file Teuchos_ArrayView.hpp.
|
inline |
Returns true if the underlying pointer is null.
Definition at line 222 of file Teuchos_ArrayView.hpp.
|
inline |
The total number of items in the managed array.
Definition at line 225 of file Teuchos_ArrayView.hpp.
| std::string Teuchos::ArrayView< T >::toString | ( | ) | const |
Convert an ArrayView<T> to an std::string
Definition at line 228 of file Teuchos_ArrayView.hpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
Definition at line 48 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
Definition at line 74 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
Definition at line 100 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
Definition at line 126 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
|
inline |
Return a raw pointer to beginning of array or NULL if unsized.
Definition at line 235 of file Teuchos_ArrayView.hpp.
|
inline |
Return a raw pointer to beginning of array.
Same semantics as getRawPtr (which see).
Definition at line 240 of file Teuchos_ArrayView.hpp.
|
inline |
|
inline |
Get the first element.
Definition at line 252 of file Teuchos_ArrayView.hpp.
|
inline |
Get the last element.
Definition at line 255 of file Teuchos_ArrayView.hpp.
|
inline |
Return a view of a contiguous range of elements.
Preconditions:
Postconditions:
returnVal.size() == size NOTE: A size==0 view of even a null ArrayView is allowed and returns a null view.
Definition at line 275 of file Teuchos_ArrayView.hpp.
|
inline |
Return a view of a contiguous range of elements (calls view(offset, size)).
Definition at line 280 of file Teuchos_ArrayView.hpp.
|
inline |
Return *this (just for compatibility with Array and ArrayPtr).
Definition at line 283 of file Teuchos_ArrayView.hpp.
|
inline |
Return a const view of a possibly nonconst view.
Definition at line 286 of file Teuchos_ArrayView.hpp.
|
inline |
Implicitly convert an ArrayView<T> to an ArrayView<const T>.
const T' for some type T'). In that case, the assignment operator and copy constructor achieve the same syntactic effect. Definition at line 295 of file Teuchos_ArrayView.hpp.
| void Teuchos::ArrayView< T >::assign | ( | const ArrayView< const T > & | array | ) | const |
Copy the data from one array view object to this array view object.
Preconditions:
this->size() == array.size() const T' for some type T'). This is because assignment to a const right-hand side does not make sense.Definition at line 319 of file Teuchos_ArrayView.hpp.
| ArrayView< constT >::iterator Teuchos::ArrayView< T >::begin | ( | ) | const |
Return an iterator to beginning of the array of data.
If HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is defined then the iterator returned is an ArrayRCP<T> object and all operations are checked at runtime. When HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is not defined, the a raw pointer T* is returned for fast execution.
Postconditions:
Definition at line 337 of file Teuchos_ArrayView.hpp.
| ArrayView< constT >::iterator Teuchos::ArrayView< T >::end | ( | ) | const |
Return an iterator to past the end of the array of data.
If HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is defined then the iterator returned is an ArrayView<T> object and all operations are checked at runtime. When HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is not defined, the a raw pointer T* is returned for fast execution.
Postconditions:
this->get()!=NULL] &*end == this->get()+(this->upperOffset()+1) this->get()==NULL] return == (null or NULL) Definition at line 351 of file Teuchos_ArrayView.hpp.
| const ArrayView< const T > & Teuchos::ArrayView< T >::assert_not_null | ( | ) | const |
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this.
Definition at line 360 of file Teuchos_ArrayView.hpp.
| const ArrayView< const T > & Teuchos::ArrayView< T >::assert_in_range | ( | size_type | offset, |
| size_type | size ) const |
Throws NullReferenceError if this->get()==NULL orthis->get()!=NULL, throws RangeError if (offset < 0 || this->size() < offset+size, otherwise returns reference to *this
Definition at line 366 of file Teuchos_ArrayView.hpp.
|
private |
Definition at line 389 of file Teuchos_ArrayView.hpp.
|
inlineprivate |
Definition at line 391 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 397 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 404 of file Teuchos_ArrayViewDecl.hpp.
|
inline |
Definition at line 414 of file Teuchos_ArrayViewDecl.hpp.
|
inline |
Shallow copy assignment operator.
Definition at line 212 of file Teuchos_ArrayView.hpp.
|
inline |
Returns true if the underlying pointer is null.
Definition at line 222 of file Teuchos_ArrayView.hpp.
|
inline |
The total number of items in the managed array.
Definition at line 225 of file Teuchos_ArrayView.hpp.
| std::string Teuchos::ArrayView< T >::toString | ( | ) | const |
Convert an ArrayView<T> to an std::string
Definition at line 228 of file Teuchos_ArrayView.hpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
Definition at line 48 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
Definition at line 74 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
Definition at line 100 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
Definition at line 126 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
|
inline |
Return a raw pointer to beginning of array or NULL if unsized.
Definition at line 235 of file Teuchos_ArrayView.hpp.
|
inline |
Return a raw pointer to beginning of array.
Same semantics as getRawPtr (which see).
Definition at line 240 of file Teuchos_ArrayView.hpp.
|
inline |
|
inline |
Get the first element.
Definition at line 252 of file Teuchos_ArrayView.hpp.
|
inline |
Get the last element.
Definition at line 255 of file Teuchos_ArrayView.hpp.
|
inline |
Return a view of a contiguous range of elements.
Preconditions:
Postconditions:
returnVal.size() == size NOTE: A size==0 view of even a null ArrayView is allowed and returns a null view.
Definition at line 275 of file Teuchos_ArrayView.hpp.
|
inline |
Return a view of a contiguous range of elements (calls view(offset, size)).
Definition at line 280 of file Teuchos_ArrayView.hpp.
|
inline |
Return *this (just for compatibility with Array and ArrayPtr).
Definition at line 283 of file Teuchos_ArrayView.hpp.
|
inline |
Return a const view of a possibly nonconst view.
Definition at line 286 of file Teuchos_ArrayView.hpp.
|
inline |
Implicitly convert an ArrayView<T> to an ArrayView<const T>.
const T' for some type T'). In that case, the assignment operator and copy constructor achieve the same syntactic effect. Definition at line 295 of file Teuchos_ArrayView.hpp.
| void Teuchos::ArrayView< T >::assign | ( | const ArrayView< const T > & | array | ) | const |
Copy the data from one array view object to this array view object.
Preconditions:
this->size() == array.size() const T' for some type T'). This is because assignment to a const right-hand side does not make sense.Definition at line 319 of file Teuchos_ArrayView.hpp.
| ArrayView< constT >::iterator Teuchos::ArrayView< T >::begin | ( | ) | const |
Return an iterator to beginning of the array of data.
If HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is defined then the iterator returned is an ArrayRCP<T> object and all operations are checked at runtime. When HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is not defined, the a raw pointer T* is returned for fast execution.
Postconditions:
Definition at line 337 of file Teuchos_ArrayView.hpp.
| ArrayView< constT >::iterator Teuchos::ArrayView< T >::end | ( | ) | const |
Return an iterator to past the end of the array of data.
If HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is defined then the iterator returned is an ArrayView<T> object and all operations are checked at runtime. When HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is not defined, the a raw pointer T* is returned for fast execution.
Postconditions:
this->get()!=NULL] &*end == this->get()+(this->upperOffset()+1) this->get()==NULL] return == (null or NULL) Definition at line 351 of file Teuchos_ArrayView.hpp.
| const ArrayView< const T > & Teuchos::ArrayView< T >::assert_not_null | ( | ) | const |
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this.
Definition at line 360 of file Teuchos_ArrayView.hpp.
| const ArrayView< const T > & Teuchos::ArrayView< T >::assert_in_range | ( | size_type | offset, |
| size_type | size ) const |
Throws NullReferenceError if this->get()==NULL orthis->get()!=NULL, throws RangeError if (offset < 0 || this->size() < offset+size, otherwise returns reference to *this
Definition at line 366 of file Teuchos_ArrayView.hpp.
|
private |
Definition at line 389 of file Teuchos_ArrayView.hpp.
|
inlineprivate |
Definition at line 391 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 397 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 404 of file Teuchos_ArrayViewDecl.hpp.
|
inline |
Definition at line 414 of file Teuchos_ArrayViewDecl.hpp.
|
inline |
Shallow copy assignment operator.
Definition at line 212 of file Teuchos_ArrayView.hpp.
|
inline |
Returns true if the underlying pointer is null.
Definition at line 222 of file Teuchos_ArrayView.hpp.
|
inline |
The total number of items in the managed array.
Definition at line 225 of file Teuchos_ArrayView.hpp.
| std::string Teuchos::ArrayView< T >::toString | ( | ) | const |
Convert an ArrayView<T> to an std::string
Definition at line 228 of file Teuchos_ArrayView.hpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
Definition at line 48 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
Definition at line 74 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
Definition at line 100 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
Definition at line 126 of file Teuchos_ArrayView.cpp.
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< float >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constfloat >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< double >::toString | ( | ) | const |
| TEUCHOSCORE_LIB_DLL_EXPORT std::string Teuchos::ArrayView< constdouble >::toString | ( | ) | const |
|
inline |
Return a raw pointer to beginning of array or NULL if unsized.
Definition at line 235 of file Teuchos_ArrayView.hpp.
|
inline |
Return a raw pointer to beginning of array.
Same semantics as getRawPtr (which see).
Definition at line 240 of file Teuchos_ArrayView.hpp.
|
inline |
|
inline |
Get the first element.
Definition at line 252 of file Teuchos_ArrayView.hpp.
|
inline |
Get the last element.
Definition at line 255 of file Teuchos_ArrayView.hpp.
|
inline |
Return a view of a contiguous range of elements.
Preconditions:
Postconditions:
returnVal.size() == size NOTE: A size==0 view of even a null ArrayView is allowed and returns a null view.
Definition at line 275 of file Teuchos_ArrayView.hpp.
|
inline |
Return a view of a contiguous range of elements (calls view(offset, size)).
Definition at line 280 of file Teuchos_ArrayView.hpp.
|
inline |
Return *this (just for compatibility with Array and ArrayPtr).
Definition at line 283 of file Teuchos_ArrayView.hpp.
|
inline |
Return a const view of a possibly nonconst view.
Definition at line 286 of file Teuchos_ArrayView.hpp.
|
inline |
Implicitly convert an ArrayView<T> to an ArrayView<const T>.
const T' for some type T'). In that case, the assignment operator and copy constructor achieve the same syntactic effect. Definition at line 295 of file Teuchos_ArrayView.hpp.
| void Teuchos::ArrayView< T >::assign | ( | const ArrayView< const T > & | array | ) | const |
Copy the data from one array view object to this array view object.
Preconditions:
this->size() == array.size() const T' for some type T'). This is because assignment to a const right-hand side does not make sense.Definition at line 319 of file Teuchos_ArrayView.hpp.
| ArrayView< constT >::iterator Teuchos::ArrayView< T >::begin | ( | ) | const |
Return an iterator to beginning of the array of data.
If HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is defined then the iterator returned is an ArrayRCP<T> object and all operations are checked at runtime. When HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is not defined, the a raw pointer T* is returned for fast execution.
Postconditions:
Definition at line 337 of file Teuchos_ArrayView.hpp.
| ArrayView< constT >::iterator Teuchos::ArrayView< T >::end | ( | ) | const |
Return an iterator to past the end of the array of data.
If HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is defined then the iterator returned is an ArrayView<T> object and all operations are checked at runtime. When HAVE_TEUCHOS_ARRAY_BOUNDSCHECK is not defined, the a raw pointer T* is returned for fast execution.
Postconditions:
this->get()!=NULL] &*end == this->get()+(this->upperOffset()+1) this->get()==NULL] return == (null or NULL) Definition at line 351 of file Teuchos_ArrayView.hpp.
| const ArrayView< const T > & Teuchos::ArrayView< T >::assert_not_null | ( | ) | const |
Throws NullReferenceError if this->get()==NULL, otherwise returns reference to *this.
Definition at line 360 of file Teuchos_ArrayView.hpp.
| const ArrayView< const T > & Teuchos::ArrayView< T >::assert_in_range | ( | size_type | offset, |
| size_type | size ) const |
Throws NullReferenceError if this->get()==NULL orthis->get()!=NULL, throws RangeError if (offset < 0 || this->size() < offset+size, otherwise returns reference to *this
Definition at line 366 of file Teuchos_ArrayView.hpp.
|
private |
Definition at line 389 of file Teuchos_ArrayView.hpp.
|
inlineprivate |
Definition at line 391 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 397 of file Teuchos_ArrayViewDecl.hpp.
|
inlineprivate |
Definition at line 404 of file Teuchos_ArrayViewDecl.hpp.
|
inline |
Definition at line 414 of file Teuchos_ArrayViewDecl.hpp.
|
Construct a const or non-const view to const or non-const data.
|
Construct a non-const view of an std::vector.
|
Construct a const view of an std::vector.
|
Get a new std::vector<T> object out of an ArrayView<T> object.
Note that a copy of data is made!
|
Get a new std::vector<T> object out of an ArrayView<const T> object.
Note that a copy of data is made!
|
Returns true if av.is_null()==true.
|
Returns true if av.get()!=NULL.
|
Output stream inserter.
The implementation of this function just prints pointer addresses and therefore puts no restrictions on the data types involved.
Const cast of underlying ArrayView type from const T* to T*.
The function will compile only if (const_cast<T2*>(p1.get());) compiles.
Reinterpret cast of underlying ArrayView type from T1* to T2*.
The function will compile only if (reinterpret_cast<T2*>(p1.get());) compiles.
Warning! Do not use this function unless you absolutely know what you are doing. Doing a reinterpret cast is always a tricking thing and must only be done by developers who are 100% comfortable with what they are doing.
|
Returns true if av.is_null()==true.
|
Construct a const or non-const view to const or non-const data.
|
Construct a non-const view of an std::vector.
|
Construct a const view of an std::vector.
|
Get a new std::vector<T> object out of an ArrayView<T> object.
Note that a copy of data is made!
|
Get a new std::vector<T> object out of an ArrayView<const T> object.
Note that a copy of data is made!
|
Returns true if av.get()!=NULL.
|
Output stream inserter.
The implementation of this function just prints pointer addresses and therefore puts no restrictions on the data types involved.
Const cast of underlying ArrayView type from const T* to T*.
The function will compile only if (const_cast<T2*>(p1.get());) compiles.
Reinterpret cast of underlying ArrayView type from T1* to T2*.
The function will compile only if (reinterpret_cast<T2*>(p1.get());) compiles.
Warning! Do not use this function unless you absolutely know what you are doing. Doing a reinterpret cast is always a tricking thing and must only be done by developers who are 100% comfortable with what they are doing.
|
Returns true if av.is_null()==true.
|
Construct a const or non-const view to const or non-const data.
|
Construct a non-const view of an std::vector.
|
Construct a const view of an std::vector.
|
Get a new std::vector<T> object out of an ArrayView<T> object.
Note that a copy of data is made!
|
Get a new std::vector<T> object out of an ArrayView<const T> object.
Note that a copy of data is made!
|
Returns true if av.get()!=NULL.
|
Output stream inserter.
The implementation of this function just prints pointer addresses and therefore puts no restrictions on the data types involved.
Const cast of underlying ArrayView type from const T* to T*.
The function will compile only if (const_cast<T2*>(p1.get());) compiles.
Reinterpret cast of underlying ArrayView type from T1* to T2*.
The function will compile only if (reinterpret_cast<T2*>(p1.get());) compiles.
Warning! Do not use this function unless you absolutely know what you are doing. Doing a reinterpret cast is always a tricking thing and must only be done by developers who are 100% comfortable with what they are doing.
|
Returns true if av.is_null()==true.
|
Construct a const or non-const view to const or non-const data.
|
Construct a non-const view of an std::vector.
|
Construct a const view of an std::vector.
|
Get a new std::vector<T> object out of an ArrayView<T> object.
Note that a copy of data is made!
|
Get a new std::vector<T> object out of an ArrayView<const T> object.
Note that a copy of data is made!
|
Returns true if av.get()!=NULL.
|
Output stream inserter.
The implementation of this function just prints pointer addresses and therefore puts no restrictions on the data types involved.
Const cast of underlying ArrayView type from const T* to T*.
The function will compile only if (const_cast<T2*>(p1.get());) compiles.
Reinterpret cast of underlying ArrayView type from T1* to T2*.
The function will compile only if (reinterpret_cast<T2*>(p1.get());) compiles.
Warning! Do not use this function unless you absolutely know what you are doing. Doing a reinterpret cast is always a tricking thing and must only be done by developers who are 100% comfortable with what they are doing.
|
private |
Definition at line 517 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 518 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 383 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 384 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 383 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 384 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 383 of file Teuchos_ArrayViewDecl.hpp.
|
private |
Definition at line 384 of file Teuchos_ArrayViewDecl.hpp.