ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
property_variable< T >

Property Variable template for the given T. More...

#include <configuration.h>

Inheritance diagram for property_variable< T >:
[legend]

Public Member Functions

const T * operator-> ()
 
- Public Member Functions inherited from property_variable< T >
 property_variable ()
 CTOR.
 
 property_variable (const T &oValue)
 type initializing CTOR
 
void Notify (const IProperty &oProperty) override
 Implements the observer pattern.
 
tResult GetType (IString &&strType) const override
 Returns the identifier of the type.
 
const IPropertyValueGetValue () const override
 
const T & operator* () const
 
 operator const T & () const
 
bool operator== (const T &oVal)
 
bool operator!= (const T &oVal)
 
- Public Member Functions inherited from cPropertyVariable
void SetUnregister (IMemberPropertyUnregister &oUnregister)
 

Additional Inherited Members

- Protected Member Functions inherited from IPropertyObserver
 ~IPropertyObserver ()=default
 Protected destructor.
 

Detailed Description

template<typename T>
class adtf::base::flash::property_variable< T >

Property Variable template for the given T.

A Property Variable will store a copy of a property value of the specified type T.

If it was registered to a property set IProperties by IProperties::RegisterPropertyObserver the copy is automatically updated on property changes.

Parameters
TThe type of the property
Remarks
The notify call is not yet threadsafe!

Definition at line 405 of file configuration.h.

Member Function Documentation

◆ operator->()

template<typename T>
const T * operator-> ( )
inline

Definition at line 410 of file configuration.h.