Lumiera  0.pre.03
»edityourfreedom«
GenNode::IDComparator Struct Reference

#include "lib/diff/gen-node.hpp"

Description

allow for storage in ordered containers, ordering based on the human-readable ID within the GenNode.

Warning
this constitutes a weaker equivalence than given by the equality comparison (operator==), since GenNode::ID is an EntryID, which also includes the type parameter into the identity (hash). This means, two GenNodes with different real payload type but same ID symbol will not be equal, but be deemed equivalent by this IDComparator. This can be dangerous when building a set or map based on this comparator.

Definition at line 426 of file gen-node.hpp.

Public Member Functions

bool operator() (GenNode const &left, GenNode const &right) const
 

Member Function Documentation

◆ operator()()

bool operator() ( GenNode const &  left,
GenNode const &  right 
) const
inline

Definition at line 429 of file gen-node.hpp.

References BareEntryID::getSym(), and GenNode::idi.

+ Here is the call graph for this function:
+ Collaboration diagram for GenNode::IDComparator:

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