Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/BOPDS_DS.lxx is written in an unsupported language. File is not indexed.

0001 // Created by: Peter KURNEV
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #include <BOPDS_Pair.hxx>
0016 
0017 //=======================================================================
0018 // function : InterfVV
0019 // purpose  :
0020 //=======================================================================
0021 inline BOPDS_VectorOfInterfVV& BOPDS_DS::InterfVV()
0022 {
0023   return myInterfVV;
0024 }
0025 
0026 //=======================================================================
0027 // function : InterfVE
0028 // purpose  :
0029 //=======================================================================
0030 inline BOPDS_VectorOfInterfVE& BOPDS_DS::InterfVE()
0031 {
0032   return myInterfVE;
0033 }
0034 
0035 //=======================================================================
0036 // function : InterfVF
0037 // purpose  :
0038 //=======================================================================
0039 inline BOPDS_VectorOfInterfVF& BOPDS_DS::InterfVF()
0040 {
0041   return myInterfVF;
0042 } //=======================================================================
0043 
0044 // function : InterfEE
0045 // purpose  :
0046 //=======================================================================
0047 inline BOPDS_VectorOfInterfEE& BOPDS_DS::InterfEE()
0048 {
0049   return myInterfEE;
0050 }
0051 
0052 //=======================================================================
0053 // function : InterfEF
0054 // purpose  :
0055 //=======================================================================
0056 inline BOPDS_VectorOfInterfEF& BOPDS_DS::InterfEF()
0057 {
0058   return myInterfEF;
0059 }
0060 
0061 //=======================================================================
0062 // function : InterfFF
0063 // purpose  :
0064 //=======================================================================
0065 inline BOPDS_VectorOfInterfFF& BOPDS_DS::InterfFF()
0066 {
0067   return myInterfFF;
0068 }
0069 
0070 //=======================================================================
0071 // function : InterfVZ
0072 // purpose  :
0073 //=======================================================================
0074 inline BOPDS_VectorOfInterfVZ& BOPDS_DS::InterfVZ()
0075 {
0076   return myInterfVZ;
0077 }
0078 
0079 //=======================================================================
0080 // function : InterfEZ
0081 // purpose  :
0082 //=======================================================================
0083 inline BOPDS_VectorOfInterfEZ& BOPDS_DS::InterfEZ()
0084 {
0085   return myInterfEZ;
0086 }
0087 
0088 //=======================================================================
0089 // function : InterfFZ
0090 // purpose  :
0091 //=======================================================================
0092 inline BOPDS_VectorOfInterfFZ& BOPDS_DS::InterfFZ()
0093 {
0094   return myInterfFZ;
0095 }
0096 
0097 //=======================================================================
0098 // function : InterfZZ
0099 // purpose  :
0100 //=======================================================================
0101 inline BOPDS_VectorOfInterfZZ& BOPDS_DS::InterfZZ()
0102 {
0103   return myInterfZZ;
0104 }
0105 
0106 //=======================================================================
0107 // function : NbInterfTypes
0108 // purpose  :
0109 //=======================================================================
0110 inline Standard_Integer BOPDS_DS::NbInterfTypes()
0111 {
0112   return 10;
0113 }
0114 
0115 //=======================================================================
0116 // function : AddInterf
0117 // purpose  :
0118 //=======================================================================
0119 inline Standard_Boolean BOPDS_DS::AddInterf(const Standard_Integer theI1,
0120                                             const Standard_Integer theI2)
0121 {
0122   if (myInterfTB.Add(BOPDS_Pair(theI1, theI2)))
0123   {
0124     myInterfered.Add(theI1);
0125     myInterfered.Add(theI2);
0126     return Standard_True;
0127   }
0128   return Standard_False;
0129 }
0130 
0131 //=======================================================================
0132 // function : HasInterf
0133 // purpose  :
0134 //=======================================================================
0135 inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI) const
0136 {
0137   return myInterfered.Contains(theI);
0138 }
0139 
0140 //=======================================================================
0141 // function : HasInterf
0142 // purpose  :
0143 //=======================================================================
0144 inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI1,
0145                                             const Standard_Integer theI2) const
0146 {
0147   BOPDS_Pair aPK(theI1, theI2);
0148   return myInterfTB.Contains(aPK);
0149 }
0150 
0151 //=======================================================================
0152 // function : Interferences
0153 // purpose  :
0154 //=======================================================================
0155 inline const BOPDS_MapOfPair& BOPDS_DS::Interferences() const
0156 {
0157   return myInterfTB;
0158 }