COPASI API  4.40.278
FSwapBase< IndexType, ReturnType > Class Template Reference

#include <CSort.h>

Inheritance diagram for FSwapBase< IndexType, ReturnType >:
[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.

Constructor & Destructor Documentation

◆ FSwapBase() [1/2]

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

Default constructor

◆ FSwapBase() [2/2]

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

Specific constructor

Parameters
ReturnType(*swap) (IndexType, IndexType)

◆ ~FSwapBase()

template<typename IndexType , typename ReturnType >
virtual FSwapBase< IndexType, ReturnType >::~FSwapBase ( )
inlinevirtual

Virtual destructor

Member Function Documentation

◆ operator()()

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 >.

Member Data Documentation

◆ mpSwap

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

A pointer to the swap method


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