LpBase::DualExpr::ConstCoeffIt Class Reference

- Main Page
- Modules
- Classes
- Namespaces
- Files
- Related Pages

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
LpBase::DualExpr::ConstCoeffIt Class Reference

## Detailed Description

The iterator iterates over the terms of the expression.

* double s=0;
* for(LpBase::DualExpr::ConstCoeffIt i(e);i!=INVALID;++i)
* s+= *i * dual(i);
*

`#include <lemon/lp_base.h>`

## Public Member Functions
| ConstCoeffIt (const DualExpr &e)
| Sets the iterator to the first term. More...
| operator Row () const
| Convert the iterator to the row of the term.
const Value & | operator* () const
| Returns the coefficient of the term.
ConstCoeffIt & | operator++ ()
| Next term. More...
bool | operator== (Invalid) const
| Equality operator.
bool | operator!= (Invalid) const
| Inequality operator.

## Constructor & Destructor Documentation

ConstCoeffIt | ( | const DualExpr & | e | ) |
| inline

Sets the iterator to the first term of the expression.

## Member Function Documentation

ConstCoeffIt& operator++ | ( |  | ) |
| inline

Assign the iterator to the next term.