COPASI API  4.40.278
CVectorInterface< VectorType > Class Template Reference

#include <CArray.h>

Inheritance diagram for CVectorInterface< VectorType >:

Public Member Functions

 CVectorInterface (VectorType *vector)
size_t dimensionality () const
data_typeoperator[] (const index_type &index)
const data_typeoperator[] (const index_type &index) const
virtual const index_typesize () const
virtual ~CVectorInterface ()
- Public Member Functions inherited from CArrayInterface
virtual ~CArrayInterface ()

Private Attributes

std::vector< size_t > mSizes
VectorType * mVector

Additional Inherited Members

- Public Types inherited from CArrayInterface
typedef C_FLOAT64 data_type
typedef std::vector< size_t > index_type

Detailed Description

template<class VectorType>
class CVectorInterface< VectorType >

this class provides an interface to a CVector<C_FLOAT64>, or indeed to any container class that has a size() method and a [] operator that returns C_FLOAT64.

Constructor & Destructor Documentation

◆ CVectorInterface()

template<class VectorType >
CVectorInterface< VectorType >::CVectorInterface ( VectorType *  vector)

◆ ~CVectorInterface()

template<class VectorType >
virtual CVectorInterface< VectorType >::~CVectorInterface ( )

Member Function Documentation

◆ dimensionality()

template<class VectorType >
size_t CVectorInterface< VectorType >::dimensionality ( ) const

Implements CArrayInterface.

◆ operator[]() [1/2]

template<class VectorType >
data_type& CVectorInterface< VectorType >::operator[] ( const index_type index)

◆ operator[]() [2/2]

template<class VectorType >
const data_type& CVectorInterface< VectorType >::operator[] ( const index_type index) const

◆ size()

template<class VectorType >
virtual const index_type& CVectorInterface< VectorType >::size ( ) const

Member Data Documentation

◆ mSizes

template<class VectorType >
std::vector< size_t > CVectorInterface< VectorType >::mSizes

◆ mVector

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