Warning, /include/opencascade/TDF_IDFilter.lxx is written in an unsupported language. File is not indexed.
0001 // Created by: DAUTRY Philippe
0002 // Copyright (c) 1997-1999 Matra Datavision
0003 // Copyright (c) 1999-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 // ---------------------
0017
0018 // Version: 0.0
0019 //Version Date Purpose
0020 // 0.0 Jun 10 1997 Creation
0021
0022 #include <TDF_Attribute.hxx>
0023
0024 inline Standard_Boolean TDF_IDFilter::IgnoreAll() const
0025 { return myIgnore; }
0026
0027 inline Standard_Boolean TDF_IDFilter::IsKept
0028 (const Standard_GUID& anID) const
0029 { return (myIgnore == myIDMap.Contains(anID)); }
0030 // Ce qui est plus compacte et rapide que:
0031 //Standard_Boolean IsBound = myIDMap.Contains(anID);
0032 // return myIgnore ? IsBound : !IsBound;
0033
0034 inline Standard_Boolean TDF_IDFilter::IsKept
0035 (const Handle(TDF_Attribute)& anAtt) const
0036 { return IsKept(anAtt->ID()); }
0037
0038 inline Standard_Boolean TDF_IDFilter::IsIgnored
0039 (const Standard_GUID& anID) const
0040 { return (myIgnore != myIDMap.Contains(anID)); }
0041
0042 inline Standard_Boolean TDF_IDFilter::IsIgnored
0043 (const Handle(TDF_Attribute)& anAtt) const
0044 { return IsIgnored(anAtt->ID()); }