copasi API  0.1
Public Types | Public Member Functions | Protected Attributes | Friends
CVectorCore< CType > Class Template Reference

#include <CVector.h>

Inheritance diagram for CVectorCore< CType >:
CVector< CType >

List of all members.

Public Types

typedef CType elementType

Public Member Functions

 CVectorCore ()
 CVectorCore (const unsigned C_INT32 &size, CType *vector)
 ~CVectorCore ()
unsigned C_INT32 size () const
CType & operator[] (const unsigned C_INT32 &row)
const CType & operator[] (const unsigned C_INT32 &row) const
CType & operator() (const unsigned C_INT32 &row)
const CType & operator() (const unsigned C_INT32 &row) const
CType * array ()
const CType * array () const

Protected Attributes

unsigned C_INT32 mSize
CType * mVector

Friends

std::ostream & operator<< (std::ostream &os, const CVectorCore< CType > &A)

template<class CType>
class CVectorCore< CType >


Member Typedef Documentation

template<class CType>
typedef CType CVectorCore< CType >::elementType

Constructor & Destructor Documentation

template<class CType>
CVectorCore< CType >::CVectorCore ( ) [inline]

Default constructor

template<class CType>
CVectorCore< CType >::CVectorCore ( const unsigned C_INT32 &  size,
CType *  vector 
) [inline]

Specific constructor

Parameters:
constunsigned C_INT32 & size
CType* vector
template<class CType>
CVectorCore< CType >::~CVectorCore ( ) [inline]

Destructor.


Member Function Documentation

template<class CType>
CType* CVectorCore< CType >::array ( ) [inline]

Retrieve the array of the vector elements. This is suitable for interfacing with clapack routines.

Returns:
CType * array
template<class CType>
const CType* CVectorCore< CType >::array ( ) const [inline]

Retrieve the array of the vector elements. This is suitable for interfacing with clapack routines.

Returns:
const CType * array
template<class CType>
CType& CVectorCore< CType >::operator() ( const unsigned C_INT32 &  row) [inline]

Retrieve a vector element using Fortan style indexing.

Parameters:
constunsigned C_INT32 & row
Returns:
const CType & element
template<class CType>
const CType& CVectorCore< CType >::operator() ( const unsigned C_INT32 &  row) const [inline]

Retrieve a vector element using Fortan style indexing.

Parameters:
constunsigned C_INT32 & row
Returns:
const CType & element
template<class CType>
CType& CVectorCore< CType >::operator[] ( const unsigned C_INT32 &  row) [inline]

Retrieve an element of the vector

Parameters:
constunsigned C_INT32 & row
Returns:
CType & element
template<class CType>
const CType& CVectorCore< CType >::operator[] ( const unsigned C_INT32 &  row) const [inline]

Retrieve an element of the vector

Parameters:
constunsigned C_INT32 & row
Returns:
const CType & element
template<class CType>
unsigned C_INT32 CVectorCore< CType >::size ( ) const [inline]

The number of elements stored in the vector.

Returns:
unsigned C_INT32 size

Friends And Related Function Documentation

template<class CType>
std::ostream& operator<< ( std::ostream &  os,
const CVectorCore< CType > &  A 
) [friend]

Output stream operator

Parameters:
ostream& os
constCVector< CType > & A
Returns:
ostream & os

Member Data Documentation

template<class CType>
unsigned C_INT32 CVectorCore< CType >::mSize [protected]

Size of the vector.

template<class CType>
CType* CVectorCore< CType >::mVector [protected]

The array storing the vector elements


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines