dim_cmp< DPoint > Struct Template Reference

#include <ssi_dsearch.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<class DPoint>
struct mmx::ssi::dim_cmp< DPoint >

Definition at line 99 of file ssi_dsearch.hpp.


Constructor & Destructor Documentation

dim_cmp ( unsigned  d = 0  )  [inline]

Definition at line 102 of file ssi_dsearch.hpp.

Referenced by dim_cmp< DPoint >::next().

00102 : dim(d) {};


Member Function Documentation

dim_cmp next (  )  const [inline]

Definition at line 103 of file ssi_dsearch.hpp.

References dim_cmp< DPoint >::dim, and dim_cmp< DPoint >::dim_cmp().

Referenced by mmx::ssi::make().

00103 { return dim_cmp((dim+1)%4); };

bool operator() ( const DPoint &  a,
const DPoint &  b 
) const [inline]

Definition at line 105 of file ssi_dsearch.hpp.

References dim_cmp< DPoint >::dim.

00105 { return    a[dim] < b[dim];    };

bool operator() ( DPoint *const &  a,
DPoint *const &  b 
) const [inline]

Definition at line 104 of file ssi_dsearch.hpp.

References dim_cmp< DPoint >::dim.

00104 { return (*a)[dim] < (*b)[dim]; };


Member Data Documentation

unsigned dim

Definition at line 101 of file ssi_dsearch.hpp.

Referenced by dim_cmp< DPoint >::next(), and dim_cmp< DPoint >::operator()().


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1