Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::xom::Elements Class Reference

#include <elm/xom/Elements.h>

Public Member Functions

Elementget (int index) const
 
int size (void) const
 
Elementoperator[] (int index) const
 

Detailed Description

A read-only list of elements for traversal purposes. Changes to the document from which this list was generated are not reflected in this list. Changes to the individual Element objects in the list are reflected.

Member Function Documentation

Element * elm::xom::Elements::get ( int  index) const

Returns the indexth element in the list. The first element has index 0. The last element has index size() - 1.

Parameters
indexthe element to return
Returns
the element at the specified position.
Element * elm::xom::Elements::operator[] ( int  index) const

Shortcut to get().

int elm::xom::Elements::size ( void  ) const

Returns the number of elements in the list. This is guaranteed non-negative.

Returns
the number of elements in the list.

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