Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/TDF_ClosureMode.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     May 26 1997     Creation
0021 
0022 #define DescendantsFlag     1
0023 #define ReferencesFlag      2
0024 //#define DummyFlag      4
0025 
0026 inline void TDF_ClosureMode::Descendants(const Standard_Boolean aStatus)
0027 { myFlags = (aStatus) ? (myFlags | DescendantsFlag) : (myFlags & ~DescendantsFlag);}
0028 
0029 inline Standard_Boolean TDF_ClosureMode::Descendants() const
0030 { return (myFlags & DescendantsFlag) != 0 ; }
0031 
0032 
0033 inline void TDF_ClosureMode::References(const Standard_Boolean aStatus)
0034 { myFlags = (aStatus) ? (myFlags | ReferencesFlag) : (myFlags & ~ReferencesFlag);}
0035 
0036 inline Standard_Boolean TDF_ClosureMode::References() const
0037 { return (myFlags & ReferencesFlag) != 0 ; }
0038