MeVisLab Toolbox Reference
DefaultPropertyAccessor< T > Class Template Reference

Project global and OS specific declarations. More...

#include <mlPropertyAccessor.h>

Inheritance diagram for DefaultPropertyAccessor< T >:
IntrusivePtrBase< DefaultPropertyAccessor< T > >

Public Types

typedef DefaultPropertyAccessor< Ttype
 
typedef boost::intrusive_ptr< typePointerType
 
typedef boost::intrusive_ptr< const typeConstPointerType
 

Public Member Functions

 DefaultPropertyAccessor (const PropertyManager::Pointer &manager, const std::string &propertyName, const T &defaultValue)
 
Toperator() (PropertyContainer &container) const
 
const Toperator() (const PropertyContainer &container) const
 
const Tget (const PropertyContainer &container) const
 
void set (PropertyContainer &container, const T &value) const
 

Detailed Description

template<typename T>
class DefaultPropertyAccessor< T >

Project global and OS specific declarations.

Definition at line 41 of file mlPropertyAccessor.h.

Member Typedef Documentation

◆ ConstPointerType

template<typename T >
typedef boost::intrusive_ptr<const type> DefaultPropertyAccessor< T >::ConstPointerType

Definition at line 45 of file mlPropertyAccessor.h.

◆ PointerType

template<typename T >
typedef boost::intrusive_ptr<type> DefaultPropertyAccessor< T >::PointerType

Definition at line 44 of file mlPropertyAccessor.h.

◆ type

Definition at line 43 of file mlPropertyAccessor.h.

Constructor & Destructor Documentation

◆ DefaultPropertyAccessor()

template<typename T >
DefaultPropertyAccessor< T >::DefaultPropertyAccessor ( const PropertyManager::Pointer & manager,
const std::string & propertyName,
const T & defaultValue )
inline

Definition at line 47 of file mlPropertyAccessor.h.

Member Function Documentation

◆ get()

template<typename T >
const T & DefaultPropertyAccessor< T >::get ( const PropertyContainer & container) const
inline

◆ operator()() [1/2]

template<typename T >
const T & DefaultPropertyAccessor< T >::operator() ( const PropertyContainer & container) const

Definition at line 74 of file mlPropertyAccessor.h.

References ML_BAD_PARAMETER, mlrange_cast(), and T.

◆ operator()() [2/2]

◆ set()

template<typename T >
void DefaultPropertyAccessor< T >::set ( PropertyContainer & container,
const T & value ) const
inline

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