#include <uchild.hpp>
Public Member Functions | |
| UChildIter | at (int position) |
| returns an iterator pointing to the object at this position; returns end() if position is out of bounds. | |
| UChildIter | find (const UBrick &child) |
| returns an iterator pointing to 'child'; returns end() if 'child' does no belong to the child list. | |
| UChildIter | findStr (const UStr &value, bool ignore_case=true) |
| searches a string (UStr) which is equal to 'value'; returns end() if there is no such child. | |
| UChildIter | findBox (const UStr &value, bool ignore_case=true) |
| searches a box (UBox or subclass) which contains a string which is equal to 'value'; returns end() if there is no such child. | |
| template<class CC> | |
| UChildIter | findClass (CC *&c) |
| returns an iterator to the first child that derives from this class. | |
| UChildIter ubit::UChildren::findBox | ( | const UStr & | value, | |
| bool | ignore_case = true | |||
| ) |
searches a box (UBox or subclass) which contains a string which is equal to 'value'; returns end() if there is no such child.
this function compares the content of strings (not their addresses).
| UChildIter ubit::UChildren::findClass | ( | CC *& | c | ) |
returns an iterator to the first child that derives from this class.
"derives" means: this class or a direct or indirect subclass. Exemple:
UColor* c = null;
UChildIter i = children.findClass(c);
| UChildIter ubit::UChildren::findStr | ( | const UStr & | value, | |
| bool | ignore_case = true | |||
| ) |
searches a string (UStr) which is equal to 'value'; returns end() if there is no such child.
this function compares the content of strings (not their addresses).
1.4.7