|
||||
File indexing completed on 2024-11-12 09:54:17
0001 // Created on: 2004-11-22 0002 // Created by: Pavel TELKOV 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 // The original implementation Copyright: (C) RINA S.p.A 0017 0018 // Purpose: This header file collects basic definitions 0019 // to be included in most of sources 0020 0021 #ifndef TObj_Common_HeaderFile 0022 #define TObj_Common_HeaderFile 0023 0024 //! Basic CASCADE definitions 0025 #include <Standard_Transient.hxx> 0026 #include <TCollection_HExtendedString.hxx> 0027 0028 //! Methods inline implementation for HExtendedString 0029 0030 //! Computes a hash code for the given handle referred to extended string, in the range [1, theUpperBound] 0031 //! @param theHExtendedString the handle referred to extended string which hash code is to be computed 0032 //! @param theUpperBound the upper bound of the range a computing hash code must be within 0033 //! @return a computed hash code, in the range [1, theUpperBound] 0034 inline Standard_Integer HashCode (const Handle (TCollection_HExtendedString) & theHExtendedString, 0035 const Standard_Integer theUpperBound) 0036 { 0037 return TCollection_ExtendedString::HashCode (theHExtendedString->String(), theUpperBound); 0038 } 0039 0040 inline Standard_Boolean IsEqual (const Handle(TCollection_HExtendedString)& theStr1, 0041 const Handle(TCollection_HExtendedString)& theStr2) 0042 { 0043 return TCollection_ExtendedString::IsEqual(theStr1->String(),theStr2->String()); 0044 } 0045 0046 #endif 0047 0048 #ifdef _MSC_VER 0049 #pragma once 0050 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |