ug4
ScalarVectorAdapter< AT, ST > Class Template Reference

#include <scalar_vector_adapter.hh>

Public Types

typedef AT::vector_type encapsulated_vector_type
 
typedef ST::vector_type::value_type value_type
 

Public Member Functions

value_typeoperator[] (size_t i)
 
ScalarVectorAdapter< CPUAlgebra, CPUAlgebra >::value_typeoperator[] (size_t i)
 
const value_typeoperator[] (size_t i) const
 
void print (const char *const text=NULL) const
 
void reserve (size_t newCapacity, bool bCopyValues=true)
 
void resize (size_t newSize, bool bCopyValues=true)
 
 ScalarVectorAdapter (encapsulated_vector_type &vec)
 
size_t size () const
 

Static Public Attributes

static const int blockSize = AT::blockSize
 

Private Attributes

encapsulated_vector_typem_src
 

Member Typedef Documentation

◆ encapsulated_vector_type

template<class AT , class ST >
typedef AT::vector_type ScalarVectorAdapter< AT, ST >::encapsulated_vector_type

◆ value_type

template<class AT , class ST >
typedef ST::vector_type::value_type ScalarVectorAdapter< AT, ST >::value_type

Constructor & Destructor Documentation

◆ ScalarVectorAdapter()

template<class AT , class ST >
ScalarVectorAdapter< AT, ST >::ScalarVectorAdapter ( encapsulated_vector_type vec)
inline

Member Function Documentation

◆ operator[]() [1/3]

template<class AT , class ST >
value_type& ScalarVectorAdapter< AT, ST >::operator[] ( size_t  i)
inline

References ug::BlockRef().

◆ operator[]() [2/3]

◆ operator[]() [3/3]

template<class AT , class ST >
const value_type& ScalarVectorAdapter< AT, ST >::operator[] ( size_t  i) const
inline

◆ print()

template<class AT , class ST >
void ScalarVectorAdapter< AT, ST >::print ( const char *const  text = NULL) const
inline

◆ reserve()

template<class AT , class ST >
void ScalarVectorAdapter< AT, ST >::reserve ( size_t  newCapacity,
bool  bCopyValues = true 
)
inline

◆ resize()

template<class AT , class ST >
void ScalarVectorAdapter< AT, ST >::resize ( size_t  newSize,
bool  bCopyValues = true 
)
inline

◆ size()

template<class AT , class ST >
size_t ScalarVectorAdapter< AT, ST >::size ( ) const
inline

Member Data Documentation

◆ blockSize

template<class AT , class ST >
const int ScalarVectorAdapter< AT, ST >::blockSize = AT::blockSize
static

◆ m_src

template<class AT , class ST >
encapsulated_vector_type& ScalarVectorAdapter< AT, ST >::m_src
private

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