souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions | Private Attributes
souffle::RelationWrapper< RelType >::iterator_wrapper Class Reference
Inheritance diagram for souffle::RelationWrapper< RelType >::iterator_wrapper:
Inheritance graph
Collaboration diagram for souffle::RelationWrapper< RelType >::iterator_wrapper:
Collaboration graph

Public Member Functions

iterator_baseclone () const override
 
 iterator_wrapper (uint32_t arg_id, const Relation *rel, typename RelType::iterator arg_it)
 
tupleoperator* () override
 
void operator++ () override
 

Protected Member Functions

bool equal (const iterator_base &o) const override
 

Private Attributes

RelType::iterator it
 
const Relationrelation
 
tuple t
 

Detailed Description

template<class RelType>
class souffle::RelationWrapper< RelType >::iterator_wrapper

Definition at line 96 of file CompiledSouffle.h.

Constructor & Destructor Documentation

◆ iterator_wrapper()

template<class RelType >
souffle::RelationWrapper< RelType >::iterator_wrapper::iterator_wrapper ( uint32_t  arg_id,
const Relation rel,
typename RelType::iterator  arg_it 
)
inline

Definition at line 102 of file CompiledSouffle.h.

108  {

Member Function Documentation

◆ clone()

template<class RelType >
iterator_base* souffle::RelationWrapper< RelType >::iterator_wrapper::clone ( ) const
inlineoverride

Definition at line 114 of file CompiledSouffle.h.

119  :
120  RelationWrapper(uint32_t id, RelType& r, SouffleProgram& p, std::string name, const AttrStrSeq& t,

◆ equal()

template<class RelType >
bool souffle::RelationWrapper< RelType >::iterator_wrapper::equal ( const iterator_base o) const
inlineoverrideprotected

Definition at line 119 of file CompiledSouffle.h.

119  :
120  RelationWrapper(uint32_t id, RelType& r, SouffleProgram& p, std::string name, const AttrStrSeq& t,
122  : relation(r), program(p), name(std::move(name)), attrTypes(t), attrNames(n), id(id),

◆ operator*()

template<class RelType >
tuple& souffle::RelationWrapper< RelType >::iterator_wrapper::operator* ( )
inlineoverride

Definition at line 107 of file CompiledSouffle.h.

108  {
109  return new iterator_wrapper(*this);
110  }
111 
112  protected:
113  bool equal(const iterator_base& o) const override {

◆ operator++()

template<class RelType >
void souffle::RelationWrapper< RelType >::iterator_wrapper::operator++ ( )
inlineoverride

Definition at line 104 of file CompiledSouffle.h.

108  {

Field Documentation

◆ it

template<class RelType >
RelType::iterator souffle::RelationWrapper< RelType >::iterator_wrapper::it
private

Definition at line 97 of file CompiledSouffle.h.

◆ relation

template<class RelType >
const Relation* souffle::RelationWrapper< RelType >::iterator_wrapper::relation
private

Definition at line 98 of file CompiledSouffle.h.

◆ t

template<class RelType >
tuple souffle::RelationWrapper< RelType >::iterator_wrapper::t
private

Definition at line 99 of file CompiledSouffle.h.


The documentation for this class was generated from the following file:
souffle::RelationWrapper::attrTypes
AttrStrSeq attrTypes
Definition: CompiledSouffle.h:90
souffle::RelationWrapper::AttrStrSeq
std::array< const char *, Arity > AttrStrSeq
Definition: CompiledSouffle.h:84
souffle::RelationWrapper::program
SouffleProgram & program
Definition: CompiledSouffle.h:88
souffle::RelationWrapper::iterator_wrapper::equal
bool equal(const iterator_base &o) const override
Definition: CompiledSouffle.h:119
souffle::RelationWrapper::iterator_wrapper::iterator_wrapper
iterator_wrapper(uint32_t arg_id, const Relation *rel, typename RelType::iterator arg_it)
Definition: CompiledSouffle.h:102
souffle::RelationWrapper::id
const uint32_t id
Definition: CompiledSouffle.h:92
n
var n
Definition: htmlJsChartistMin.h:15
souffle::RelationWrapper::attrNames
AttrStrSeq attrNames
Definition: CompiledSouffle.h:91
o
var o
Definition: htmlJsChartistMin.h:15
souffle::RelationWrapper::numAuxAttribs
const arity_type numAuxAttribs
Definition: CompiledSouffle.h:93
souffle::RelationWrapper::name
std::string name
Definition: CompiledSouffle.h:89
iterator_base
souffle::RelationWrapper::iterator_wrapper::relation
const Relation * relation
Definition: CompiledSouffle.h:98
souffle::RelationWrapper::RelationWrapper
RelationWrapper(uint32_t id, RelType &r, SouffleProgram &p, std::string name, const AttrStrSeq &t, const AttrStrSeq &n, arity_type numAuxAttribs)
Definition: CompiledSouffle.h:126
std
Definition: Brie.h:3053
souffle::Relation::arity_type
uint32_t arity_type
Definition: SouffleInterface.h:51
souffle::RelationWrapper::iterator_wrapper::t
tuple t
Definition: CompiledSouffle.h:99
p
a horizontalBars(j=m=void 0===a.axisX.type?new c.AutoScaleAxis(c.Axis.units.x, b.normalized.series, o, c.extend({}, a.axisX,{highLow:d, referenceValue:0})):a.axisX.type.call(c, c.Axis.units.x, b.normalized.series, o, c.extend({}, a.axisX,{highLow:d, referenceValue:0})), l=n=void 0===a.axisY.type?new c.StepAxis(c.Axis.units.y, b.normalized.series, o,{ticks:k}):a.axisY.type.call(c, c.Axis.units.y, b.normalized.series, o, a.axisY)) var p
Definition: htmlJsChartistMin.h:15