Back to index

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

#include <NMTDS_PairBoolean.hxx>

Inheritance diagram for NMTDS_PairBoolean:
Inheritance graph
[legend]
Collaboration diagram for NMTDS_PairBoolean:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Standard_EXPORT NMTDS_PairBoolean ()
virtual Standard_EXPORT ~NMTDS_PairBoolean ()
Standard_EXPORT void SetFlag (const Standard_Boolean aFlag)
Standard_EXPORT NMTDS_PairBooleanoperator= (const NMTDS_PairBoolean &Other)
Standard_EXPORT Standard_Boolean Flag () const
Standard_EXPORT void Clear ()
Standard_EXPORT void SetIds (const Standard_Integer aI1, const Standard_Integer aI2)
Standard_EXPORT void Ids (Standard_Integer &aI1, Standard_Integer &aI2) const
Standard_EXPORT Standard_Boolean IsEqual (const NMTDS_Pair &aOther) const
Standard_EXPORT Standard_Integer HashCode (const Standard_Integer Upper) const

Protected Attributes

Standard_Boolean myFlag
Standard_Integer myId1
Standard_Integer myId2

Detailed Description

Definition at line 38 of file NMTDS_PairBoolean.hxx.


Constructor & Destructor Documentation

Definition at line 32 of file NMTDS_PairBoolean.cxx.

:
  myFlag(Standard_False),
  NMTDS_Pair()
{
}

Definition at line 42 of file NMTDS_PairBoolean.cxx.

{
}

Member Function Documentation

void NMTDS_Pair::Clear ( ) [inherited]

Definition at line 79 of file NMTDS_Pair.cxx.

{
  myId1=0;
  myId2=0;
}

Here is the caller graph for this function:

Standard_Boolean NMTDS_PairBoolean::Flag ( ) const

Definition at line 67 of file NMTDS_PairBoolean.cxx.

{
  return myFlag;
}

Here is the caller graph for this function:

Standard_Integer NMTDS_Pair::HashCode ( const Standard_Integer  Upper) const [inherited]

Definition at line 125 of file NMTDS_Pair.cxx.

{
  Standard_Integer aSum;
  //
  aSum=0;
  aSum+=NormalizedId(myId1, 2);
  aSum+=NormalizedId(myId2, 2);
  return ::HashCode(aSum, aUpper);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void NMTDS_Pair::Ids ( Standard_Integer &  aI1,
Standard_Integer &  aI2 
) const [inherited]

Definition at line 103 of file NMTDS_Pair.cxx.

{
  aId1=myId1;
  aId2=myId2;
}

Here is the caller graph for this function:

Standard_Boolean NMTDS_Pair::IsEqual ( const NMTDS_Pair aOther) const [inherited]

Definition at line 113 of file NMTDS_Pair.cxx.

{
 
  Standard_Boolean bRet;
  //
  bRet=(myId1==aOther.myId1 && myId2==aOther.myId2);//ZZ
  return bRet;
}

Here is the caller graph for this function:

NMTDS_PairBoolean & NMTDS_PairBoolean::operator= ( const NMTDS_PairBoolean Other)

Definition at line 49 of file NMTDS_PairBoolean.cxx.

{
  myFlag=anOther.myFlag;
  NMTDS_Pair::operator =(anOther);
  return *this;
}
void NMTDS_PairBoolean::SetFlag ( const Standard_Boolean  aFlag)

Definition at line 59 of file NMTDS_PairBoolean.cxx.

{
  myFlag=aFlag;
}

Here is the caller graph for this function:

void NMTDS_Pair::SetIds ( const Standard_Integer  aI1,
const Standard_Integer  aI2 
) [inherited]

Definition at line 88 of file NMTDS_Pair.cxx.

{
  Clear();
  myId1=aId1;
  myId2=aId2;
  if (aId1>aId2) {
    myId1=aId2;
    myId2=aId1;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Standard_Boolean NMTDS_PairBoolean::myFlag [protected]

Definition at line 56 of file NMTDS_PairBoolean.hxx.

Standard_Integer NMTDS_Pair::myId1 [protected, inherited]

Definition at line 70 of file NMTDS_Pair.hxx.

Standard_Integer NMTDS_Pair::myId2 [protected, inherited]

Definition at line 71 of file NMTDS_Pair.hxx.


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