|
||||
File indexing completed on 2024-11-15 09:45:53
0001 // Created on: 2004-06-15 0002 // Created by: Sergey ZARITCHNY <szy@opencascade.com> 0003 // Copyright (c) 2004-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 _BinTools_LocationSet_HeaderFile 0017 #define _BinTools_LocationSet_HeaderFile 0018 0019 #include <Standard.hxx> 0020 #include <Standard_DefineAlloc.hxx> 0021 0022 #include <TopLoc_IndexedMapOfLocation.hxx> 0023 #include <Standard_Integer.hxx> 0024 #include <Standard_OStream.hxx> 0025 #include <Standard_IStream.hxx> 0026 class TopLoc_Location; 0027 0028 //! Operator for writing transformation into the stream 0029 Standard_OStream& operator << (Standard_OStream& OS, const gp_Trsf& T); 0030 0031 //! The class LocationSet stores a set of location in 0032 //! a relocatable state. 0033 //! 0034 //! It can be created from Locations. 0035 //! 0036 //! It can create Locations. 0037 class BinTools_LocationSet 0038 { 0039 public: 0040 0041 DEFINE_STANDARD_ALLOC 0042 0043 0044 //! Returns an empty set of locations. 0045 Standard_EXPORT BinTools_LocationSet(); 0046 0047 //! Clears the content of the set. 0048 Standard_EXPORT void Clear(); 0049 0050 //! Incorporate a new Location in the set and returns 0051 //! its index. 0052 Standard_EXPORT Standard_Integer Add (const TopLoc_Location& L); 0053 0054 //! Returns the location of index <I>. 0055 Standard_EXPORT const TopLoc_Location& Location (const Standard_Integer I) const; 0056 0057 //! Returns the index of <L>. 0058 Standard_EXPORT Standard_Integer Index (const TopLoc_Location& L) const; 0059 0060 //! Returns number of locations. 0061 Standard_EXPORT Standard_Integer NbLocations() const; 0062 0063 //! Writes the content of me on the stream <OS> in a 0064 //! format that can be read back by Read. 0065 Standard_EXPORT void Write (Standard_OStream& OS) const; 0066 0067 //! Reads the content of me from the stream <IS>. me 0068 //! is first cleared. 0069 Standard_EXPORT void Read (Standard_IStream& IS); 0070 0071 protected: 0072 0073 0074 0075 0076 0077 private: 0078 0079 0080 0081 TopLoc_IndexedMapOfLocation myMap; 0082 0083 0084 }; 0085 0086 0087 0088 0089 0090 0091 0092 #endif // _BinTools_LocationSet_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |