#include <object.h>
Inheritance diagram for YDerivedType< T >:
Public Member Functions | |
YDerivedType (const T &c, const YDerivedType< T > *p=0, const YObjectArgs &args=YObjectArgs()) | |
YDerivedType (const YDerivedType< T > *p, const YObjectArgs &args=YObjectArgs()) | |
value must not be set. Only parent is valid | |
YDerivedType (const YDerivedType< T > &p) | |
void | SetParent (const YDerivedType< T > *p) |
void | DetachParent () |
virtual bool | IsValid () const |
returns true if this instance has a valid content | |
bool | IsDisabled () const |
returns true if this instance is disabled. Disabled objects will return contents of the parent objects. | |
bool | AreChildsDisabled () const |
returns true if this instance has disabled its child objects | |
void | SetChildsDisabled (bool b) |
void | Invalid () |
This function will unset the current content. If parent is zero this function has no effect! | |
const YDerivedType< T > * | GetValidContent () const |
const YDerivedType< T > * | GetDerivedParent () const |
const T & | GetContent () const |
const T & | SetContent (const T &c) |
const T & | operator>> (T &dest) const |
const T & | operator= (const T &c) |
This operator sets the content of the instance. | |
const YDerivedType< T > & | operator= (const YDerivedType< T > &c) |
const T & | operator<< (const T &c) |
This operator sets the content of the instance. It is similar to "=". | |
bool | operator!= (const YDerivedType< T > &c) const |
This operator compares the object with the and returns true if it is not equal. | |
bool | operator!= (const T &c) const |
This operator compares the object with the c and returns true if it is not equal. | |
bool | operator== (const YDerivedType< T > &c) const |
This operator compares the object with the and returns true if it is equal. | |
bool | operator== (const T &c) const |
This operator compares the object with the and returns true if it is equal. | |
operator bool () | |
This conversion operator checks, if the content is valid. | |
virtual bool | CheckLimits (T &dest, const T &source) const |
virtual void | DerivedParentContentChanged () |
virtual void | ObjectDisabled (bool b) |
Private Attributes | |
T | content |
bool | valid |
bool | disabled |
true if this object is disabled. In this case parent objects are used. Root objects can not be disabled. | |
bool | childsdisabled |
If set all child are disabled to ensure that this property is used in all childs. | |
const YDerivedType< T > * | derivedparent |
Ptr to parent of object. |
|
|
|
value must not be set. Only parent is valid
|
|
This is a Copy-Construktur for YDerivedType. It is not the final version Use it with care! The contents will be copied mostly from without the ptr to YSet Attention: The copied object is from the parents of derived too! So be sure that the parents are not destroyed before the childs are destroyed! This is important by using local attributes |
|
returns true if this instance has disabled its child objects
|
|
Checks the limits of and copies a final version to dest which will be used during SetContent()
Reimplemented in YTIME, YASA_DEADLINE, YASA_TICK, YASA_PRIORITY, YASA_CPU, YASA_MAXCPU, YASA_TASKTYPE, YASA_SCHEDULERTYPE, YASA_SERVERTYPE, YASA_DLBEHAVIOUR, YASA_MUTEXPROTOCOL, YASA_RESOURCEACTION, YASA_CALCPREEMPTIONTIME, and YASA_TIMERTICK. |
|
This is a slot in the base class (tricky right?) to ensure that derived objects can receive signals from their parent objects. This functions is called every time an parent object is changed. This function will refer the signal to its children. Due to possible changes in "object limits" we call SetContent() in this function. prevent UpdateObject twice Reimplemented from YDerivedObject. |
|
The object will be detached from its parent. If it is currently not valid it will be set to the current value of its parent and a signal will be emitted. If the content is valid it will not change. If the object is disabled it will be enabled but all childs will be disabled. If the parent has disabled the childs the current object will take over this feature so alle kinds will be disabled further |
|
returns the first valid content. This function is parsing the instances until the first occurence of a valid content. This content will be returned. Disabled objects will return contents of the parent objects. |
|
|
|
Returns the first non disable and valid ptr to content. This function is parsing the instances until the first occurence of a valid content. |
|
This function will unset the current content. If parent is zero this function has no effect!
|
|
returns true if this instance is disabled. Disabled objects will return contents of the parent objects.
|
|
returns true if this instance has a valid content
Implements YDerivedObject. |
|
If the parent object has called the function SetChildsDisabled() all child objects will receive the signal DisableObjects() in this slot. The content of all child objects will be disabled. Reimplemented from YDerivedObject. |
|
This conversion operator checks, if the content is valid.
|
|
This operator compares the object with the c and returns true if it is not equal.
|
|
This operator compares the object with the and returns true if it is not equal.
|
|
This operator sets the content of the instance. It is similar to "=".
|
|
This operator will set the content of the current object to "c". After calling this this function the current object is valid and set! |
|
This operator sets the content of the instance.
Reimplemented in YString, YTIME, YASA_PERIOD, YASA_DEADLINE, YASA_DEADLINETOLERANCE, YASA_LAXITY, YASA_REQUIREDTIME, YASA_OFFSET, YASA_SCHEDULINGTIME, YASA_SYNCHRONIZATIONOFFSET, YASA_TICK, YASA_PRIORITY, YASA_CPU, YASA_MAXCPU, YASA_TASKTYPE, YASA_SCHEDULERTYPE, YASA_SERVERTYPE, YASA_DLBEHAVIOUR, YASA_MUTEXPROTOCOL, YASA_RESOURCEACTION, YASA_CALCPREEMPTIONTIME, and YASA_TIMERTICK. |
|
This operator compares the object with the and returns true if it is equal.
|
|
This operator compares the object with the and returns true if it is equal.
|
|
This operator copies the content of the current instance to the destination. Destination is a type of instead YDerivedType. There is another global operator defined if you used the macro TYPEDEF_DERIVE(type, name) to define the YSettins type |
|
Sets this object and all child objects into disable state Disabled objects will return contents of the parent objects. |
|
This function is used to set the content of the object. Attention: During process there will be called the virtual function CheckLimits() to ensure the limits of the objects. In this way it is possible that the arguments will be modified! |
|
Set a new parent. The content will not be infected parents to zero are illegal. Use Detach instead !!! A signal "objectdisabled(true|false) is emitted if necessary. |
|
If set all child are disabled to ensure that this property is used in all childs.
|
|
|
|
Ptr to parent of object.
|
|
true if this object is disabled. In this case parent objects are used. Root objects can not be disabled.
|
|
true if is valid |