copasi API  0.1
Public Member Functions | Protected Member Functions
FSwapBase< IndexType, ReturnType > Class Template Reference

#include <CSort.h>

Inheritance diagram for FSwapBase< IndexType, ReturnType >:
FSwapClass< ClassType, IndexType, ReturnType >

List of all members.

Public Member Functions

 FSwapBase (ReturnType(*swap)(IndexType, IndexType))
virtual ~FSwapBase ()
virtual void operator() (IndexType to, IndexType from)

Protected Member Functions

 FSwapBase ()

Detailed Description

template<typename IndexType, typename ReturnType>
class FSwapBase< IndexType, ReturnType >

The base functor providing a swap method used in the applyPivot methods.


Constructor & Destructor Documentation

template<typename IndexType , typename ReturnType >
FSwapBase< IndexType, ReturnType >::FSwapBase ( ) [inline, protected]

Default constructor

template<typename IndexType , typename ReturnType >
FSwapBase< IndexType, ReturnType >::FSwapBase ( ReturnType(*)(IndexType, IndexType)  swap) [inline]

Specific constructor

Parameters:
ReturnType(*swap) (IndexType, IndexType)
template<typename IndexType , typename ReturnType >
virtual FSwapBase< IndexType, ReturnType >::~FSwapBase ( ) [inline, virtual]

Virtual destructor


Member Function Documentation

template<typename IndexType , typename ReturnType >
virtual void FSwapBase< IndexType, ReturnType >::operator() ( IndexType  to,
IndexType  from 
) [inline, virtual]

Operator wrapping the provided swap method

Parameters:
IndexTypeto
IndexTypefrom
Returns:
ReturnType

Reimplemented in FSwapClass< ClassType, IndexType, ReturnType >.


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