Kanzi 3.9.10
kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry Struct Reference

Entry pointing to value sources. More...

#include <kanzi/core/property/abstract_property_type_descriptor.hpp>

Public Member Functions

ValueSourceEntryoperator= (ValueSourceEntry &&other) noexcept
 Move operator.
 
bool ownerMatches (void *checkedOwner) const
 Indicates whether owner matches the given owner.
 
 ValueSourceEntry ()
 Constructor.
 
 ValueSourceEntry (ValueSource *valueSource, ValueSourceOwner *ownerParam, PropertyValuePrecedence precedence)
 Constructor.
 
 ValueSourceEntry (ValueSource *valueSource, void *ownerParam, PropertyValuePrecedence precedence)
 Constructor.
 
 ValueSourceEntry (ValueSourceEntry &&other) noexcept
 Move constructor.
 
 ~ValueSourceEntry ()
 Destructor.
 

Public Attributes

ValueSourceOwnerPtr owner
 Owner of the value source. This may abstract the operation to do when value source is destructed.
 
PropertyValuePrecedence precedence
 Precedence of the value source.
 
ValueSourcevalueSource
 Referenced value source.
 

Detailed Description

Entry pointing to value sources.

Constructor & Destructor Documentation

◆ ValueSourceEntry() [1/4]

kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::ValueSourceEntry ( )
inlineexplicit

Constructor.

◆ ValueSourceEntry() [2/4]

kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::ValueSourceEntry ( ValueSource * valueSource,
void * ownerParam,
PropertyValuePrecedence precedence )
inlineexplicit

Constructor.

Parameters
valueSourceValue source pointed at by this entry.
ownerParamOwner pointer, may be 0.
precedenceProperty value precedence.

◆ ValueSourceEntry() [3/4]

kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::ValueSourceEntry ( ValueSource * valueSource,
ValueSourceOwner * ownerParam,
PropertyValuePrecedence precedence )
inlineexplicit

Constructor.

Value source owner is of correct type already, and is not explicitly constructed. This object will take ownership of value source owner parameter.

Parameters
valueSourceValue source pointed at by this entry.
ownerParamValue source owner.
precedenceProperty value precedence.

◆ ValueSourceEntry() [4/4]

kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::ValueSourceEntry ( ValueSourceEntry && other)
inlinenoexcept

Move constructor.

Parameters
otherSource to move from.

◆ ~ValueSourceEntry()

kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::~ValueSourceEntry ( )
inline

Destructor.

Member Function Documentation

◆ operator=()

ValueSourceEntry & kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::operator= ( ValueSourceEntry && other)
inlinenoexcept

Move operator.

Parameters
otherSource to move from.
Returns
This after moving.

◆ ownerMatches()

bool kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::ownerMatches ( void * checkedOwner) const
inline

Indicates whether owner matches the given owner.

Parameters
checkedOwnerOwner to compare to.
Returns
If the owner in this value source entry matches the given pointer, true, otherwise false.

Member Data Documentation

◆ valueSource

ValueSource* kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::valueSource

Referenced value source.

Not owned by this owner object.

◆ owner

ValueSourceOwnerPtr kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::owner

Owner of the value source. This may abstract the operation to do when value source is destructed.

◆ precedence

PropertyValuePrecedence kanzi::AbstractPropertyTypeDescriptor::ValueSourceEntry::precedence

Precedence of the value source.


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