Back to index

salome-smesh  6.5.0
Classes | Functions
SMDS_MeshElement.cxx File Reference
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMDS_MeshEdge.hxx"
#include "SMDS_MeshFace.hxx"
#include "SMDS_MeshVolume.hxx"
#include "utilities.h"

Go to the source code of this file.


class  SMDS_MeshElement_MyIterator
 Create an iterator which iterate on elements linked with the current element. More...


ostream & operator<< (ostream &OS, const SMDS_MeshElement *ME)
bool operator< (const SMDS_MeshElement &e1, const SMDS_MeshElement &e2)

Function Documentation

bool operator< ( const SMDS_MeshElement &  e1,
const SMDS_MeshElement &  e2 

Definition at line 194 of file SMDS_MeshElement.cxx.

        if(e1.GetType()!=e2.GetType()) return false;
        case SMDSAbs_Node:
                return static_cast<const SMDS_MeshNode &>(e1) <
                        static_cast<const SMDS_MeshNode &>(e2);

        case SMDSAbs_Edge:
                return static_cast<const SMDS_MeshEdge &>(e1) <
                        static_cast<const SMDS_MeshEdge &>(e2);

        case SMDSAbs_Face:
                return static_cast<const SMDS_MeshFace &>(e1) <
                        static_cast<const SMDS_MeshFace &>(e2);

        case SMDSAbs_Volume:
                return static_cast<const SMDS_MeshVolume &>(e1) <
                        static_cast<const SMDS_MeshVolume &>(e2);

        default : MESSAGE("Internal Error");
        return false;
ostream& operator<< ( std::ostream &  OS,
const SMDS_MeshElement *  ME 

Definition at line 61 of file SMDS_MeshElement.cxx.

        return OS;