SFCGAL  2.3.0
Public Member Functions | List of all members
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. More...
 

Detailed Description

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

Comparison function for sorting constraints by original order.

Member Function Documentation

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