COPASI API  4.16.103
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FSwapBase< IndexType, ReturnType > Class Template Reference

#include <CSort.h>

Inheritance diagram for FSwapBase< IndexType, ReturnType >:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

 FSwapBase ()
 

Private Attributes

ReturnType(* mpSwap )(IndexType, IndexType)
 

Detailed Description

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

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

Definition at line 219 of file CSort.h.

Constructor & Destructor Documentation

template<typename IndexType , typename ReturnType >
FSwapBase< IndexType, ReturnType >::FSwapBase ( )
inlineprotected

Default constructor

Definition at line 225 of file CSort.h.

225  :
226  mpSwap(NULL)
227  {}
ReturnType(* mpSwap)(IndexType, IndexType)
Definition: CSort.h:259
template<typename IndexType , typename ReturnType >
FSwapBase< IndexType, ReturnType >::FSwapBase ( ReturnType(*)(IndexType, IndexType)  swap)
inline

Specific constructor

Parameters
ReturnType(*swap) (IndexType, IndexType)

Definition at line 234 of file CSort.h.

234  :
235  mpSwap(swap)
236  {}
ReturnType(* mpSwap)(IndexType, IndexType)
Definition: CSort.h:259
template<typename IndexType , typename ReturnType >
virtual FSwapBase< IndexType, ReturnType >::~FSwapBase ( )
inlinevirtual

Virtual destructor

Definition at line 241 of file CSort.h.

241 {};

Member Function Documentation

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

Operator wrapping the provided swap method

Parameters
IndexTypeto
IndexTypefrom
Returns
ReturnType

Reimplemented in FSwapClass< ClassType, IndexType, ReturnType >.

Definition at line 249 of file CSort.h.

250  {
251  (*mpSwap)(to, from);
252  return;
253  }

Member Data Documentation

template<typename IndexType , typename ReturnType >
ReturnType(* FSwapBase< IndexType, ReturnType >::mpSwap)(IndexType, IndexType)
private

A pointer to the swap method

Definition at line 259 of file CSort.h.


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