Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:12

0001 // Created on: 2001-06-28
0002 // Created by: Alexander GRIGORIEV
0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef LDOM_NodeList_HeaderFile
0017 #define LDOM_NodeList_HeaderFile
0018 
0019 #include <LDOM_Node.hxx>
0020 
0021 class LDOM_BasicNode;
0022 class LDOM_BasicNodeSequence;
0023 
0024 //  Class LDOM_NodeList
0025 //
0026 
0027 class LDOM_NodeList 
0028 {
0029  public:
0030   // ---------- PUBLIC METHODS ----------
0031 
0032   Standard_EXPORT LDOM_NodeList ();
0033   // Empty constructor
0034 
0035   Standard_EXPORT LDOM_NodeList (const LDOM_NodeList& theOther);
0036   // Copy constructor
0037 
0038   Standard_EXPORT LDOM_NodeList& operator =     (const LDOM_NodeList& theOther);
0039   // Copy constructor
0040 
0041   Standard_EXPORT ~LDOM_NodeList ();
0042   // Destructor
0043 
0044   Standard_EXPORT LDOM_NodeList& operator =     (const LDOM_NullPtr *);
0045   // Nullify
0046 
0047   Standard_EXPORT Standard_Boolean operator ==  (const LDOM_NullPtr *) const;
0048   
0049   Standard_EXPORT Standard_Boolean operator !=  (const LDOM_NullPtr *) const;
0050   
0051   Standard_EXPORT LDOM_Node item                (const Standard_Integer) const;
0052 
0053   Standard_EXPORT Standard_Integer getLength    () const;
0054 
0055  private:
0056   friend class LDOM_Document;
0057   friend class LDOM_Element;
0058   friend class LDOM_BasicElement;
0059   // ---------- PRIVATE FIELDS ----------
0060 
0061   Standard_EXPORT LDOM_NodeList (const Handle(LDOM_MemManager)& aDoc);
0062 
0063   Standard_EXPORT void Append (const LDOM_BasicNode& aNode) const;
0064 
0065   Handle(LDOM_MemManager)       myDoc;
0066   LDOM_BasicNodeSequence        * mySeq;
0067 };
0068 
0069 #endif