shape_doc 0.1
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::shape_ssi::dim_cmp< DPoint >

Definition at line 29 of file ssi_dsearch.hpp.


Constructor & Destructor Documentation

dim_cmp ( unsigned  d = 0) [inline]

Definition at line 32 of file ssi_dsearch.hpp.

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

: dim(d) {}; 

Member Function Documentation

dim_cmp next ( ) const [inline]

Definition at line 33 of file ssi_dsearch.hpp.

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

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

{ return dim_cmp((dim+1)%4); };
bool operator() ( const DPoint &  a,
const DPoint &  b 
) const [inline]

Definition at line 35 of file ssi_dsearch.hpp.

References dim_cmp< DPoint >::dim.

{ return    a[dim] < b[dim];    };
bool operator() ( DPoint *const &  a,
DPoint *const &  b 
) const [inline]

Definition at line 34 of file ssi_dsearch.hpp.

References dim_cmp< DPoint >::dim.

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

Member Data Documentation

unsigned dim

Definition at line 31 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: