Back to index

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

#include <NMTDS_Pair.hxx>

Inheritance diagram for NMTDS_Pair:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Standard_EXPORT NMTDS_Pair ()
virtual Standard_EXPORT ~NMTDS_Pair ()
Standard_EXPORT NMTDS_Pair (const NMTDS_Pair &Other)
Standard_EXPORT NMTDS_Pairoperator= (const NMTDS_Pair &Other)
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_Integer myId1
Standard_Integer myId2

Detailed Description

Definition at line 38 of file NMTDS_Pair.hxx.


Constructor & Destructor Documentation

Definition at line 45 of file NMTDS_Pair.cxx.

{
  Clear(); 
}

Here is the call graph for this function:

NMTDS_Pair::~NMTDS_Pair ( ) [virtual]

Definition at line 72 of file NMTDS_Pair.cxx.

{
}
NMTDS_Pair::NMTDS_Pair ( const NMTDS_Pair Other)

Definition at line 53 of file NMTDS_Pair.cxx.

{
  myId1=aOther.myId1;
  myId2=aOther.myId2;
}

Member Function Documentation

Definition at line 79 of file NMTDS_Pair.cxx.

{
  myId1=0;
  myId2=0;
}

Here is the caller graph for this function:

Standard_Integer NMTDS_Pair::HashCode ( const Standard_Integer  Upper) const

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

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

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_Pair & NMTDS_Pair::operator= ( const NMTDS_Pair Other)

Definition at line 62 of file NMTDS_Pair.cxx.

{
  myId1=aOther.myId1;
  myId2=aOther.myId2;
  return *this;
}
void NMTDS_Pair::SetIds ( const Standard_Integer  aI1,
const Standard_Integer  aI2 
)

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_Integer NMTDS_Pair::myId1 [protected]

Definition at line 70 of file NMTDS_Pair.hxx.

Standard_Integer NMTDS_Pair::myId2 [protected]

Definition at line 71 of file NMTDS_Pair.hxx.


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