Back to index

salome-geom  6.5.0
Public Member Functions | Protected Attributes
NMTDS_InterfPool Class Reference

#include <NMTDS_InterfPool.hxx>

List of all members.

Public Member Functions

Standard_EXPORT NMTDS_InterfPool ()
virtual Standard_EXPORT ~NMTDS_InterfPool ()
Standard_EXPORT Standard_Boolean Add (const NMTDS_PairBoolean &aPKB, const NMTDS_InterfType aType)
Standard_EXPORT Standard_Boolean Add (const Standard_Integer aInd1, const Standard_Integer aInd2, const NMTDS_InterfType aType)
Standard_EXPORT Standard_Boolean Add (const Standard_Integer aInd1, const Standard_Integer aInd2, const Standard_Boolean bFlag, const NMTDS_InterfType aType)
Standard_EXPORT Standard_Boolean Contains (const NMTDS_PairBoolean &aPKB) const
Standard_EXPORT Standard_Boolean Contains (const Standard_Integer aInd1, const Standard_Integer aInd2) const
Standard_EXPORT const
NMTDS_ListOfPairBoolean
Get () const
Standard_EXPORT const
NMTDS_ListOfPairBoolean
Get (const NMTDS_InterfType aType) const
Standard_EXPORT const
NMTDS_ListOfPairBoolean
Get (const Standard_Integer aInd) const
Standard_EXPORT const
NMTDS_ListOfPairBoolean
Get (const Standard_Integer aInd, const NMTDS_InterfType aType) const
Standard_EXPORT
BOPTools_CArray1OfSSInterference & 
SSInterferences ()
 Returns the reference to array Of F/F interferences

Standard_EXPORT
BOPTools_CArray1OfESInterference & 
ESInterferences ()
 Returns the reference to array Of E/F interferences

Standard_EXPORT
BOPTools_CArray1OfVSInterference & 
VSInterferences ()
 Returns the reference to array Of V/F interferences

Standard_EXPORT
BOPTools_CArray1OfEEInterference & 
EEInterferences ()
 Returns the reference to arrray Of E/E interferences

Standard_EXPORT
BOPTools_CArray1OfVEInterference & 
VEInterferences ()
 Returns the reference to arrray Of V/E interferences

Standard_EXPORT
BOPTools_CArray1OfVVInterference & 
VVInterferences ()
 Returns the reference to arrray Of V/V interferences

Standard_EXPORT void Purge ()

Protected Attributes

NMTDS_MapOfPairBoolean myTable [6]
NMTDS_ListOfPairBoolean myList
Standard_Integer myMaxInd
BOPTools_CArray1OfSSInterference mySSInterferences
BOPTools_CArray1OfESInterference myESInterferences
BOPTools_CArray1OfVSInterference myVSInterferences
BOPTools_CArray1OfEEInterference myEEInterferences
BOPTools_CArray1OfVEInterference myVEInterferences
BOPTools_CArray1OfVVInterference myVVInterferences

Detailed Description

Definition at line 47 of file NMTDS_InterfPool.hxx.


Constructor & Destructor Documentation

Definition at line 39 of file NMTDS_InterfPool.cxx.

{
  myMaxInd=6;
}

Definition at line 47 of file NMTDS_InterfPool.cxx.

{
}

Member Function Documentation

Standard_Boolean NMTDS_InterfPool::Add ( const NMTDS_PairBoolean aPKB,
const NMTDS_InterfType  aType 
)

Definition at line 54 of file NMTDS_InterfPool.cxx.

