|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <groundable.h>
Public Member Functions | |
| groundable ()=default | |
| groundable (const std::shared_ptr< TermType > &grounded) | |
| groundable (const std::shared_ptr< Variable > &variable) | |
| TermPtr | operator* () const |
| TermPtr | operator() () const |
| Term * | operator-> () const |
| groundable & | operator= (const std::shared_ptr< TermType > &grounded) |
| groundable & | operator= (const std::shared_ptr< Variable > &variable) |
| operator bool () const | |
| TermPtr | get () const |
| void | set_grounded (const std::shared_ptr< TermType > &grounded) |
| void | set_variable (const std::shared_ptr< Variable > &variable) |
| bool | has_grounding () const |
| bool | has_variable () const |
| auto | grounded () const |
| auto | variable () const |
| groundable ()=default | |
| groundable (const std::shared_ptr< TermType > &grounded) | |
| groundable (const std::shared_ptr< Variable > &variable) | |
| TermPtr | operator* () const |
| TermPtr | operator() () const |
| Term * | operator-> () const |
| groundable & | operator= (const std::shared_ptr< TermType > &grounded) |
| groundable & | operator= (const std::shared_ptr< Variable > &variable) |
| operator bool () const | |
| TermPtr | get () const |
| void | set_grounded (const std::shared_ptr< TermType > &grounded) |
| void | set_variable (const std::shared_ptr< Variable > &variable) |
| bool | has_grounding () const |
| bool | has_variable () const |
| auto | grounded () const |
| auto | variable () const |
Static Public Member Functions | |
| static groundable< TermType > | cast (const TermPtr &term) |
| static groundable< TermType > | cast (const TermPtr &term) |
Protected Attributes | |
| std::shared_ptr< TermType > | grounded_ |
| std::shared_ptr< Variable > | variable_ |
An interface for groundable terms that have either a particular term type or are a variable.
| TermType | the term type. |
Definition at line 20 of file groundable.h.
|
default |
|
inlineexplicit |
|
inlineexplicit |
|
default |
|
inlineexplicit |
| grounded | a grounding. |
Definition at line 27 of file groundable.h.
|
inlineexplicit |
| variable | a variable. |
Definition at line 32 of file groundable.h.
|
inlinestatic |
Cast a term to a groundable term.
| term | a term. |
Definition at line 114 of file groundable.h.
|
inlinestatic |
Cast a term to a groundable term.
| term | a term. |
Definition at line 114 of file groundable.h.
|
inline |
|
inline |
Definition at line 69 of file groundable.h.
|
inline |
Definition at line 102 of file groundable.h.
|
inline |
Definition at line 102 of file groundable.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Toggle the state of this groundable to "grounded" and assign the grounding.
| grounded | a grounding. |
Definition at line 53 of file groundable.h.
|
inline |
Toggle the state of this groundable to "grounded" and assign the grounding.
| grounded | a grounding. |
Definition at line 53 of file groundable.h.
|
inline |
Toggle the state of this groundable to "variable" and assign the variable.
| variable | a variable. |
Definition at line 59 of file groundable.h.
|
inline |
Toggle the state of this groundable to "variable" and assign the variable.
| variable | a variable. |
Definition at line 59 of file groundable.h.
|
inline |
Toggle the state of this groundable to "grounded" and assign the grounding.
| grounded | a grounding. |
Definition at line 81 of file groundable.h.
|
inline |
Toggle the state of this groundable to "grounded" and assign the grounding.
| grounded | a grounding. |
Definition at line 81 of file groundable.h.
|
inline |
Toggle the state of this groundable to "variable" and assign the variable.
| variable | a variable. |
Definition at line 87 of file groundable.h.
|
inline |
Toggle the state of this groundable to "variable" and assign the variable.
| variable | a variable. |
Definition at line 87 of file groundable.h.
|
inline |
Definition at line 107 of file groundable.h.
|
inline |
Definition at line 107 of file groundable.h.
|
protected |
Definition at line 127 of file groundable.h.
|
protected |
Definition at line 128 of file groundable.h.