#include <DependencyGraph.h>
A node in a dependency graph labeled with a literal.
Definition at line 16 of file DependencyGraph.h.
◆ DependencyNode() [1/2]
Definition at line 91 of file DependencyGraph.cpp.
const FirstOrderLiteralPtr literal_
const auto & literal() const
◆ DependencyNode() [2/2]
◆ addDependency() [1/2]
void DependencyNode::addDependency |
( |
const std::shared_ptr< DependencyNode > & |
other | ) |
|
Definition at line 96 of file DependencyGraph.cpp.
std::list< std::shared_ptr< DependencyNode > > neighbors_
◆ addDependency() [2/2]
void knowrob::DependencyNode::addDependency |
( |
const std::shared_ptr< DependencyNode > & |
other | ) |
|
◆ literal() [1/2]
const auto& knowrob::DependencyNode::literal |
( |
| ) |
const |
|
inline |
◆ literal() [2/2]
const auto& knowrob::DependencyNode::literal |
( |
| ) |
const |
|
inline |
◆ neighbors() [1/2]
const auto& knowrob::DependencyNode::neighbors |
( |
| ) |
const |
|
inline |
- Returns
- nodes with free variables shared with this node.
Definition at line 38 of file DependencyGraph.h.
◆ neighbors() [2/2]
const auto& knowrob::DependencyNode::neighbors |
( |
| ) |
const |
|
inline |
- Returns
- nodes with free variables shared with this node.
Definition at line 38 of file DependencyGraph.h.
◆ numNeighbors() [1/2]
auto knowrob::DependencyNode::numNeighbors |
( |
| ) |
const |
|
inline |
- Returns
- number of modal nodes with shared free variables.
Definition at line 33 of file DependencyGraph.h.
◆ numNeighbors() [2/2]
auto knowrob::DependencyNode::numNeighbors |
( |
| ) |
const |
|
inline |
- Returns
- number of modal nodes with shared free variables.
Definition at line 33 of file DependencyGraph.h.
◆ numVariables() [1/2]
auto knowrob::DependencyNode::numVariables |
( |
| ) |
const |
|
inline |
- Returns
- number of free variables in this node.
Definition at line 28 of file DependencyGraph.h.
const std::set< std::string_view > & variables() const
◆ numVariables() [2/2]
auto knowrob::DependencyNode::numVariables |
( |
| ) |
const |
|
inline |
◆ variables() [1/2]
const std::set<std::string_view>& knowrob::DependencyNode::variables |
( |
| ) |
const |
|
inline |
- Returns
- the set of variables appearing in literal nodes.
Definition at line 23 of file DependencyGraph.h.
23 {
return literal_->predicate()->variables(); }
◆ variables() [2/2]
const std::set<std::string_view>& knowrob::DependencyNode::variables |
( |
| ) |
const |
|
inline |
- Returns
- the set of variables appearing in literal nodes.
Definition at line 23 of file DependencyGraph.h.
23 {
return literal_->predicate()->variables(); }
◆ DependencyGraph
◆ literal_
◆ neighbors_
std::list< std::shared_ptr< DependencyNode > > knowrob::DependencyNode::neighbors_ |
|
protected |
The documentation for this class was generated from the following files: