COPASI API  4.40.278
CContext< Data > Class Template Reference

#include <CContext.h>

Inheritance diagram for CContext< Data >:
[legend]

Public Member Functions

Data & active ()
 
const Data & active () const
 
Data * beginThread ()
 
const Data * beginThread () const
 
 CContext (const bool &parallel=true)
 
 CContext (const CContext &src)
 
Data * endThread ()
 
const Data * endThread () const
 
int globalIndex (const Data *data) const
 
void init ()
 
bool isMaster (const Data *data) const
 
bool isThread (const Data *data) const
 
int localIndex (const Data *data) const
 
Data & master ()
 
const Data & master () const
 
CContextoperator= (const CContext &rhs)
 
bool operator== (const CContext &rhs) const
 
void release ()
 
const size_t & size () const
 
 ~CContext ()
 

Private Attributes

Data * mMasterData
 
bool mParallel
 
size_t mSize
 
Data * mThreadData
 

Constructor & Destructor Documentation

◆ CContext() [1/2]

template<class Data >
CContext< Data >::CContext ( const bool &  parallel = true)

◆ CContext() [2/2]

◆ ~CContext()

template<class Data >
CContext< Data >::~CContext

Member Function Documentation

◆ active() [1/2]

template<class Data >
Data & CContext< Data >::active

◆ active() [2/2]

template<class Data >
const Data & CContext< Data >::active

◆ beginThread() [1/2]

template<class Data >
Data * CContext< Data >::beginThread

◆ beginThread() [2/2]

template<class Data >
const Data * CContext< Data >::beginThread

◆ endThread() [1/2]

template<class Data >
Data * CContext< Data >::endThread

◆ endThread() [2/2]

template<class Data >
const Data * CContext< Data >::endThread

◆ globalIndex()

template<class Data >
int CContext< Data >::globalIndex ( const Data *  data) const

References MPI_Comm_rank, and MPI_COMM_WORLD.

◆ init()

template<class Data >
void CContext< Data >::init

◆ isMaster()

template<class Data >
bool CContext< Data >::isMaster ( const Data *  data) const

◆ isThread()

template<class Data >
bool CContext< Data >::isThread ( const Data *  data) const

◆ localIndex()

template<class Data >
int CContext< Data >::localIndex ( const Data *  data) const

◆ master() [1/2]

template<class Data >
Data & CContext< Data >::master

Referenced by COptMethodHookeJeeves::bestNearby(), COptMethodNL2SOL::calcr(), COptMethodSS::combination(), COptMethod::COptMethod(), COptMethodPS::create(), COptMethodEP::creation(), COptMethodSRES::creation(), COptMethodDE::creation(), COptMethodGA::creation(), COptMethodGASR::creation(), COptMethodSS::creation(), COptMethodGA::crossover(), COptMethodGASR::crossover(), COptMethodSteepestDescent::descentLine(), COptMethodCoranaWalk::evaluate(), COptMethodHookeJeeves::evaluate(), COptMethodLevenbergMarquardt::evaluate(), COptMethodNelderMead::evaluate(), COptMethodNL2SOL::evaluate(), COptMethodPraxis::evaluate(), COptMethodPS::evaluate(), COptMethodSA::evaluate(), COptMethodSteepestDescent::evaluate(), COptMethodTruncatedNewton::evaluate(), COptMethodDE::evaluate(), COptMethodEP::evaluate(), COptMethodGA::evaluate(), COptMethodGASR::evaluate(), COptMethodSRES::evaluate(), COptMethodSS::evaluate(), COptMethodStatistics::evaluate(), CRandomSearch::evaluate(), COptMethodPraxis::evaluateFunction(), COptMethodLevenbergMarquardt::gradient(), COptMethodSteepestDescent::gradient(), COptMethodLevenbergMarquardt::hessian(), COptMethod::initialize(), COptMethodCoranaWalk::initialize(), COptMethodDE::initialize(), COptMethodEP::initialize(), COptMethodGA::initialize(), COptMethodGASR::initialize(), COptMethodHookeJeeves::initialize(), COptMethodLevenbergMarquardt::initialize(), COptMethodNelderMead::initialize(), COptMethodNL2SOL::initialize(), COptMethodPraxis::initialize(), COptMethodPS::initialize(), COptMethodSA::initialize(), COptMethodSRES::initialize(), COptMethodSS::initialize(), COptMethodStatistics::initialize(), COptMethodSteepestDescent::initialize(), COptMethodTruncatedNewton::initialize(), COptPopulationMethod::initialize(), CRandomSearch::initialize(), COptMethodSS::localmin(), COptMethodPS::move(), COptMethodSRES::mutate(), COptMethodGA::mutate(), COptMethodGASR::mutate(), COptMethodEP::mutate(), COptMethodCoranaWalk::optimise(), COptMethodDE::optimise(), COptMethodEP::optimise(), COptMethodGA::optimise(), COptMethodGASR::optimise(), COptMethodHookeJeeves::optimise(), COptMethodLevenbergMarquardt::optimise(), COptMethodNelderMead::optimise(), COptMethodNL2SOL::optimise(), COptMethodPraxis::optimise(), COptMethodPS::optimise(), COptMethodSA::optimise(), COptMethodSRES::optimise(), COptMethodSS::optimise(), COptMethodStatistics::optimise(), COptMethodSteepestDescent::optimise(), COptMethodTruncatedNewton::optimise(), CRandomSearch::optimise(), COptMethodGASR::phi(), COptMethodSRES::phi(), COptMethodSS::randomize(), COptMethodDE::replicate(), COptMethodSRES::replicate(), COptMethodEP::select(), COptMethodGA::select(), COptMethodGASR::select(), COptMethodSRES::select(), CPointerMathContext< Data >::setMathContext(), COptMethodTruncatedNewton::sFun(), and CMathContext::sync().

◆ master() [2/2]

template<class Data >
const Data & CContext< Data >::master

◆ operator=()

template<class Data >
CContext< Data > & CContext< Data >::operator= ( const CContext< Data > &  rhs)

◆ operator==()

template<class Data >
bool CContext< Data >::operator== ( const CContext< Data > &  rhs) const

◆ release()

template<class Data >
void CContext< Data >::release

◆ size()

template<class Data >
const size_t & CContext< Data >::size

Member Data Documentation

◆ mMasterData

template<class Data >
Data* CContext< Data >::mMasterData
private

◆ mParallel

template<class Data >
bool CContext< Data >::mParallel
private

◆ mSize

template<class Data >
size_t CContext< Data >::mSize
private

◆ mThreadData

template<class Data >
Data* CContext< Data >::mThreadData
private

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