knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::reasoner::RetractionEvent Class Reference

#include <ReasonerEvent.h>

Inheritance diagram for knowrob::reasoner::RetractionEvent:
Collaboration diagram for knowrob::reasoner::RetractionEvent:

Public Member Functions

 RetractionEvent (uint32_t numTriples, bool copy=true)
 
 RetractionEvent (uint32_t numTriples, bool copy=true)
 
- Public Member Functions inherited from knowrob::reasoner::TripleEvent
 TripleEvent (Type eventType, uint32_t tripleCount, bool copy=true)
 
auto & triples () const
 
auto & triple (uint32_t index)
 
 TripleEvent (Type eventType, uint32_t tripleCount, bool copy=true)
 
auto & triples () const
 
auto & triple (uint32_t index)
 
- Public Member Functions inherited from knowrob::reasoner::Event
 Event (Type eventType)
 
Type eventType () const
 
 Event (Type eventType)
 
Type eventType () const
 

Additional Inherited Members

- Public Types inherited from knowrob::reasoner::Event
enum  Type {
  Assertion , Retraction , Replacement , Invalidation ,
  Assertion , Retraction , Replacement , Invalidation
}
 
enum  Type {
  Assertion , Retraction , Replacement , Invalidation ,
  Assertion , Retraction , Replacement , Invalidation
}
 
- Protected Attributes inherited from knowrob::reasoner::TripleEvent
std::vector< TriplePtrtriples_
 
- Protected Attributes inherited from knowrob::reasoner::Event
const Type eventType_
 

Detailed Description

An event that contains a set of retractions. These will be removed from the set of inferred triples of this reasoner, and removed from the knowledge base.

Definition at line 99 of file ReasonerEvent.h.

Constructor & Destructor Documentation

◆ RetractionEvent() [1/2]

knowrob::reasoner::RetractionEvent::RetractionEvent ( uint32_t  numTriples,
bool  copy = true 
)
inlineexplicit
Parameters
numTriplesthe number of triples in this event.
copywhether to use std::string (true) or std::string_view (false) for triples.

Definition at line 105 of file ReasonerEvent.h.

106  : TripleEvent(Retraction, numTriples, copy) {}
TripleEvent(Type eventType, uint32_t tripleCount, bool copy=true)

◆ RetractionEvent() [2/2]

knowrob::reasoner::RetractionEvent::RetractionEvent ( uint32_t  numTriples,
bool  copy = true 
)
inlineexplicit
Parameters
numTriplesthe number of triples in this event.
copywhether to use std::string (true) or std::string_view (false) for triples.

Definition at line 105 of file ReasonerEvent.h.

106  : TripleEvent(Retraction, numTriples, copy) {}

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