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

#include <Intrepid_MiniTensor_Storage.h>

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

Public Member Functions

 StorageRaw ()
 
 StorageRaw (Index const number_entries)
 
 ~StorageRaw ()
 
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

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

Private Attributes

Index size_
 
T * pointer_
 

Additional Inherited Members

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

Detailed Description

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

Storage with raw pointers

Definition at line 138 of file Intrepid_MiniTensor_Storage.h.

Constructor & Destructor Documentation

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

Default constructor

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

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

Constructor to given size

Parameters
number_entriesnumber of entries

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

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

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

Simple destructor

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

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

No copy constructor

Member Function Documentation

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

Clear the storage

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

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

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

No copy assignment

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

Entry access

Parameters
ithe index

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

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

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

Entry access

Parameters
ithe index

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

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

template<typename T >
void Intrepid::MiniTensor::StorageRaw< 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 107 of file Intrepid_MiniTensor_Storage.i.h.

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

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

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

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

Member Data Documentation

template<typename T>
T* Intrepid::MiniTensor::StorageRaw< T >::pointer_
private

Raw pointer

Definition at line 214 of file Intrepid_MiniTensor_Storage.h.

template<typename T>
Index Intrepid::MiniTensor::StorageRaw< T >::size_
private

Size

Definition at line 208 of file Intrepid_MiniTensor_Storage.h.


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