yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Minisat::ClauseIterator Class Reference

#include <SolverTypes.h>

+ Collaboration diagram for Minisat::ClauseIterator:

Public Member Functions

 ClauseIterator (const ClauseAllocator &_ca, const CRef *_crefs)
 
void operator++ ()
 
const Clauseoperator* () const
 
bool operator== (const ClauseIterator &ci) const
 
bool operator!= (const ClauseIterator &ci) const
 

Private Attributes

const ClauseAllocatorca
 
const CRefcrefs
 

Detailed Description

Definition at line 293 of file SolverTypes.h.

Constructor & Destructor Documentation

Minisat::ClauseIterator::ClauseIterator ( const ClauseAllocator _ca,
const CRef _crefs 
)
inline

Definition at line 297 of file SolverTypes.h.

297 : ca(_ca), crefs(_crefs){}
const ClauseAllocator & ca
Definition: SolverTypes.h:294

Member Function Documentation

bool Minisat::ClauseIterator::operator!= ( const ClauseIterator ci) const
inline

Definition at line 304 of file SolverTypes.h.

304 { return crefs != ci.crefs; }
const Clause& Minisat::ClauseIterator::operator* ( ) const
inline

Definition at line 300 of file SolverTypes.h.

300 { return ca[*crefs]; }
const ClauseAllocator & ca
Definition: SolverTypes.h:294
void Minisat::ClauseIterator::operator++ ( )
inline

Definition at line 299 of file SolverTypes.h.

299 { crefs++; }
bool Minisat::ClauseIterator::operator== ( const ClauseIterator ci) const
inline

Definition at line 303 of file SolverTypes.h.

303 { return crefs == ci.crefs; }

Field Documentation

const ClauseAllocator& Minisat::ClauseIterator::ca
private

Definition at line 294 of file SolverTypes.h.

const CRef* Minisat::ClauseIterator::crefs
private

Definition at line 295 of file SolverTypes.h.


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