copasi API  0.1
Public Member Functions
CVector< CType > Class Template Reference

#include <CVector.h>

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

List of all members.

Public Member Functions

 CVector (unsigned C_INT32 size=0)
 CVector (const CVector< CType > &src)
 ~CVector ()
void resize (unsigned C_INT32 size, const bool &copy=false)
CVector< CType > & operator= (const CVector< CType > &rhs)
CVector< CType > & operator= (const CType &value)
bool applyPivot (const CVector< unsigned C_INT32 > &pivot)

Detailed Description

template<class CType>
class CVector< CType >

Template class CVector < class CType > This template class is a simple vector class allowing standard C-style and fortran style access to the elements. It also supplies an ostream operator.


Constructor & Destructor Documentation

template<class CType>
CVector< CType >::CVector ( unsigned C_INT32  size = 0) [inline]

Default constructor

Parameters:
unsignedC_INT32 size (default = 0)
template<class CType>
CVector< CType >::CVector ( const CVector< CType > &  src) [inline]

Copy constructor

Parameters:
constCVector <CType> & src
template<class CType>
CVector< CType >::~CVector ( ) [inline]

Destructor.


Member Function Documentation

template<class CType>
bool CVector< CType >::applyPivot ( const CVector< unsigned C_INT32 > &  pivot) [inline]

Reorder the elements according to the provided pivots

Parameters:
constCVector<unsigned C_INT32> & pivot
Returns:
bool success
template<class CType>
CVector<CType>& CVector< CType >::operator= ( const CVector< CType > &  rhs) [inline]

Assignment operator

Parameters:
constCVector <CType> & rhs
Returns:
CVector <CType> & lhs
template<class CType>
CVector< CType >& CVector< CType >::operator= ( const CType &  value) [inline]

Assignment operator

Parameters:
constCType & value
Returns:
CVector <CType> & lhs
template<class CType>
void CVector< CType >::resize ( unsigned C_INT32  size,
const bool &  copy = false 
) [inline]

Resize the vector. The previous content is lost

Parameters:
unsignedC_INT32 size

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