My Project
List of all members | Public Member Functions
LpBase::DualExpr::CoeffIt Class Reference

Detailed Description

The iterator iterates over the terms of the expression.

double s=0;
s+= *i * dual(i);
const Invalid INVALID
Invalid iterators.
Definition: base.cc:32
Iterator over the expression.
Definition: lp_base.h:768

#include <lemon/lp_base.h>

Public Member Functions

 CoeffIt (DualExpr &e)
 Sets the iterator to the first term. More...
 
 operator Row () const
 Convert the iterator to the row of the term.
 
Valueoperator* ()
 Returns the coefficient of the term.
 
const Valueoperator* () const
 Returns the coefficient of the term.
 
CoeffItoperator++ ()
 Next term. More...
 
bool operator== (Invalid) const
 Equality operator.
 
bool operator!= (Invalid) const
 Inequality operator.
 

Constructor & Destructor Documentation

◆ CoeffIt()

CoeffIt ( DualExpr e)
inline

Sets the iterator to the first term of the expression.

Member Function Documentation

◆ operator++()

CoeffIt & operator++ ( )
inline

Assign the iterator to the next term.