SFCGAL 2.3.0
SFCGAL::detail::ConstraintInfoCompare< Constraint_id > Struct Template Reference

Comparison function for sorting constraints by original order. More...

#include <ConstraintInfo.h>

Public Member Functions

bool operator() (const ConstraintOrderInfo< Constraint_id > &lhs, const ConstraintOrderInfo< Constraint_id > &rhs) const
 Compare two constraint order infos.

Detailed Description

template<typename Constraint_id>
struct SFCGAL::detail::ConstraintInfoCompare< Constraint_id >

Comparison function for sorting constraints by original order.

Member Function Documentation

◆ operator()()

template<typename Constraint_id>
bool SFCGAL::detail::ConstraintInfoCompare< Constraint_id >::operator() ( const ConstraintOrderInfo< Constraint_id > & lhs,
const ConstraintOrderInfo< Constraint_id > & rhs ) const
inline

Compare two constraint order infos.

Parameters
lhsFirst constraint order info
rhsSecond constraint order info
Returns
True if lhs should be ordered before rhs