scram::xml::Element::Range
The range for elements. More...
#include <xml.h>
Public Classes
| Name | |
|---|---|
| class | iterator <br>Iterator over range elements. |
Public Types
| Name | |
|---|---|
| using Element | value_type <br>Minimal container for Element type. |
| using iterator | const_iterator <br>The container is immutable. |
Public Functions
| Name | |
|---|---|
| iterator | begin() const<br>The range begin and end iterators. |
| iterator | end() const |
| iterator | cbegin() const |
| iterator | cend() const |
| Range(const xmlNode * head)<br>Constructs the range for the intrusive list of XML Element nodes. | |
| bool | empty() const |
| std::size_t | size() const |
Detailed Description
cpp
class scram::xml::Element::Range;The range for elements.
This is a simple view adaptor to the linked list XML elements.
Public Types Documentation
using value_type
cpp
using scram::xml::Element::Range::value_type = Element;Minimal container for Element type.
using const_iterator
cpp
using scram::xml::Element::Range::const_iterator = iterator;The container is immutable.
Public Functions Documentation
function begin
cpp
inline iterator begin() constThe range begin and end iterators.
function end
cpp
inline iterator end() constfunction cbegin
cpp
inline iterator cbegin() constfunction cend
cpp
inline iterator cend() constfunction Range
cpp
inline explicit Range(
const xmlNode * head
)Constructs the range for the intrusive list of XML Element nodes.
Parameters:
- head The head node of the list (may be non-Element node!). nullptr if the list is empty.
function empty
cpp
inline bool empty() constReturn: true if the range contains no elements.
function size
cpp
inline std::size_t size() constReturn: The number of Elements in the list.
Note: O(N) complexity.
Updated on 2025-11-11 at 16:51:08 +0000
