iterator access to children nodes with name filtering More...
Public Member Functions | |
this (XMLNode.Children children, char[] name) | |
this (XMLNode node, char[] name) | |
int | opApply (int delegate(inout XMLNode) dg) |
Protected Attributes | |
XMLNode.Children | _children |
char[] | _filter_name |
iterator access to children nodes with name filtering
Definition at line 992 of file xmlstorage.d.
xmlstorage::XMLChildrenFilter::this | ( | XMLNode.Children | children, |
char[] | name | ||
) | [inline] |
Definition at line 996 of file xmlstorage.d.
{ _children = children; _filter_name = name; }
xmlstorage::XMLChildrenFilter::this | ( | XMLNode | node, |
char[] | name | ||
) | [inline] |
Definition at line 1002 of file xmlstorage.d.
{
this(node.get_children(), name);
}
int xmlstorage::XMLChildrenFilter::opApply | ( | int delegate(inout XMLNode) | dg ) | [inline] |
Definition at line 1007 of file xmlstorage.d.
{ int result = 0; foreach(child; _children) if (child._name == _filter_name) { result = dg(child); if (result) break; } return result; }
Definition at line 1023 of file xmlstorage.d.
char [] xmlstorage::XMLChildrenFilter::_filter_name [protected] |
Definition at line 1024 of file xmlstorage.d.