Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2002-04-17
0002 // Created by: Alexander KARTOMIN (akm)
0003 // Copyright (c) 2002-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 NCollection_ListNode_HeaderFile
0017 #define NCollection_ListNode_HeaderFile
0018 
0019 #include <NCollection_BaseAllocator.hxx>
0020 #include <NCollection_DefineAlloc.hxx>
0021 
0022 /**
0023  * Purpose:     This class is used to  represent a node  in the BaseList and
0024  *              BaseMap. 
0025  */              
0026 class NCollection_ListNode
0027 {
0028 public:
0029   // define new operator for use with NCollection allocators
0030   DEFINE_NCOLLECTION_ALLOC
0031 public:
0032   //! The only constructor
0033   NCollection_ListNode (NCollection_ListNode* theNext)
0034   : myNext(theNext) {}
0035 
0036   //! Next pointer access
0037   NCollection_ListNode*& Next (void)
0038   { return myNext; }
0039 
0040   //! Next pointer const access
0041   NCollection_ListNode* Next (void) const
0042   { return myNext; }
0043 
0044  private:
0045   //! operator= - forbidden
0046   NCollection_ListNode& operator= (const NCollection_ListNode&);
0047   
0048   //! copy constructor - forbidden
0049   NCollection_ListNode (const NCollection_ListNode&);
0050 
0051  private:
0052   NCollection_ListNode * myNext; //!< Pointer to the next node
0053 };
0054 
0055 #endif