TDataStd_BooleanList.hxx
TDataStd_ByteArray.cxx
TDataStd_ByteArray.hxx
-TDataStd_ByteArray.lxx
TDataStd_ChildNodeIterator.cxx
TDataStd_ChildNodeIterator.hxx
-TDataStd_ChildNodeIterator.lxx
TDataStd_Comment.cxx
TDataStd_Comment.hxx
TDataStd_Current.cxx
TDataStd_Expression.hxx
TDataStd_ExtStringArray.cxx
TDataStd_ExtStringArray.hxx
-TDataStd_ExtStringArray.lxx
TDataStd_ExtStringList.cxx
TDataStd_ExtStringList.hxx
TDataStd_HDataMapOfStringByte.cxx
TDataStd_HDataMapOfStringByte.hxx
-TDataStd_HDataMapOfStringByte.lxx
TDataStd_HDataMapOfStringHArray1OfInteger.cxx
TDataStd_HDataMapOfStringHArray1OfInteger.hxx
-TDataStd_HDataMapOfStringHArray1OfInteger.lxx
TDataStd_HDataMapOfStringHArray1OfReal.cxx
TDataStd_HDataMapOfStringHArray1OfReal.hxx
-TDataStd_HDataMapOfStringHArray1OfReal.lxx
TDataStd_HDataMapOfStringInteger.cxx
TDataStd_HDataMapOfStringInteger.hxx
-TDataStd_HDataMapOfStringInteger.lxx
TDataStd_HDataMapOfStringReal.cxx
TDataStd_HDataMapOfStringReal.hxx
-TDataStd_HDataMapOfStringReal.lxx
TDataStd_HDataMapOfStringString.cxx
TDataStd_HDataMapOfStringString.hxx
-TDataStd_HDataMapOfStringString.lxx
TDataStd_HLabelArray1.hxx
TDataStd_Integer.cxx
TDataStd_Integer.hxx
TDataStd_IntegerArray.cxx
TDataStd_IntegerArray.hxx
-TDataStd_IntegerArray.lxx
TDataStd_IntegerList.cxx
TDataStd_IntegerList.hxx
TDataStd_IntPackedMap.cxx
TDataStd_IntPackedMap.hxx
-TDataStd_IntPackedMap.lxx
TDataStd_LabelArray1.hxx
TDataStd_ListIteratorOfListOfByte.hxx
TDataStd_ListIteratorOfListOfExtendedString.hxx
TDataStd_Real.hxx
TDataStd_RealArray.cxx
TDataStd_RealArray.hxx
-TDataStd_RealArray.lxx
TDataStd_RealEnum.hxx
TDataStd_RealList.cxx
TDataStd_RealList.hxx
//! An array of Byte (unsigned char) values.
class TDataStd_ByteArray : public TDF_Attribute
{
-
+ friend class TDataStd_DeltaOnModificationOfByteArray;
+ DEFINE_STANDARD_RTTIEXT(TDataStd_ByteArray, TDF_Attribute)
public:
-
//! Static methods
//! ==============
//! Returns an ID for array.
//! Returns the number of elements in the array.
Standard_EXPORT Standard_Integer Length() const;
-
- const Handle(TColStd_HArray1OfByte) InternalArray() const;
-
+
+ const Handle(TColStd_HArray1OfByte)& InternalArray() const { return myValue; }
+
//! Sets the inner array <myValue> of the attribute to
//! <newArray>. If value of <newArray> differs from <myValue>, Backup performed
//! and myValue refers to new instance of HArray1OfInteger that holds <newArray>
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfByte)& newArray, const Standard_Boolean isCheckItems = Standard_True);
-
- Standard_Boolean GetDelta() const;
-
+
+ Standard_Boolean GetDelta() const { return myIsDelta; }
+
//! for internal use only!
- void SetDelta (const Standard_Boolean isDelta);
-
+ void SetDelta (const Standard_Boolean isDelta) { myIsDelta = isDelta; }
+
Standard_EXPORT TDataStd_ByteArray();
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
-
-friend class TDataStd_DeltaOnModificationOfByteArray;
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_ByteArray,TDF_Attribute)
-
-protected:
-
-
-
-
private:
+ void RemoveArray() { myValue.Nullify(); }
- void RemoveArray();
+private:
Handle(TColStd_HArray1OfByte) myValue;
Standard_Boolean myIsDelta;
-
};
-
-#include <TDataStd_ByteArray.lxx>
-
-
-
-
-
#endif // _TDataStd_ByteArray_HeaderFile
+++ /dev/null
-// Created on: 2007-12-05
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <TColStd_HArray1OfByte.hxx>
-
-//=======================================================================
-//function : Array
-//purpose :
-//=======================================================================
-
-inline const Handle(TColStd_HArray1OfByte) TDataStd_ByteArray::InternalArray(void) const
-{
- return myValue;
-}
-
-//=======================================================================
-//function : RemoveArray
-//purpose :
-//=======================================================================
-inline void TDataStd_ByteArray::RemoveArray(void)
-{
- myValue.Nullify();
-}
-
-
-//=======================================================================
-//function : SetDelta
-//purpose :
-//=======================================================================
-inline void TDataStd_ByteArray::SetDelta(const Standard_Boolean isDelta)
-{
- myIsDelta = isDelta;
-}
-//=======================================================================
-//function : GetDelta
-//purpose :
-//=======================================================================
-inline Standard_Boolean TDataStd_ByteArray::GetDelta(void) const
-{
- return myIsDelta;
-}
#include <Standard_Boolean.hxx>
class TDataStd_TreeNode;
-
//! Iterates on the ChildStepren step of a step, at the
//! first level only. It is possible to ask the
//! iterator to explore all the sub step levels of the
DEFINE_STANDARD_ALLOC
-
//! Creates an empty iterator.
Standard_EXPORT TDataStd_ChildNodeIterator();
//! Returns True if there is a current Item in the
//! iteration.
- Standard_Boolean More() const;
-
+ Standard_Boolean More() const { return !myNode.IsNull(); }
+
//! Move to the next Item
Standard_EXPORT void Next();
//! Returns the current item; a null Step if there is
//! no one.
- const Handle(TDataStd_TreeNode)& Value() const;
-
-
-
-
-protected:
-
-
-
-
+ const Handle(TDataStd_TreeNode)& Value() const { return myNode; }
private:
-
-
Handle(TDataStd_TreeNode) myNode;
Standard_Integer myFirstLevel;
-
};
-
-#include <TDataStd_ChildNodeIterator.lxx>
-
-
-
-
-
#endif // _TDataStd_ChildNodeIterator_HeaderFile
+++ /dev/null
-// Created on: 2000-02-11
-// Created by: Vladislav ROMASHKO
-// Copyright (c) 2000-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : More
-//purpose :
-//=======================================================================
-
-inline Standard_Boolean TDataStd_ChildNodeIterator::More() const
-{
- return !myNode.IsNull();
-}
-
-//=======================================================================
-//function : Value
-//purpose :
-//=======================================================================
-
-inline const Handle(TDataStd_TreeNode)& TDataStd_ChildNodeIterator::Value() const
-{
- return myNode;
-}
class TDataStd_ExtStringArray;
DEFINE_STANDARD_HANDLE(TDataStd_ExtStringArray, TDF_Attribute)
-//! ExtStringArray Attribute. Handles an
-//! array of UNICODE strings (represented by the
-//! TCollection_ExtendedString class).
+//! ExtStringArray Attribute. Handles an array of UNICODE strings (represented by the TCollection_ExtendedString class).
class TDataStd_ExtStringArray : public TDF_Attribute
{
-
+ friend class TDataStd_DeltaOnModificationOfExtStringArray;
+ DEFINE_STANDARD_RTTIEXT(TDataStd_ExtStringArray, TDF_Attribute)
public:
-
//! class methods
//! =============
//! Returns the GUID for the attribute.
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfExtendedString)& newArray, const Standard_Boolean isCheckItems = Standard_True);
-
+
//! Return the inner array of the ExtStringArray attribute
- const Handle(TColStd_HArray1OfExtendedString) Array() const;
-
- Standard_Boolean GetDelta() const;
-
+ const Handle(TColStd_HArray1OfExtendedString)& Array() const { return myValue; }
+
+ Standard_Boolean GetDelta() const { return myIsDelta; }
+
//! for internal use only!
- void SetDelta (const Standard_Boolean isDelta);
-
+ void SetDelta (const Standard_Boolean isDelta) { myIsDelta = isDelta; }
+
Standard_EXPORT TDataStd_ExtStringArray();
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
+private:
-friend class TDataStd_DeltaOnModificationOfExtStringArray;
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_ExtStringArray,TDF_Attribute)
-
-protected:
-
-
-
+ void RemoveArray() { myValue.Nullify(); }
private:
-
- void RemoveArray();
-
Handle(TColStd_HArray1OfExtendedString) myValue;
Standard_Boolean myIsDelta;
-
};
-
-#include <TDataStd_ExtStringArray.lxx>
-
-
-
-
-
#endif // _TDataStd_ExtStringArray_HeaderFile
+++ /dev/null
-// Created on: 2007-12-04
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <TColStd_HArray1OfExtendedString.hxx>
-
-//=======================================================================
-//function : Array
-//purpose :
-//=======================================================================
-
-inline const Handle(TColStd_HArray1OfExtendedString) TDataStd_ExtStringArray::Array(void) const
-{
- return myValue;
-}
-
-//=======================================================================
-//function : RemoveArray
-//purpose :
-//=======================================================================
-inline void TDataStd_ExtStringArray::RemoveArray(void)
-{
- myValue.Nullify();
-}
-
-
-//=======================================================================
-//function : SetDelta
-//purpose :
-//=======================================================================
-inline void TDataStd_ExtStringArray::SetDelta(const Standard_Boolean isDelta)
-{
- myIsDelta = isDelta;
-}
-//=======================================================================
-//function : GetDelta
-//purpose :
-//=======================================================================
-inline Standard_Boolean TDataStd_ExtStringArray::GetDelta(void) const
-{
- return myIsDelta;
-}
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
-
-class TDataStd_HDataMapOfStringByte;
-DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringByte, MMgt_TShared)
-
//! Extension of TDataStd_DataMapOfStringByte class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringByte : public MMgt_TShared
{
-
+ DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringByte, MMgt_TShared)
public:
-
Standard_EXPORT TDataStd_HDataMapOfStringByte(const Standard_Integer NbBuckets = 1);
-
- Standard_EXPORT TDataStd_HDataMapOfStringByte(const TDataStd_DataMapOfStringByte& theOther);
-
- const TDataStd_DataMapOfStringByte& Map() const;
-
- TDataStd_DataMapOfStringByte& ChangeMap();
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringByte,MMgt_TShared)
-
-protected:
+ Standard_EXPORT TDataStd_HDataMapOfStringByte(const TDataStd_DataMapOfStringByte& theOther);
+ const TDataStd_DataMapOfStringByte& Map() const { return myMap; }
+ TDataStd_DataMapOfStringByte& ChangeMap() { return myMap; }
private:
-
TDataStd_DataMapOfStringByte myMap;
-
};
-
-#include <TDataStd_HDataMapOfStringByte.lxx>
-
-
-
-
+DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringByte, MMgt_TShared)
#endif // _TDataStd_HDataMapOfStringByte_HeaderFile
+++ /dev/null
-// Created on: 2007-08-17
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Map
-//purpose : Access to the map
-//=======================================================================
-inline const TDataStd_DataMapOfStringByte& TDataStd_HDataMapOfStringByte::Map () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function : ChangeMap
-//purpose : Access to the map for modification
-//=======================================================================
-inline TDataStd_DataMapOfStringByte& TDataStd_HDataMapOfStringByte::ChangeMap ()
-{
- return myMap;
-}
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
-
-class TDataStd_HDataMapOfStringHArray1OfInteger;
-DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringHArray1OfInteger, MMgt_TShared)
-
//! Extension of TDataStd_DataMapOfStringHArray1OfInteger class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringHArray1OfInteger : public MMgt_TShared
{
-
+ DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringHArray1OfInteger, MMgt_TShared)
public:
-
Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(const Standard_Integer NbBuckets = 1);
-
- Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(const TDataStd_DataMapOfStringHArray1OfInteger& theOther);
-
- const TDataStd_DataMapOfStringHArray1OfInteger& Map() const;
-
- TDataStd_DataMapOfStringHArray1OfInteger& ChangeMap();
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringHArray1OfInteger,MMgt_TShared)
-
-protected:
+ Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(const TDataStd_DataMapOfStringHArray1OfInteger& theOther);
+ const TDataStd_DataMapOfStringHArray1OfInteger& Map() const { return myMap; }
+ TDataStd_DataMapOfStringHArray1OfInteger& ChangeMap() { return myMap; }
private:
-
TDataStd_DataMapOfStringHArray1OfInteger myMap;
-
};
-
-#include <TDataStd_HDataMapOfStringHArray1OfInteger.lxx>
-
-
-
-
+DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringHArray1OfInteger, MMgt_TShared)
#endif // _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile
+++ /dev/null
-// Created on: 2007-08-17
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Map
-//purpose : Access to the map
-//=======================================================================
-inline const TDataStd_DataMapOfStringHArray1OfInteger& TDataStd_HDataMapOfStringHArray1OfInteger::Map () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function : ChangeMap
-//purpose : Access to the map for modification
-//=======================================================================
-inline TDataStd_DataMapOfStringHArray1OfInteger& TDataStd_HDataMapOfStringHArray1OfInteger::ChangeMap ()
-{
- return myMap;
-}
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
-
-class TDataStd_HDataMapOfStringHArray1OfReal;
-DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringHArray1OfReal, MMgt_TShared)
-
//! Extension of TDataStd_DataMapOfStringHArray1OfReal class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringHArray1OfReal : public MMgt_TShared
{
-
+ DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringHArray1OfReal, MMgt_TShared)
public:
-
Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfReal(const Standard_Integer NbBuckets = 1);
-
- Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfReal(const TDataStd_DataMapOfStringHArray1OfReal& theOther);
-
- const TDataStd_DataMapOfStringHArray1OfReal& Map() const;
-
- TDataStd_DataMapOfStringHArray1OfReal& ChangeMap();
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringHArray1OfReal,MMgt_TShared)
-
-protected:
+ Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfReal(const TDataStd_DataMapOfStringHArray1OfReal& theOther);
+ const TDataStd_DataMapOfStringHArray1OfReal& Map() const { return myMap; }
+ TDataStd_DataMapOfStringHArray1OfReal& ChangeMap() { return myMap; }
private:
-
TDataStd_DataMapOfStringHArray1OfReal myMap;
-
};
-
-#include <TDataStd_HDataMapOfStringHArray1OfReal.lxx>
-
-
-
-
+DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringHArray1OfReal, MMgt_TShared)
#endif // _TDataStd_HDataMapOfStringHArray1OfReal_HeaderFile
+++ /dev/null
-// Created on: 2007-08-17
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Map
-//purpose : Access to the map
-//=======================================================================
-inline const TDataStd_DataMapOfStringHArray1OfReal& TDataStd_HDataMapOfStringHArray1OfReal::Map () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function : ChangeMap
-//purpose : Access to the map for modification
-//=======================================================================
-inline TDataStd_DataMapOfStringHArray1OfReal& TDataStd_HDataMapOfStringHArray1OfReal::ChangeMap ()
-{
- return myMap;
-}
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
-
-class TDataStd_HDataMapOfStringInteger;
-DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringInteger, MMgt_TShared)
-
//! Extension of TColStd_DataMapOfStringInteger class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringInteger : public MMgt_TShared
{
-
+ DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringInteger, MMgt_TShared)
public:
-
Standard_EXPORT TDataStd_HDataMapOfStringInteger(const Standard_Integer NbBuckets = 1);
-
- Standard_EXPORT TDataStd_HDataMapOfStringInteger(const TColStd_DataMapOfStringInteger& theOther);
-
- const TColStd_DataMapOfStringInteger& Map() const;
-
- TColStd_DataMapOfStringInteger& ChangeMap();
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringInteger,MMgt_TShared)
-
-protected:
+ Standard_EXPORT TDataStd_HDataMapOfStringInteger(const TColStd_DataMapOfStringInteger& theOther);
+ const TColStd_DataMapOfStringInteger& Map() const { return myMap; }
+ TColStd_DataMapOfStringInteger& ChangeMap() { return myMap; }
private:
-
TColStd_DataMapOfStringInteger myMap;
-
};
-
-#include <TDataStd_HDataMapOfStringInteger.lxx>
-
-
-
-
+DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringInteger, MMgt_TShared)
#endif // _TDataStd_HDataMapOfStringInteger_HeaderFile
+++ /dev/null
-// Created on: 2007-08-17
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Map
-//purpose : Access to the map
-//=======================================================================
-inline const TColStd_DataMapOfStringInteger& TDataStd_HDataMapOfStringInteger::Map () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function : ChangeMap
-//purpose : Access to the map for modification
-//=======================================================================
-inline TColStd_DataMapOfStringInteger& TDataStd_HDataMapOfStringInteger::ChangeMap ()
-{
- return myMap;
-}
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
-
-class TDataStd_HDataMapOfStringReal;
-DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringReal, MMgt_TShared)
-
//! Extension of TDataStd_DataMapOfStringReal class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringReal : public MMgt_TShared
{
-
+ DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringReal, MMgt_TShared)
public:
-
Standard_EXPORT TDataStd_HDataMapOfStringReal(const Standard_Integer NbBuckets = 1);
-
- Standard_EXPORT TDataStd_HDataMapOfStringReal(const TDataStd_DataMapOfStringReal& theOther);
-
- const TDataStd_DataMapOfStringReal& Map() const;
-
- TDataStd_DataMapOfStringReal& ChangeMap();
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringReal,MMgt_TShared)
-
-protected:
+ Standard_EXPORT TDataStd_HDataMapOfStringReal(const TDataStd_DataMapOfStringReal& theOther);
+ const TDataStd_DataMapOfStringReal& Map() const { return myMap; }
+ TDataStd_DataMapOfStringReal& ChangeMap() { return myMap; }
private:
-
TDataStd_DataMapOfStringReal myMap;
-
};
-
-#include <TDataStd_HDataMapOfStringReal.lxx>
-
-
-
-
+DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringReal, MMgt_TShared)
#endif // _TDataStd_HDataMapOfStringReal_HeaderFile
+++ /dev/null
-// Created on: 2007-08-17
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Map
-//purpose : Access to the map
-//=======================================================================
-inline const TDataStd_DataMapOfStringReal& TDataStd_HDataMapOfStringReal::Map () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function : ChangeMap
-//purpose : Access to the map for modification
-//=======================================================================
-inline TDataStd_DataMapOfStringReal& TDataStd_HDataMapOfStringReal::ChangeMap ()
-{
- return myMap;
-}
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
-
-class TDataStd_HDataMapOfStringString;
-DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringString, MMgt_TShared)
-
//! Extension of TDataStd_DataMapOfStringString class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringString : public MMgt_TShared
{
-
+ DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringString, MMgt_TShared)
public:
-
Standard_EXPORT TDataStd_HDataMapOfStringString(const Standard_Integer NbBuckets = 1);
-
- Standard_EXPORT TDataStd_HDataMapOfStringString(const TDataStd_DataMapOfStringString& theOther);
-
- const TDataStd_DataMapOfStringString& Map() const;
-
- TDataStd_DataMapOfStringString& ChangeMap();
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringString,MMgt_TShared)
-
-protected:
+ Standard_EXPORT TDataStd_HDataMapOfStringString(const TDataStd_DataMapOfStringString& theOther);
+ const TDataStd_DataMapOfStringString& Map() const { return myMap; }
+ TDataStd_DataMapOfStringString& ChangeMap() { return myMap; }
private:
-
TDataStd_DataMapOfStringString myMap;
-
};
-
-#include <TDataStd_HDataMapOfStringString.lxx>
-
-
-
-
+DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringString, MMgt_TShared)
#endif // _TDataStd_HDataMapOfStringString_HeaderFile
+++ /dev/null
-// Created on: 2007-08-17
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Map
-//purpose : Access to the map
-//=======================================================================
-inline const TDataStd_DataMapOfStringString& TDataStd_HDataMapOfStringString::Map () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function : ChangeMap
-//purpose : Access to the map for modification
-//=======================================================================
-inline TDataStd_DataMapOfStringString& TDataStd_HDataMapOfStringString::ChangeMap ()
-{
- return myMap;
-}
#include <Standard_Boolean.hxx>
#include <TDF_Attribute.hxx>
-#include <TColStd_PackedMapOfInteger.hxx>
+#include <TColStd_HPackedMapOfInteger.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
-class TColStd_HPackedMapOfInteger;
+
class TDataStd_DeltaOnModificationOfIntPackedMap;
class Standard_GUID;
class TDF_Label;
class TDF_RelocationTable;
class TDF_DeltaOnModification;
-
class TDataStd_IntPackedMap;
DEFINE_STANDARD_HANDLE(TDataStd_IntPackedMap, TDF_Attribute)
//! Attribute for storing TColStd_PackedMapOfInteger
class TDataStd_IntPackedMap : public TDF_Attribute
{
-
+ friend class TDataStd_DeltaOnModificationOfIntPackedMap;
+ DEFINE_STANDARD_RTTIEXT(TDataStd_IntPackedMap, TDF_Attribute)
public:
-
//! class methods
//! =============
//! Returns the GUID of the attribute.
Standard_EXPORT TDataStd_IntPackedMap();
Standard_EXPORT Standard_Boolean ChangeMap (const Handle(TColStd_HPackedMapOfInteger)& theMap);
-
- const TColStd_PackedMapOfInteger& GetMap() const;
-
- const Handle(TColStd_HPackedMapOfInteger)& GetHMap() const;
-
+
+ const TColStd_PackedMapOfInteger& GetMap() const { return myMap->Map(); }
+
+ const Handle(TColStd_HPackedMapOfInteger)& GetHMap() const { return myMap; }
+
Standard_EXPORT Standard_Boolean Clear();
Standard_EXPORT Standard_Boolean Add (const Standard_Integer theKey);
Standard_EXPORT Standard_Boolean Remove (const Standard_Integer theKey);
Standard_EXPORT Standard_Boolean Contains (const Standard_Integer theKey) const;
-
- Standard_Integer Extent() const;
-
- Standard_Boolean IsEmpty() const;
-
- Standard_Boolean GetDelta() const;
-
+
+ Standard_Integer Extent() const { return myMap->Map().Extent(); }
+
+ Standard_Boolean IsEmpty() const { return myMap->Map().IsEmpty(); }
+
+ Standard_Boolean GetDelta() const { return myIsDelta; }
+
//! for internal use only!
- void SetDelta (const Standard_Boolean isDelta);
-
+ void SetDelta (const Standard_Boolean isDelta) { myIsDelta = isDelta; }
+
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE;
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
+private:
-friend class TDataStd_DeltaOnModificationOfIntPackedMap;
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_IntPackedMap,TDF_Attribute)
-
-protected:
-
-
-
+ void RemoveMap() { myMap.Nullify(); }
private:
-
- void RemoveMap();
-
Handle(TColStd_HPackedMapOfInteger) myMap;
Standard_Boolean myIsDelta;
-
};
-
-#include <TDataStd_IntPackedMap.lxx>
-
-
-
-
-
#endif // _TDataStd_IntPackedMap_HeaderFile
+++ /dev/null
-// Created on: 2008-01-24
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2008-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <TColStd_HPackedMapOfInteger.hxx>
-//=======================================================================
-//function : GetHMap
-//purpose :
-//=======================================================================
-inline const Handle(TColStd_HPackedMapOfInteger)& TDataStd_IntPackedMap::GetHMap () const
-{
- return myMap;
-}
-
-//=======================================================================
-//function :
-//purpose :
-//=======================================================================
-
-inline const TColStd_PackedMapOfInteger& TDataStd_IntPackedMap::GetMap () const
-{
- return myMap->Map();
-}
-
-//=======================================================================
-//function : IsEmpty
-//purpose :
-//=======================================================================
-inline Standard_Boolean TDataStd_IntPackedMap::IsEmpty() const
-{
- return myMap->Map().IsEmpty();
-}
-
-//=======================================================================
-//function : Extent
-//purpose :
-//=======================================================================
-inline Standard_Integer TDataStd_IntPackedMap::Extent() const
-{
- return myMap->Map().Extent();
-}
-
-//=======================================================================
-//function : RemoveMap
-//purpose :
-//=======================================================================
-inline void TDataStd_IntPackedMap::RemoveMap(void)
-{
- myMap.Nullify();
-}
-
-
-//=======================================================================
-//function : SetDelta
-//purpose :
-//=======================================================================
-inline void TDataStd_IntPackedMap::SetDelta(const Standard_Boolean isDelta)
-{
- myIsDelta = isDelta;
-}
-//=======================================================================
-//function : GetDelta
-//purpose :
-//=======================================================================
-inline Standard_Boolean TDataStd_IntPackedMap::GetDelta(void) const
-{
- return myIsDelta;
-}
//! Contains an array of integers.
class TDataStd_IntegerArray : public TDF_Attribute
{
-
+ friend class TDataStd_DeltaOnModificationOfIntArray;
+ DEFINE_STANDARD_RTTIEXT(TDataStd_IntegerArray, TDF_Attribute)
public:
-
//! class methods
//! =============
//! Returns the GUID for arrays of integers.
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfInteger)& newArray, const Standard_Boolean isCheckItems = Standard_True);
-
+
//! Return the inner array of the IntegerArray attribute
- const Handle(TColStd_HArray1OfInteger) Array() const;
-
- Standard_Boolean GetDelta() const;
-
+ const Handle(TColStd_HArray1OfInteger)& Array() const { return myValue; }
+
+ Standard_Boolean GetDelta() const { return myIsDelta; }
+
//! for internal use only!
- void SetDelta (const Standard_Boolean isDelta);
-
+ void SetDelta (const Standard_Boolean isDelta) { myIsDelta = isDelta; }
+
Standard_EXPORT TDataStd_IntegerArray();
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
+private:
-friend class TDataStd_DeltaOnModificationOfIntArray;
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_IntegerArray,TDF_Attribute)
-
-protected:
-
-
-
+ void RemoveArray() { myValue.Nullify(); }
private:
-
- void RemoveArray();
-
Handle(TColStd_HArray1OfInteger) myValue;
Standard_Boolean myIsDelta;
-
};
-
-#include <TDataStd_IntegerArray.lxx>
-
-
-
-
-
#endif // _TDataStd_IntegerArray_HeaderFile
+++ /dev/null
-// Created on: 2007-10-02
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <TColStd_HArray1OfInteger.hxx>
-
-//=======================================================================
-//function : Array
-//purpose :
-//=======================================================================
-
-inline const Handle(TColStd_HArray1OfInteger) TDataStd_IntegerArray::Array(void) const
-{
- return myValue;
-}
-
-//=======================================================================
-//function : RemoveArray
-//purpose :
-//=======================================================================
-inline void TDataStd_IntegerArray::RemoveArray(void)
-{
- myValue.Nullify();
-}
-
-
-//=======================================================================
-//function : SetDelta
-//purpose :
-//=======================================================================
-inline void TDataStd_IntegerArray::SetDelta(const Standard_Boolean isDelta)
-{
- myIsDelta = isDelta;
-}
-//=======================================================================
-//function : GetDelta
-//purpose :
-//=======================================================================
-inline Standard_Boolean TDataStd_IntegerArray::GetDelta(void) const
-{
- return myIsDelta;
-}
//! A framework for an attribute composed of a real number array.
class TDataStd_RealArray : public TDF_Attribute
{
-
+ friend class TDataStd_DeltaOnModificationOfRealArray;
+ DEFINE_STANDARD_RTTIEXT(TDataStd_RealArray, TDF_Attribute)
public:
-
//! class methods
//! =============
//! Returns the GUID for arrays of reals.
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfReal)& newArray, const Standard_Boolean isCheckItems = Standard_True);
-
+
//! Returns the handle of this array of reals.
- const Handle(TColStd_HArray1OfReal) Array() const;
-
- Standard_Boolean GetDelta() const;
-
+ const Handle(TColStd_HArray1OfReal)& Array() const { return myValue; }
+
+ Standard_Boolean GetDelta() const { return myIsDelta; }
+
//! for internal use only!
- void SetDelta (const Standard_Boolean isDelta);
-
+ void SetDelta (const Standard_Boolean isDelta) { myIsDelta = isDelta; }
+
Standard_EXPORT TDataStd_RealArray();
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
+private:
-friend class TDataStd_DeltaOnModificationOfRealArray;
-
-
- DEFINE_STANDARD_RTTIEXT(TDataStd_RealArray,TDF_Attribute)
-
-protected:
-
-
-
+ void RemoveArray() { myValue.Nullify(); }
private:
-
- void RemoveArray();
-
Handle(TColStd_HArray1OfReal) myValue;
Standard_Boolean myIsDelta;
-
};
-
-#include <TDataStd_RealArray.lxx>
-
-
-
-
-
#endif // _TDataStd_RealArray_HeaderFile
+++ /dev/null
-// Created on: 2007-10-30
-// Created by: Sergey ZARITCHNY
-// Copyright (c) 2007-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : Array
-//purpose :
-//=======================================================================
-
-inline const Handle(TColStd_HArray1OfReal) TDataStd_RealArray::Array(void) const
-{
- return myValue;
-}
-
-//=======================================================================
-//function : RemoveArray
-//purpose :
-//=======================================================================
-inline void TDataStd_RealArray::RemoveArray(void)
-{
- myValue.Nullify();
-}
-
-
-//=======================================================================
-//function : SetDelta
-//purpose :
-//=======================================================================
-inline void TDataStd_RealArray::SetDelta(const Standard_Boolean isDelta)
-{
- myIsDelta = isDelta;
-}
-//=======================================================================
-//function : GetDelta
-//purpose :
-//=======================================================================
-inline Standard_Boolean TDataStd_RealArray::GetDelta(void) const
-{
- return myIsDelta;
-}