{
  Standard_Boolean bRet;
  Standard_Integer iType;
  //
  bRet=Standard_False;
  //
  iType=TypeToInteger(aType);
  if (iType>-1 && iType<myMaxInd) {
    bRet=myTable[iType].Add(aPKB);
  }
  return bRet;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Standard_Boolean NMTDS_InterfPool::Add ( const Standard_Integer  aInd1,
const Standard_Integer  aInd2,
const NMTDS_InterfType  aType 
)

Definition at line 72 of file NMTDS_InterfPool.cxx.

{
  NMTDS_PairBoolean aPKB;
  //
  aPKB.SetIds(aInd1, aInd2);
  return Add(aPKB, aType);
}

Here is the call graph for this function:

Standard_Boolean NMTDS_InterfPool::Add ( const Standard_Integer  aInd1,
const Standard_Integer  aInd2,
const Standard_Boolean  bFlag,
const NMTDS_InterfType  aType 
)

Definition at line 85 of file NMTDS_InterfPool.cxx.

{
  NMTDS_PairBoolean aPKB;
  //
  aPKB.SetIds(aInd1, aInd2);
  aPKB.SetFlag(bFlag);
  return Add(aPKB, aType);
}

Here is the call graph for this function:

Standard_Boolean NMTDS_InterfPool::Contains ( const NMTDS_PairBoolean aPKB) const

Definition at line 100 of file NMTDS_InterfPool.cxx.

{
  Standard_Boolean bRet;
  Standard_Integer i;
  //
  for (i=0; i<myMaxInd; ++i) {
    bRet=myTable[i].Contains(aPKB);
    if (bRet) {
      break;
    }
  }
  return bRet;
}

Here is the caller graph for this function:

Standard_Boolean NMTDS_InterfPool::Contains ( const Standard_Integer  aInd1,
const Standard_Integer  aInd2 
) const

Definition at line 117 of file NMTDS_InterfPool.cxx.

{
  NMTDS_PairBoolean aPKB;
  //
  aPKB.SetIds(aInd1, aInd2);
  return Contains(aPKB);
}

Here is the call graph for this function:

BOPTools_CArray1OfEEInterference & NMTDS_InterfPool::EEInterferences ( )

Returns the reference to arrray Of E/E interferences

Definition at line 256 of file NMTDS_InterfPool.cxx.

{
  return myEEInterferences;
}

Here is the caller graph for this function:

BOPTools_CArray1OfESInterference & NMTDS_InterfPool::ESInterferences ( )

Returns the reference to array Of E/F interferences

Definition at line 240 of file NMTDS_InterfPool.cxx.

{
  return myESInterferences;
}

Here is the caller graph for this function:

Definition at line 129 of file NMTDS_InterfPool.cxx.

{
  Standard_Integer i;
  NMTDS_ListOfPairBoolean* pL;
  //
  pL=(NMTDS_ListOfPairBoolean*)&myList;
  pL->Clear();
  //
  for (i=0; i<myMaxInd; ++i) {
    NMTDS_MapIteratorOfMapOfPairBoolean aIt;
    //
    aIt.Initialize(myTable[i]);
    for(; aIt.More(); aIt.Next()) {
      const NMTDS_PairBoolean& aPKB=aIt.Key();
      pL->Append(aPKB);
    }
  }
  return myList;
}

Here is the caller graph for this function:

Definition at line 180 of file NMTDS_InterfPool.cxx.

{
  Standard_Integer iType;
  NMTDS_ListOfPairBoolean* pL;
  //
  pL=(NMTDS_ListOfPairBoolean*)&myList;
  pL->Clear();
  //
  iType=TypeToInteger(aType);
  if (iType>-1 && iType<myMaxInd) {
    NMTDS_MapIteratorOfMapOfPairBoolean aIt;
    //
    aIt.Initialize(myTable[iType]);
    for(; aIt.More(); aIt.Next()) {
      const NMTDS_PairBoolean& aPKB=aIt.Key();
      pL->Append(aPKB);
    }
  }
  return myList;
}

Here is the call graph for this function:

const NMTDS_ListOfPairBoolean & NMTDS_InterfPool::Get ( const Standard_Integer  aInd) const

Definition at line 153 of file NMTDS_InterfPool.cxx.

{
  Standard_Integer i, n1, n2;
  NMTDS_ListOfPairBoolean* pL;
  //
  pL=(NMTDS_ListOfPairBoolean*)&myList;
  pL->Clear();
  //
  for (i=0; i<myMaxInd; ++i) {
    NMTDS_MapIteratorOfMapOfPairBoolean aIt;
    //
    aIt.Initialize(myTable[i]);
    for(; aIt.More(); aIt.Next()) {
      const NMTDS_PairBoolean& aPKB=aIt.Key();
      aPKB.Ids(n1, n2);
      if(n1==aInd || n2==aInd) {
        pL->Append(aPKB);
      }
    }
  }
  return myList;
}

Here is the call graph for this function:

const NMTDS_ListOfPairBoolean & NMTDS_InterfPool::Get ( const Standard_Integer  aInd,
const NMTDS_InterfType  aType 
) const

Definition at line 205 of file NMTDS_InterfPool.cxx.

{
  Standard_Integer n1, n2;
  NMTDS_ListOfPairBoolean *pL, aLPKB;
  NMTDS_ListIteratorOfListOfPairBoolean aIt;
  //
  aLPKB=Get(aType);
  //
  pL=(NMTDS_ListOfPairBoolean*)&myList;
  pL->Clear();
  //
  aIt.Initialize (aLPKB);
  for (; aIt.More(); aIt.Next()) {
    const NMTDS_PairBoolean& aPKB=aIt.Value();
    aPKB.Ids(n1, n2);
    if(n1==aInd || n2==aInd) {
      pL->Append(aPKB);
    }
  }
  return myList;
}

Here is the call graph for this function:

Definition at line 282 of file NMTDS_InterfPool.cxx.

{
#if OCC_VERSION_LARGE > 0x06050200
  myVVInterferences.Purge();
  myVEInterferences.Purge();
  myEEInterferences.Purge();
  myVSInterferences.Purge();
  myESInterferences.Purge();
  mySSInterferences.Purge();
#endif
}

Here is the caller graph for this function:

BOPTools_CArray1OfSSInterference & NMTDS_InterfPool::SSInterferences ( )

Returns the reference to array Of F/F interferences

Definition at line 232 of file NMTDS_InterfPool.cxx.

{
  return mySSInterferences;
}

Here is the caller graph for this function:

BOPTools_CArray1OfVEInterference & NMTDS_InterfPool::VEInterferences ( )

Returns the reference to arrray Of V/E interferences

Definition at line 264 of file NMTDS_InterfPool.cxx.

{
  return myVEInterferences;
}

Here is the caller graph for this function:

BOPTools_CArray1OfVSInterference & NMTDS_InterfPool::VSInterferences ( )

Returns the reference to array Of V/F interferences

Definition at line 248 of file NMTDS_InterfPool.cxx.

{
  return myVSInterferences;
}

Here is the caller graph for this function:

BOPTools_CArray1OfVVInterference & NMTDS_InterfPool::VVInterferences ( )

Returns the reference to arrray Of V/V interferences

Definition at line 272 of file NMTDS_InterfPool.cxx.

{
  return myVVInterferences;
}

Here is the caller graph for this function:


Member Data Documentation

BOPTools_CArray1OfEEInterference NMTDS_InterfPool::myEEInterferences [protected]

Definition at line 116 of file NMTDS_InterfPool.hxx.

BOPTools_CArray1OfESInterference NMTDS_InterfPool::myESInterferences [protected]

Definition at line 114 of file NMTDS_InterfPool.hxx.

Definition at line 111 of file NMTDS_InterfPool.hxx.

Standard_Integer NMTDS_InterfPool::myMaxInd [protected]

Definition at line 112 of file NMTDS_InterfPool.hxx.

BOPTools_CArray1OfSSInterference NMTDS_InterfPool::mySSInterferences [protected]

Definition at line 113 of file NMTDS_InterfPool.hxx.

Definition at line 110 of file NMTDS_InterfPool.hxx.

BOPTools_CArray1OfVEInterference NMTDS_InterfPool::myVEInterferences [protected]

Definition at line 117 of file NMTDS_InterfPool.hxx.

BOPTools_CArray1OfVSInterference NMTDS_InterfPool::myVSInterferences [protected]

Definition at line 115 of file NMTDS_InterfPool.hxx.

BOPTools_CArray1OfVVInterference NMTDS_InterfPool::myVVInterferences [protected]

Definition at line 118 of file NMTDS_InterfPool.hxx.


The documentation for this class was generated from the following files: