MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Attributes
mds::base::CReplace< T > Class Template Reference

Functor changes value of an observed variable. More...

#include <mdsFunctional.h>

List of all members.

Public Member Functions

 CReplace (const T &Value, const T &NewValue)
 Default constructor.
void operator() (T &Value)
 Checks and eventually replaces value of a given parameter.

Protected Attributes

m_NewValue
m_Value
 Original and the new value.

Detailed Description

template<typename T>
class mds::base::CReplace< T >

Functor changes value of an observed variable.


Constructor & Destructor Documentation

template<typename T >
mds::base::CReplace< T >::CReplace ( const T &  Value,
const T &  NewValue 
)

Default constructor.


Member Function Documentation

template<typename T >
void mds::base::CReplace< T >::operator() ( T &  Value)

Checks and eventually replaces value of a given parameter.


Member Data Documentation

template<typename T >
T mds::base::CReplace< T >::m_NewValue [protected]
template<typename T >
T mds::base::CReplace< T >::m_Value [protected]

Original and the new value.


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