maliput
NodeCmp< Dimension > Struct Template Reference

Detailed Description

template<std::size_t Dimension>
struct maliput::math::details::NodeCmp< Dimension >

Functor for comparing points according to the given dimension being evaluated at that point.

Template Parameters
DimensionThe dimension of the points.

#include <include/maliput/math/kd_tree.h>

Public Member Functions

 NodeCmp (std::size_t index)
 
template<typename Node >
bool operator() (const Node &lhs, const Node &rhs) const
 Compares two nodes according to the given dimension being evaluated at that point. More...
 

Public Attributes

const std::size_t index_ {}
 

Constructor & Destructor Documentation

◆ NodeCmp()

NodeCmp ( std::size_t  index)

Member Function Documentation

◆ operator()()

bool operator() ( const Node lhs,
const Node rhs 
) const

Compares two nodes according to the given dimension being evaluated at that point.

Template Parameters
NodeThe type of the nodes. It must provide a method get_coordinate() for getting the underlying point.
Parameters
lhsFirst node.
rhsSecond node.

Member Data Documentation

◆ index_

const std::size_t index_ {}

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