ubit::UChildren Class Reference

Child (or attribute) list. More...

#include <uchild.hpp>

List of all members.

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.


Detailed Description

Child (or attribute) list.

See also:
: UChildIter, UGroup::children(), UGroup::attributes(), UProp::attributes().


Member Function Documentation

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).

template<class CC>
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).


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:46 2007 for Ubit by  doxygen 1.4.7