knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
CompoundFormula.h
Go to the documentation of this file.
1
/*
2
* This file is part of KnowRob, please consult
3
* https://github.com/knowrob/knowrob for license details.
4
*/
5
6
#ifndef KNOWROB_COMPOUND_FORMULA_H_
7
#define KNOWROB_COMPOUND_FORMULA_H_
8
9
#include <ostream>
10
#include <vector>
11
#include "knowrob/terms/Term.h"
12
#include <knowrob/formulas/Formula.h>
13
14
namespace
knowrob
{
18
class
CompoundFormula :
public
Formula {
19
public
:
24
CompoundFormula
(
FormulaType
type
,
const
std::vector<FormulaPtr> &
formulae
);
25
26
virtual
~CompoundFormula
() =
default
;
27
31
const
std::vector<FormulaPtr> &
formulae
()
const
{
return
formulae_
; }
32
36
virtual
const
char
*
operator_symbol
()
const
= 0;
37
38
// Override Printable
39
void
write
(std::ostream &os)
const override
;
40
41
protected
:
42
const
std::vector<FormulaPtr>
formulae_
;
43
44
bool
isGround1
()
const
;
45
};
46
}
47
48
#endif
//KNOWROB_COMPOUND_FORMULA_H_
knowrob::CompoundFormula::formulae
const std::vector< FormulaPtr > & formulae() const
Definition:
CompoundFormula.h:31
knowrob::CompoundFormula::operator_symbol
virtual const char * operator_symbol() const =0
knowrob::CompoundFormula::~CompoundFormula
virtual ~CompoundFormula()=default
knowrob::CompoundFormula::formulae_
const std::vector< FormulaPtr > formulae_
Definition:
CompoundFormula.h:42
knowrob::CompoundFormula::isGround1
bool isGround1() const
knowrob::CompoundFormula::write
void write(std::ostream &os) const override
knowrob::CompoundFormula::CompoundFormula
CompoundFormula(FormulaType type, const std::vector< FormulaPtr > &formulae)
knowrob::Formula::type
FormulaType type() const
Definition:
Formula.h:52
knowrob
Definition:
DataSource.h:13
knowrob::FormulaType
FormulaType
Definition:
Formula.h:17
include
knowrob
formulas
CompoundFormula.h
Generated by
1.9.1