Static Value-Flow Analysis
Public Member Functions | List of all members
SVF::GenericEdge< NodeTy >::equalGEdge Struct Reference

Add the hash function for std::set (we also can overload operator< to implement this) More...

#include <GenericGraph.h>

Public Member Functions

bool operator() (const GenericEdge< NodeType > *lhs, const GenericEdge< NodeType > *rhs) const
 

Detailed Description

template<class NodeTy>
struct SVF::GenericEdge< NodeTy >::equalGEdge

Add the hash function for std::set (we also can overload operator< to implement this)

Definition at line 110 of file GenericGraph.h.

Member Function Documentation

◆ operator()()

template<class NodeTy >
bool SVF::GenericEdge< NodeTy >::equalGEdge::operator() ( const GenericEdge< NodeType > *  lhs,
const GenericEdge< NodeType > *  rhs 
) const
inline

Definition at line 112 of file GenericGraph.h.

113  {
114  if (lhs->edgeFlag != rhs->edgeFlag)
115  return lhs->edgeFlag < rhs->edgeFlag;
116  else if (lhs->getSrcID() != rhs->getSrcID())
117  return lhs->getSrcID() < rhs->getSrcID();
118  else
119  return lhs->getDstID() < rhs->getDstID();
120  }

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