Intrepid
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Intrepid::MiniTensor::StorageRCPArray< T > Class Template Reference

#include <Intrepid_MiniTensor_Storage.h>

Inheritance diagram for Intrepid::MiniTensor::StorageRCPArray< T >:
Intrepid::MiniTensor::Storage< T >

Public Member Functions

 StorageRCPArray ()
 
 StorageRCPArray (Index const number_entries)
 
 ~StorageRCPArray ()
 
T const & operator[] (Index const i) const
 
T & operator[] (Index const i)
 
Index size () const
 
void resize (Index const number_entries)
 
void clear ()
 
- Public Member Functions inherited from Intrepid::MiniTensor::Storage< T >
 Storage ()
 
 Storage (Index const number_entries)
 
virtual ~Storage ()
 

Private Member Functions

 StorageRCPArray (StorageRCPArray< T > const &s)
 
StorageRCPArray< T > & operator= (StorageRCPArray< T > const &s)
 

Private Attributes

Teuchos::ArrayRCP< T > storage_
 

Additional Inherited Members

- Public Types inherited from Intrepid::MiniTensor::Storage< T >
typedef T type
 

Detailed Description

template<typename T>
class Intrepid::MiniTensor::StorageRCPArray< T >

Storage with Teuchos RCP Array

Definition at line 300 of file Intrepid_MiniTensor_Storage.h.

Constructor & Destructor Documentation

template<typename T >
Intrepid::MiniTensor::StorageRCPArray< T >::StorageRCPArray ( )
inline

Default constructor

Definition at line 209 of file Intrepid_MiniTensor_Storage.i.h.

template<typename T >
Intrepid::MiniTensor::StorageRCPArray< T >::StorageRCPArray ( Index const  number_entries)
inlineexplicit

Constructor that initializes to NaNs

Parameters
number_entriesnumber of entries

Definition at line 217 of file Intrepid_MiniTensor_Storage.i.h.

References Intrepid::MiniTensor::StorageRCPArray< T >::resize().

template<typename T >
Intrepid::MiniTensor::StorageRCPArray< T >::~StorageRCPArray ( )
inline

Simple destructor

Definition at line 226 of file Intrepid_MiniTensor_Storage.i.h.

template<typename T>
Intrepid::MiniTensor::StorageRCPArray< T >::StorageRCPArray ( StorageRCPArray< T > const &  s)
private

No copy constructor

Member Function Documentation

template<typename T >
void Intrepid::MiniTensor::StorageRCPArray< T >::clear ( )
inlinevirtual

Clear the storage

Implements Intrepid::MiniTensor::Storage< T >.

Definition at line 269 of file Intrepid_MiniTensor_Storage.i.h.

template<typename T>
StorageRCPArray<T>& Intrepid::MiniTensor::StorageRCPArray< T >::operator= ( StorageRCPArray< T > const &  s)
private

No copy assignment

template<typename T >
T const & Intrepid::MiniTensor::StorageRCPArray< T >::operator[] ( Index const  i) const
inlinevirtual

Entry access

Parameters
ithe index

Implements Intrepid::MiniTensor::Storage< T >.

Definition at line 234 of file Intrepid_MiniTensor_Storage.i.h.

template<typename T >
T & Intrepid::MiniTensor::StorageRCPArray< T >::operator[] ( Index const  i)
inlinevirtual

Entry access

Parameters
ithe index

Implements Intrepid::MiniTensor::Storage< T >.

Definition at line 243 of file Intrepid_MiniTensor_Storage.i.h.

template<typename T >
void Intrepid::MiniTensor::StorageRCPArray< T >::resize ( Index const  number_entries)
inlinevirtual

Resize the storage (assume destructive)

Parameters
number_entriesnumber of entries

Implements Intrepid::MiniTensor::Storage< T >.

Definition at line 260 of file Intrepid_MiniTensor_Storage.i.h.

Referenced by Intrepid::MiniTensor::StorageRCPArray< T >::StorageRCPArray().

template<typename T >
Index Intrepid::MiniTensor::StorageRCPArray< T >::size ( ) const
inlinevirtual
Returns
number of entries

Implements Intrepid::MiniTensor::Storage< T >.

Definition at line 252 of file Intrepid_MiniTensor_Storage.i.h.

Member Data Documentation

template<typename T>
Teuchos::ArrayRCP<T> Intrepid::MiniTensor::StorageRCPArray< T >::storage_
private

Teuchos RCP array

Definition at line 370 of file Intrepid_MiniTensor_Storage.h.


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