Kanzi  3.9.5
Kanzi Engine API
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. More...
 
bool ownerMatches (void *checkedOwner) const
 Indicates whether owner matches the given owner. More...
 
 ValueSourceEntry ()
 Constructor. More...
 
 ValueSourceEntry (ValueSource *valueSource, void *ownerParam, PropertyValuePrecedence precedence)
 Constructor. More...
 
 ValueSourceEntry (ValueSource *valueSource, ValueSourceOwner *ownerParam, PropertyValuePrecedence precedence)
 Constructor. More...
 
 ValueSourceEntry (ValueSourceEntry &&other) noexcept
 Move constructor. More...
 
 ~ValueSourceEntry ()
 Destructor. More...
 

Public Attributes

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

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: