Version: 6.3.1
Public Member Functions | Data Fields

SMESH.Controls.MultiConnection2D.Value Struct Reference

#include <SMESH_ControlsDef.hxx>

Public Member Functions

 Value (long thePntId1, long thePntId2)
bool operator< (const Value &x) const

Data Fields

long myPntId [2]

Detailed Description

Definition at line 331 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

MultiConnection2D::Value::Value ( long  thePntId1,
long  thePntId2 
)

Definition at line 1853 of file SMESH_Controls.cxx.

{
  myPntId[0] = thePntId1;  myPntId[1] = thePntId2;
  if(thePntId1 > thePntId2){
    myPntId[1] = thePntId1;  myPntId[0] = thePntId2;
  }
}

Member Function Documentation

bool MultiConnection2D::Value::operator< ( const Value x) const

Definition at line 1861 of file SMESH_Controls.cxx.

References SMESH.Controls.MultiConnection2D.Value.myPntId.

                                                                           {
  if(myPntId[0] < x.myPntId[0]) return true;
  if(myPntId[0] == x.myPntId[0])
    if(myPntId[1] < x.myPntId[1]) return true;
  return false;
}

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS