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

#include <Intrepid_MiniTensor_Storage.h>

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

Public Member Functions

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

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

Private Attributes

std::vector< T > storage_
 

Additional Inherited Members

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

Detailed Description

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

Storage with an STL vector

Definition at line 222 of file Intrepid_MiniTensor_Storage.h.

Constructor & Destructor Documentation

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

Default constructor

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

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

Constructor to given size

Parameters
number_entriesnumber of entries

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

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

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

Simple destructor

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

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

No copy constructor

Member Function Documentation

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

Clear the storage

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

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

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

No copy assignment

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

Entry access

Parameters
ithe index

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

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

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

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

Entry access

Parameters
ithe index

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

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

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

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

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

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

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

Member Data Documentation

template<typename T>
std::vector<T> Intrepid::MiniTensor::StorageSTLVector< T >::storage_
private

STL Vector

Definition at line 292 of file Intrepid_MiniTensor_Storage.h.


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