Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
arxml_node_range.h
1#ifndef ARXML_NODE_RANGE_H
2#define ARXML_NODE_RANGE_H
3
4#include "./arxml_node_iterator.h"
5
6#include <vector>
7
8namespace arxml
9{
13 {
14 private:
15 const ArxmlNodeIterator mBegin;
16 const ArxmlNodeIterator mEnd;
17
18 public:
23 pugi::xml_node_iterator begin, pugi::xml_node_iterator end) : mBegin{begin},
24 mEnd{end}
25 {
26 }
27
30 inline ArxmlNodeIterator begin() const
31 {
32 return mBegin;
33 }
34
37 inline ArxmlNodeIterator end() const
38 {
39 return mEnd;
40 }
41 };
42}
43
44#endif
Read-only access iterator for a range of ARXML nodes.
Definition: arxml_node_iterator.h:12
Read-only range of ARXML nodes.
Definition: arxml_node_range.h:13
ArxmlNodeIterator begin() const
Constant iterator to the beginning of the range.
Definition: arxml_node_range.h:30
ArxmlNodeIterator end() const
Constant iterator to the end of the range.
Definition: arxml_node_range.h:37
ArxmlNodeRange(pugi::xml_node_iterator begin, pugi::xml_node_iterator end)
Constructor.
Definition: arxml_node_range.h:22
AUTOSAR XML (ARXML) configuration files utilities namespace.
Definition: arxml_node.cpp:6