Classes | Public Member Functions | Protected Attributes

XMLStorage::const_XMLChildrenFilter Struct Reference

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

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::const_XMLChildrenFilter:
Collaboration graph
[legend]

List of all members.

Classes

struct  const_iterator
 internal iterator class More...

Public Member Functions

 const_XMLChildrenFilter (const XMLNode::Children &children, const XS_String &name)
 const_XMLChildrenFilter (const XMLNode *node, const XS_String &name)
const_iterator begin ()
const_iterator end ()
bool empty () const

Protected Attributes

const_iterator _begin
const_iterator _end

Detailed Description

read only iterator access to children nodes with name filtering

Definition at line 2033 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::const_XMLChildrenFilter::const_XMLChildrenFilter ( const XMLNode::Children children,
const XS_String name 
) [inline]

Definition at line 2035 of file xmlstorage.h.

     :  _begin(children.begin(), children.end(), name),
        _end(children.end(), children.end(), name)
    {
    }
XMLStorage::const_XMLChildrenFilter::const_XMLChildrenFilter ( const XMLNode node,
const XS_String name 
) [inline]

Definition at line 2041 of file xmlstorage.h.

     :  _begin(node->get_children().begin(), node->get_children().end(), name),
        _end(node->get_children().end(), node->get_children().end(), name)
    {
    }

Member Function Documentation

const_iterator XMLStorage::const_XMLChildrenFilter::begin (  ) [inline]

Definition at line 2116 of file xmlstorage.h.

References _begin.

Referenced by test_read().

    {
        return _begin;
    }

Here is the caller graph for this function:

bool XMLStorage::const_XMLChildrenFilter::empty (  ) const [inline]

Definition at line 2126 of file xmlstorage.h.

References _begin, and _end.

    {
        return _end == _begin;
    }
const_iterator XMLStorage::const_XMLChildrenFilter::end (  ) [inline]

Definition at line 2121 of file xmlstorage.h.

References _end.

Referenced by test_read().

    {
        return _end;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 2132 of file xmlstorage.h.

Referenced by begin(), and empty().

Definition at line 2133 of file xmlstorage.h.

Referenced by empty(), and end().


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