Chemical Data Processing Library C++ API - Version 1.2.0
Public Member Functions | List of all members
CDPL::Util::PropertyValue< T > Class Template Reference

An unary functor that retrieves the value of a given property from the Base::PropertyContainer instance provided as argument. More...

#include <PropertyValue.hpp>

Public Member Functions

 PropertyValue (const Base::LookupKey &key)
 Constructs a PropertyValue instance for the property specified by key. More...
 
const T & operator() (const Base::PropertyContainer &cntnr) const
 Retrievs the value of the property specified in the constructor from the Base::PropertyContainer instance cntnr. More...
 

Detailed Description

template<typename T>
class CDPL::Util::PropertyValue< T >

An unary functor that retrieves the value of a given property from the Base::PropertyContainer instance provided as argument.

Template Parameters
TThe type of the property value.

Constructor & Destructor Documentation

◆ PropertyValue()

template<typename T >
CDPL::Util::PropertyValue< T >::PropertyValue ( const Base::LookupKey key)
inline

Constructs a PropertyValue instance for the property specified by key.

Parameters
keyThe key of the property.

Member Function Documentation

◆ operator()()

template<typename T >
const T& CDPL::Util::PropertyValue< T >::operator() ( const Base::PropertyContainer cntnr) const
inline

Retrievs the value of the property specified in the constructor from the Base::PropertyContainer instance cntnr.

Parameters
cntnrThe Base::PropertyContainer instance storing the property value.
Returns
The value of the property.

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