|
| | AMProperty (AMPropertyPool &pool, T *const ptr) |
| | Constructor for subproperty. Do not use othervise. Suproperty has only reference to real type T. This should be only called from T subproperies class. More...
|
| |
| | AMProperty (AMPropertyPool &pool, const char *name=nullptr) |
| | "Default" constructor. More...
|
| |
| | AMProperty (AMPropertyPool &pool, T value, const char *name=nullptr) |
| | "Value" constructor. Every reading from property, returns this value. More...
|
| |
| constexpr | AMProperty (AMPropertyPool &pool, type_fn f, const char *name=nullptr) |
| | "Functor" constructor. Every reading from property, returns result of this function. (i may be cached, ref: Smart properties) More...
|
| |
| | AMProperty (const AMProperty &other) |
| | "Copy" constructor. More...
|
| |
| constexpr | AMProperty (AMProperty &&other) |
| | "Move" constructor. Smart roperty has not move constructor, due to composition. (All member are storaged inside smart property) More...
|
| |
|
| ~AMProperty () |
| | Destructor.
|
| |
|
void | setValueFn (const type_fn &_f) |
| | Copy functor into property. Do not use it directly..
|
| |
|
void | setValueFn (const type_fn &&_f) |
| | Move functor into property. Do not use it directly..
|
| |
|
type_fn & | getValueFn () |
| | Get functor from property.
|
| |
|
void | setPool (AMPropertyPool &pool) |
| | Set Pool (AMSmartProperties::AMPropertyPool) You may reassign property to another pool(window), or inactives it(assign to AMSmartProperties::AMPropertyPool::defaultPool())
|
| |
|
const T & | getResult () const |
| | get last result. This function does not compute property. Consider use it directly.
|
| |
|
void | setResult (T value) |
| | set last result. This function does not compute property. Consider use it directly. Stored value will be there until next recompution.
|
| |
|
constexpr TSubProperties * | getSubProperties () |
| | get subproperties. Consider use it directly.
|
| |
|
bool | isValueOnly () const |
| | test, if property has a constant value (functor is empty)
|
| |
|
constexpr bool | hasSubproperties () const |
| | test if proparty has subproperties.
|
| |
| T | operator() () |
| | returns a computed value. Freshly computed, or cached, in case of nothig is modified. More...
|
| |
|
void | compute () |
| | computes result. Consider use it directly.
|
| |
| | operator const T & () |
| | returns a computed value. Freshly computed, or cached, in case of nothig is modified. More...
|
| |
| const type_fn & | operator= (const type_fn &right) |
| | Copy functor into property. More...
|
| |
| const type_fn & | operator= (const type_fn &&right) |
| | Move functor into property. More...
|
| |
| const T & | operator= (const T &right) |
| | set last result. This function does not compute property. Stored value will be there until next recompution. More...
|
| |
|
constexpr TSubProperties * | operator-> () |
| | get subproperties.
|
| |
| T | operator+ (const T &other) |
| | operator + computes a value and add it to right side parameter. More...
|
| |
| T | operator- (const T &other) |
| | operator - computes a value and substract by right side parameter. More...
|
| |
| T | operator* (const T &other) |
| | operator * computes a value and multiply by right side parameter. More...
|
| |
| T | operator/ (const T &other) |
| | operator / computes a value and add divide by right side parameter. More...
|
| |
| T | operator% (const T &other) |
| | operator % computes a value and add module by right side parameter. More...
|
| |
| T | operator++ () |
| | operator ++ computes a value and add increment it. Value does not store back! More...
|
| |
| T | operator-- () |
| | operator – computes a value and decrement it.Value does not store back! More...
|
| |
| void | setDescription (const char *desc, const char *suffix) |
| | set description (variable names). Name consists from two equvalent parts. Reason for split is avoiding joining strings in case of varible names not active. More...
|
| |
|
std::string | to_string () const |
| | dumps a property info a std::string.
|
| |
| AMPropertyPool & | getPool () const |
| | Get the pool assigned to property. More...
|
| |
| void | setPool (AMPropertyPool &newPool) |
| | Move property from one pool to another. More...
|
| |
| AMPropertyBase * | getNext () const |
| | Do not use it directly! More...
|
| |
|
void | resetState () |
| | Reset state od property. This function is not intenden for use in common operation.
|
| |
| bool | isNonComputed () const |
| | Information about property. More...
|
| |
| void | setNoComputedFlag () |
| | Information about property Set flag that property is not already computed. More...
|
| |
| void | setNoComputed (bool noComputed) |
| | Information about property. More...
|
| |
| bool | getComputingFlag () |
| | Information about property. More...
|
| |
| bool | isInProgress () |
| | Information about property. More...
|
| |
| void | runLoop () |
| | Sets operation mode to loop. More...
|
| |
| void | runDeleted () |
| | Sets operation mode to deleted. It works, if current mode is normal. More...
|
| |
| AMPropertyState | getState (AMPropertyState valueOnly) const |
| | Get state (AMSmartProperties::AMPropertyState) of property. Bits 0,1 comes from this property. Bit 2 is given from inherited class. Oher bits, 3,4 comes from AMSmartProperties::AMProperyPool. Warning! If parameter valueOnly has set any other bits than (0, AMPropertyState::VALUEONLY), result is undefined. More...
|
| |
| std::string | to_string () const |
| | Debug helper. Simple dumps property into std::string. More...
|
| |