mesh_conv::MC_v3d_vector_less Class Reference

Comparator class for set and map of MC_v3d_vector. More...

#include <MC_v3d_vector.hpp>

List of all members.

Public Member Functions

bool operator() (const MC_v3d_vector &v0, const MC_v3d_vector &v1) const

Detailed Description

Comparator class for set and map of MC_v3d_vector.

Definition at line 444 of file MC_v3d_vector.hpp.


Member Function Documentation

bool mesh_conv::MC_v3d_vector_less::operator() ( const MC_v3d_vector v0,
const MC_v3d_vector v1 
) const [inline]

Definition at line 447 of file MC_v3d_vector.hpp.

References mesh_conv::MC_v3d_vector::size().

00448         {
00449             MC_v3d_less L;
00450             if(v0.size()<v1.size())
00451                 return true;
00452             else if(v0.size()>v1.size())
00453                 return false;
00454             else //equal size compare by values
00455             {
00456                 int N=v0.size();
00457                 for(int k=0;k<N;++k)
00458                 {
00459                     if(L(v0[k],v1[k])==true)
00460                         return true;
00461                     else if(L(v1[k],v0[k])==true)
00462                         return false;
00463                 }
00464                 //complete equality
00465                 return false;
00466             }
00467         }

Here is the call graph for this function:


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

Generated on Sun Apr 18 20:24:48 2010 by  doxygen 1.6.1