blob: 60988cc7db531fe571a5346dcddb64c3dfd59985 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// File: TDF_IDFilter.lxx
// ---------------------
// Author: DAUTRY Philippe
// <fid@fox.paris1.matra-dtv.fr>
// Copyright: Matra Datavision 1997
// Version: 0.0
// History: Version Date Purpose
// 0.0 Jun 10 1997 Creation
#include <TDF_Attribute.hxx>
inline Standard_Boolean TDF_IDFilter::IgnoreAll() const
{ return myIgnore; }
inline Standard_Boolean TDF_IDFilter::IsKept
(const Standard_GUID& anID) const
{ return (myIgnore == myIDMap.Contains(anID)); }
// Ce qui est plus compacte et rapide que:
//Standard_Boolean IsBound = myIDMap.Contains(anID);
// return myIgnore ? IsBound : !IsBound;
inline Standard_Boolean TDF_IDFilter::IsKept
(const Handle(TDF_Attribute)& anAtt) const
{ return IsKept(anAtt->ID()); }
inline Standard_Boolean TDF_IDFilter::IsIgnored
(const Standard_GUID& anID) const
{ return (myIgnore != myIDMap.Contains(anID)); }
inline Standard_Boolean TDF_IDFilter::IsIgnored
(const Handle(TDF_Attribute)& anAtt) const
{ return IsIgnored(anAtt->ID()); }
|