souffle
2.0.2-371-g6315b36
|
Wrapper class for interpreter relations. More...
#include <ProgInterface.h>
Data Structures | |
class | iterator_base |
Iterator wrapper class. More... | |
Public Member Functions | |
iterator | begin () const override |
Iterator to first tuple. More... | |
bool | contains (const tuple &t) const override |
Check whether tuple exists. More... | |
iterator | end () const override |
Iterator to last tuple. More... | |
arity_type | getArity () const override |
Get arity. More... | |
const char * | getAttrName (size_t idx) const override |
Get attribute name. More... | |
const char * | getAttrType (size_t idx) const override |
Get attribute type. More... | |
arity_type | getAuxiliaryArity () const override |
Get arity. More... | |
std::string | getName () const override |
Get name. More... | |
SymbolTable & | getSymbolTable () const override |
Get symbol table. More... | |
void | insert (const tuple &t) override |
Insert tuple. More... | |
void | purge () override |
Eliminate all the tuples in relation. More... | |
RelInterface (RelationWrapper &r, SymbolTable &s, std::string n, std::vector< std::string > t, std::vector< std::string > an, uint32_t i) | |
size_t | size () const override |
Get number of tuples in relation. More... | |
~RelInterface () override=default | |
Public Member Functions inherited from souffle::Relation | |
arity_type | getPrimaryArity () const |
Return the number of non-auxiliary attributes. More... | |
std::string | getSignature () |
Get the signature of a relation. More... | |
virtual | ~Relation ()=default |
Destructor. More... | |
Private Attributes | |
std::vector< std::string > | attrNames |
Attribute Names. More... | |
uint32_t | id |
Unique id for wrapper. More... | |
std::string | name |
Name of relation. More... | |
RelationWrapper & | relation |
Wrapped interpreter relation. More... | |
SymbolTable & | symTable |
Symbol table. More... | |
std::vector< std::string > | types |
Attribute type. More... | |
Additional Inherited Members | |
Public Types inherited from souffle::Relation | |
using | arity_type = uint32_t |
Wrapper class for interpreter relations.
Definition at line 53 of file ProgInterface.h.
|
inline |
Definition at line 61 of file ProgInterface.h.
References souffle::interpreter::RelationWrapper::contains(), souffle::tuple::data, and relation.
|
overridedefault |
|
inlineoverridevirtual |
Iterator to first tuple.
Implements souffle::Relation.
Definition at line 78 of file ProgInterface.h.
|
inlineoverridevirtual |
Check whether tuple exists.
Implements souffle::Relation.
Definition at line 73 of file ProgInterface.h.
|
inlineoverridevirtual |
Iterator to last tuple.
Implements souffle::Relation.
Definition at line 83 of file ProgInterface.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get attribute type.
Implements souffle::Relation.
Definition at line 108 of file ProgInterface.h.
References relation, and souffle::interpreter::RelationWrapper::size().
Referenced by souffle::interpreter::RelInterface::iterator_base::iterator_base().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get symbol table.
Implements souffle::Relation.
Definition at line 103 of file ProgInterface.h.
Referenced by souffle::interpreter::RelInterface::iterator_base::operator++().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Eliminate all the tuples in relation.
Implements souffle::Relation.
Definition at line 125 of file ProgInterface.h.
References souffle::interpreter::RelInterface::iterator_base::it.
|
inlineoverridevirtual |
Get number of tuples in relation.
Implements souffle::Relation.
Definition at line 120 of file ProgInterface.h.
References i, souffle::interpreter::RelInterface::iterator_base::it, souffle::interpreter::RelInterface::iterator_base::iterator_base(), souffle::interpreter::RelInterface::iterator_base::ramRelationInterface, and souffle::interpreter::RelInterface::iterator_base::tup.
|
private |
Attribute Names.
Definition at line 211 of file ProgInterface.h.
|
private |
Unique id for wrapper.
Definition at line 214 of file ProgInterface.h.
|
private |
Name of relation.
Definition at line 205 of file ProgInterface.h.
|
private |
Wrapped interpreter relation.
Definition at line 199 of file ProgInterface.h.
Referenced by getAttrType(), and RelInterface().
|
private |
Symbol table.
Definition at line 202 of file ProgInterface.h.
|
private |
Attribute type.
Definition at line 208 of file ProgInterface.h.