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

Simple wrapper for scalars. More...

#include <mdsScalar.h>

List of all members.

Public Types

typedef T tValue
 Type of the scalar.

Public Member Functions

 CScalar ()
 Default constructor.
 CScalar (tValue Value)
 Constructor.
 CScalar (const CScalar &Scalar)
 Copy constructor.
 operator tValue ()
 Conversion to the original type.
tValuevalue ()
 Returns the wrapped value.
const tValuevalue () const

Protected Attributes

tValue m_Value
 Wrapped scalar.

Detailed Description

template<typename T>
class mds::CScalar< T >

Simple wrapper for scalars.


Member Typedef Documentation

template<typename T >
typedef T mds::CScalar< T >::tValue

Type of the scalar.


Constructor & Destructor Documentation

template<typename T >
mds::CScalar< T >::CScalar ( )

Default constructor.

template<typename T >
mds::CScalar< T >::CScalar ( tValue  Value)

Constructor.

template<typename T >
mds::CScalar< T >::CScalar ( const CScalar< T > &  Scalar)

Copy constructor.


Member Function Documentation

template<typename T >
mds::CScalar< T >::operator tValue ( )

Conversion to the original type.

template<typename T >
tValue& mds::CScalar< T >::value ( )

Returns the wrapped value.

template<typename T >
const tValue& mds::CScalar< T >::value ( ) const

Member Data Documentation

template<typename T >
tValue mds::CScalar< T >::m_Value [protected]

Wrapped scalar.


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