xmsgrid  1.0
xms::idx_pt Class Reference

class for indexing the points More...

Public Types

typedef const bPt result_type
 created to follow boost examples
 

Public Member Functions

 idx_pt (const Pt3d *a_, bool a_2d)
 constructor More...
 
 idx_pt (BSHP< std::vector< Pt3d >> a_, bool a_2d)
 constructor More...
 
result_type operator() (size_t i) const
 operator to return the point location based on an index More...
 

Public Attributes

const Pt3dm_
 array of point locations
 
bool m_2d
 flag specifying 2d searching only
 
BSHP< std::vector< Pt3d > > m_v
 vector of point locations
 

Detailed Description

class for indexing the points

Definition at line 124 of file GmPtSearch.cpp.

Constructor & Destructor Documentation

◆ idx_pt() [1/2]

xms::idx_pt::idx_pt ( const Pt3d a_,
bool  a_2d 
)
inlineexplicit

constructor

Parameters
[in]a_Array of point locations
[in]a_2d2d or 3d points

Definition at line 132 of file GmPtSearch.cpp.

References m_v.

◆ idx_pt() [2/2]

xms::idx_pt::idx_pt ( BSHP< std::vector< Pt3d >>  a_,
bool  a_2d 
)
inlineexplicit

constructor

Parameters
[in]a_Array of point locations
[in]a_2d2d or 3d points

Definition at line 142 of file GmPtSearch.cpp.

Member Function Documentation

◆ operator()()

result_type xms::idx_pt::operator() ( size_t  i) const
inline

operator to return the point location based on an index

Parameters
iindex.
Returns
result_type

Definition at line 152 of file GmPtSearch.cpp.

References m_, m_2d, and m_v.


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