Public Member Functions | Protected Attributes

xmlstorage::XMLChildrenFilter Class Reference

iterator access to children nodes with name filtering More...

Collaboration diagram for xmlstorage::XMLChildrenFilter:
Collaboration graph

List of all members.

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

Detailed Description

iterator access to children nodes with name filtering

Definition at line 992 of file xmlstorage.d.

Constructor & Destructor Documentation

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

Member Function Documentation

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)

        return result;

Member Data Documentation

Definition at line 1023 of file xmlstorage.d.

Definition at line 1024 of file xmlstorage.d.

The documentation for this class was generated from the following file: