knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::GraphTerm Class Referenceabstract

#include <GraphTerm.h>

Inheritance diagram for knowrob::GraphTerm:
Collaboration diagram for knowrob::GraphTerm:

Public Member Functions

virtual ~GraphTerm ()=default
 
bool isPattern () const
 
bool isBuiltin () const
 
auto termType () const
 
virtual void write (std::ostream &os) const =0
 
virtual ~GraphTerm ()=default
 
bool isPattern () const
 
bool isBuiltin () const
 
auto termType () const
 
virtual void write (std::ostream &os) const =0
 
- Public Member Functions inherited from knowrob::Printable
virtual ~Printable ()=default
 
virtual std::string format () const
 
virtual ~Printable ()=default
 
virtual std::string format () const
 

Protected Member Functions

 GraphTerm (GraphTermType termType)
 
 GraphTerm (GraphTermType termType)
 

Protected Attributes

GraphTermType termType_
 

Friends

class GraphQuery
 

Detailed Description

A term in a graph query.

Definition at line 26 of file GraphTerm.h.

Constructor & Destructor Documentation

◆ ~GraphTerm() [1/2]

virtual knowrob::GraphTerm::~GraphTerm ( )
virtualdefault

◆ GraphTerm() [1/2]

knowrob::GraphTerm::GraphTerm ( GraphTermType  termType)
inlineexplicitprotected

Definition at line 50 of file GraphTerm.h.

50 : termType_(termType) {}
auto termType() const
Definition: GraphTerm.h:43
GraphTermType termType_
Definition: GraphTerm.h:48

◆ ~GraphTerm() [2/2]

virtual knowrob::GraphTerm::~GraphTerm ( )
virtualdefault

◆ GraphTerm() [2/2]

knowrob::GraphTerm::GraphTerm ( GraphTermType  termType)
inlineexplicitprotected

Definition at line 50 of file GraphTerm.h.

50 : termType_(termType) {}

Member Function Documentation

◆ isBuiltin() [1/2]

bool knowrob::GraphTerm::isBuiltin ( ) const
inline
Returns
true if the term is a builtin term.

Definition at line 38 of file GraphTerm.h.

◆ isBuiltin() [2/2]

bool knowrob::GraphTerm::isBuiltin ( ) const
inline
Returns
true if the term is a builtin term.

Definition at line 38 of file GraphTerm.h.

38 { return termType_ == GraphTermType::Builtin; }

◆ isPattern() [1/2]

bool knowrob::GraphTerm::isPattern ( ) const
inline
Returns
true if the term is a pattern term.

Definition at line 33 of file GraphTerm.h.

◆ isPattern() [2/2]

bool knowrob::GraphTerm::isPattern ( ) const
inline
Returns
true if the term is a pattern term.

Definition at line 33 of file GraphTerm.h.

33 { return termType_ == GraphTermType::Pattern; }

◆ termType() [1/2]

auto knowrob::GraphTerm::termType ( ) const
inline
Returns
the type of this graph term.

Definition at line 43 of file GraphTerm.h.

43 { return termType_; }

◆ termType() [2/2]

auto knowrob::GraphTerm::termType ( ) const
inline
Returns
the type of this graph term.

Definition at line 43 of file GraphTerm.h.

43 { return termType_; }

◆ write() [1/2]

virtual void knowrob::GraphTerm::write ( std::ostream &  os) const
pure virtual

◆ write() [2/2]

virtual void knowrob::GraphTerm::write ( std::ostream &  os) const
pure virtual

Friends And Related Function Documentation

◆ GraphQuery

GraphQuery
friend

Definition at line 52 of file GraphTerm.h.

Member Data Documentation

◆ termType_

GraphTermType knowrob::GraphTerm::termType_
protected

Definition at line 48 of file GraphTerm.h.


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