Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
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

◆ get()

Element * get ( int  index) const
inline

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.

Referenced by Elements::operator[]().

◆ operator[]()

Element * operator[] ( int  index) const
inline

Shortcut to get().

References Elements::get().

◆ size()

int size ( void  ) const
inline

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: