1 // Created on: 2001-06-28
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef LDOM_NodeList_HeaderFile
17 #define LDOM_NodeList_HeaderFile
19 #include <LDOM_Node.hxx>
22 class LDOM_BasicNodeSequence;
24 // Class LDOM_NodeList
30 // ---------- PUBLIC METHODS ----------
32 Standard_EXPORT LDOM_NodeList ();
35 Standard_EXPORT LDOM_NodeList (const LDOM_NodeList& theOther);
38 Standard_EXPORT LDOM_NodeList& operator = (const LDOM_NodeList& theOther);
41 Standard_EXPORT ~LDOM_NodeList ();
44 Standard_EXPORT LDOM_NodeList& operator = (const LDOM_NullPtr *);
47 Standard_EXPORT Standard_Boolean operator == (const LDOM_NullPtr *) const;
49 Standard_EXPORT Standard_Boolean operator != (const LDOM_NullPtr *) const;
51 Standard_EXPORT LDOM_Node item (const Standard_Integer) const;
53 Standard_EXPORT Standard_Integer getLength () const;
56 friend class LDOM_Document;
57 friend class LDOM_Element;
58 friend class LDOM_BasicElement;
59 // ---------- PRIVATE FIELDS ----------
61 Standard_EXPORT LDOM_NodeList (const Handle(LDOM_MemManager)& aDoc);
63 Standard_EXPORT void Append (const LDOM_BasicNode& aNode) const;
65 Handle(LDOM_MemManager) myDoc;
66 LDOM_BasicNodeSequence * mySeq;