knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::QueryTree::NodeComparator Struct Reference

#include <QueryTree.h>

Public Member Functions

bool operator() (const Node *a, const Node *b) const
 
bool operator() (const Node *a, const Node *b) const
 

Detailed Description

Definition at line 109 of file QueryTree.h.

Member Function Documentation

◆ operator()() [1/2]

bool QueryTree::NodeComparator::operator() ( const Node a,
const Node b 
) const

Definition at line 59 of file QueryTree.cpp.

59  {
60  int priority_a = a->priority();
61  int priority_b = b->priority();
62  if (priority_a != priority_b) {
63  return priority_a < priority_b;
64  } else {
65  return a < b;
66  }
67 }

◆ operator()() [2/2]

bool knowrob::QueryTree::NodeComparator::operator() ( const Node a,
const Node b 
) const

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