Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
XmlNodeList.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* XmlNodeList.h (C) 2000-2025 */
9/* */
10/* List of nodes of a DOM tree. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_XMLNODELIST_H
13#define ARCANE_CORE_XMLNODELIST_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Array.h"
18
19#include "arcane/core/XmlNode.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
35: public SharedArray<XmlNode>
36{
37 typedef SharedArray<XmlNode> BaseClass;
38
39 public:
40
41 Integer size() const { return BaseClass::size(); }
42 XmlNode node(Integer i) const { return this->operator[](i); }
43};
44
45/*---------------------------------------------------------------------------*/
46/*---------------------------------------------------------------------------*/
47
48} // namespace Arcane
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53#endif
Integer size() const
Number of elements in the vector.
ConstReferenceType operator[](Int64 i) const
Element at index i.
List of nodes of a DOM tree.
Definition XmlNodeList.h:36
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.