knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <TripleContainer.h>
Public Member Functions | |
TripleViewBatch (uint32_t batchSize) | |
auto | size () const |
void | reset () |
void | add (const TriplePtr &triple) |
ConstGenerator | cgenerator () const override |
MutableGenerator | generator () override |
TripleViewBatch (uint32_t batchSize) | |
auto | size () const |
void | reset () |
void | add (const TriplePtr &triple) |
ConstGenerator | cgenerator () const override |
MutableGenerator | generator () override |
Public Member Functions inherited from knowrob::MutableTripleContainer | |
iterator | begin () |
bool | isMutable () const override |
iterator | begin () |
bool | isMutable () const override |
Public Member Functions inherited from knowrob::TripleContainer | |
virtual | ~TripleContainer ()=default |
iterator | begin () const |
bool | empty () const |
virtual | ~TripleContainer ()=default |
iterator | begin () const |
bool | empty () const |
Protected Attributes | |
std::vector< TriplePtr > | data_ |
uint32_t | batchSize_ |
std::size_t | actualSize_ |
Additional Inherited Members | |
Public Types inherited from knowrob::MutableTripleContainer | |
using | MutableGenerator = std::function< TriplePtr *()> |
using | MutableGenerator = std::function< TriplePtr *()> |
Public Types inherited from knowrob::TripleContainer | |
using | ConstGenerator = std::function< const TriplePtr *()> |
using | ConstGenerator = std::function< const TriplePtr *()> |
Static Public Member Functions inherited from knowrob::MutableTripleContainer | |
static iterator | end () |
static iterator | end () |
Static Public Member Functions inherited from knowrob::TripleContainer | |
static iterator | end () |
static iterator | end () |
A batch of framed triples that attempts to take over ownership of the triples that are added to it.
Definition at line 157 of file TripleContainer.h.
|
explicit |
Definition at line 38 of file TripleContainer.cpp.
|
explicit |
void TripleViewBatch::add | ( | const TriplePtr & | triple | ) |
Adds a triple to the batch, and attempts to take over ownership of the triple. If this fails, a new copy of the triple is created and added to the batch.
triple | a triple. |
Definition at line 42 of file TripleContainer.cpp.
void knowrob::TripleViewBatch::add | ( | const TriplePtr & | triple | ) |
Adds a triple to the batch, and attempts to take over ownership of the triple. If this fails, a new copy of the triple is created and added to the batch.
triple | a triple. |
|
overridevirtual |
Implements knowrob::TripleContainer.
Definition at line 59 of file TripleContainer.cpp.
|
overridevirtual |
Implements knowrob::TripleContainer.
|
overridevirtual |
Implements knowrob::MutableTripleContainer.
Definition at line 66 of file TripleContainer.cpp.
|
overridevirtual |
Implements knowrob::MutableTripleContainer.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 187 of file TripleContainer.h.
|
protected |
Definition at line 186 of file TripleContainer.h.
|
protected |
Definition at line 185 of file TripleContainer.h.