Back to index

salome-smesh  6.5.0
Public Member Functions
SMESH_TLink Struct Reference

A sorted pair of nodes. More...

#include <SMESH_TypeDefs.hxx>

Inheritance diagram for SMESH_TLink:
Inheritance graph

List of all members.

Public Member Functions

 SMESH_TLink (const SMDS_MeshNode *n1, const SMDS_MeshNode *n2)
 SMESH_TLink (const NLink &link)
const SMDS_MeshNode * node1 () const
const SMDS_MeshNode * node2 () const

Detailed Description

A sorted pair of nodes.

Definition at line 71 of file SMESH_TypeDefs.hxx.

Constructor & Destructor Documentation

SMESH_TLink::SMESH_TLink ( const SMDS_MeshNode *  n1,
const SMDS_MeshNode *  n2 
) [inline]

Definition at line 73 of file SMESH_TypeDefs.hxx.

                                                                :NLink( n1, n2 )
  { if ( n1->GetID() < n2->GetID() ) std::swap( first, second ); }
SMESH_TLink::SMESH_TLink ( const NLink link) [inline]

Definition at line 75 of file SMESH_TypeDefs.hxx.

                                 :NLink( link )
  { if ( first->GetID() < second->GetID() ) std::swap( first, second ); }

Member Function Documentation

const SMDS_MeshNode* SMESH_TLink::node1 ( ) const [inline]

Definition at line 77 of file SMESH_TypeDefs.hxx.

{ return first; }

Here is the caller graph for this function:

const SMDS_MeshNode* SMESH_TLink::node2 ( ) const [inline]

Definition at line 78 of file SMESH_TypeDefs.hxx.

{ return second; }

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: