souffle  2.0.2-371-g6315b36
Public Member Functions | Private Attributes
souffle::interpreter::RelationWrapper::Iterator Class Reference

The iterator interface. More...

#include <Relation.h>

Collaboration diagram for souffle::interpreter::RelationWrapper::Iterator:
Collaboration graph

Public Member Functions

 Iterator (const Iterator &other)
 
 Iterator (iterator_base *iter)
 
bool operator!= (const Iterator &other) const
 
const RamDomainoperator* ()
 
Iteratoroperator++ ()
 
bool operator== (const Iterator &other) const
 

Private Attributes

Own< iterator_baseiter
 

Detailed Description

The iterator interface.

Other class should use this iterator class to traverse the relation.

Definition at line 90 of file Relation.h.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

souffle::interpreter::RelationWrapper::Iterator::Iterator ( const Iterator other)
inline

Definition at line 94 of file Relation.h.

94 {

◆ Iterator() [2/2]

souffle::interpreter::RelationWrapper::Iterator::Iterator ( iterator_base iter)
inline

Definition at line 95 of file Relation.h.

98 {

Member Function Documentation

◆ operator!=()

bool souffle::interpreter::RelationWrapper::Iterator::operator!= ( const Iterator other) const
inline

Definition at line 110 of file Relation.h.

References souffle::interpreter::RelationWrapper::relName.

◆ operator*()

const RamDomain* souffle::interpreter::RelationWrapper::Iterator::operator* ( )
inline

Definition at line 102 of file Relation.h.

◆ operator++()

Iterator& souffle::interpreter::RelationWrapper::Iterator::operator++ ( )
inline

Definition at line 97 of file Relation.h.

98  {
99  return !(*this == other);
100  }

◆ operator==()

bool souffle::interpreter::RelationWrapper::Iterator::operator== ( const Iterator other) const
inline

Definition at line 106 of file Relation.h.

Field Documentation

◆ iter

Own<iterator_base> souffle::interpreter::RelationWrapper::Iterator::iter
private

Definition at line 91 of file Relation.h.


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