#include <YChildrenManager.h>


Public Member Functions | |
| YSingleChildManager (T *containerParent) | |
| virtual void | add (T *child) |
| void | replace (T *newChild) |
Public Member Functions inherited from YChildrenManager< T > | |
| YChildrenManager (T *containerParent) | |
| virtual | ~YChildrenManager () |
| bool | hasChildren () const |
| bool | empty () const |
| int | count () const |
| ChildrenList::iterator | begin () |
| ChildrenList::iterator | end () |
| ChildrenList::const_iterator | begin () const |
| ChildrenList::const_iterator | end () const |
| ChildrenList::const_reverse_iterator | rbegin () const |
| ChildrenList::const_reverse_iterator | rend () const |
| T * | firstChild () |
| T * | lastChild () |
| virtual void | remove (T *child) |
| virtual void | clear () |
| bool | contains (T *child) const |
| T * | container () const |
Additional Inherited Members | |
Public Types inherited from YChildrenManager< T > | |
| typedef std::list< T * > | ChildrenList |
Protected Attributes inherited from YChildrenManager< T > | |
| T * | _container |
| ChildrenList | _children |
Children manager that can handle one single child (rejecting any more). Useful for YAlignment, YFrame etc.
|
inlinevirtual |
Add a new child.
Reimplemented from YChildrenManager.
This will throw a YUITooManyChildrenException if there already is a child.
Reimplemented from YChildrenManager< T >.
|
inline |
Replace the previous child (if any) with a new one.