#include <SparseVector.h>
Public Member Functions | |
| int | get () const |
| int | get (double &val) const |
| double | get_val () const |
| void | next () |
| SparseVectorIter (const SparseVector &sv) | |
| bool | valid () const |
Private Attributes | |
| int | index |
| const SparseVector & | s |
Definition at line 199 of file SparseVector.h.
| isam::SparseVectorIter::SparseVectorIter | ( | const SparseVector & | sv | ) | [inline] |
Iterator for SparseVector.
| sv | SparseVector. |
Definition at line 207 of file SparseVector.h.
| int isam::SparseVectorIter::get | ( | ) | const [inline] |
Get current element index.
Definition at line 221 of file SparseVector.h.
| int isam::SparseVectorIter::get | ( | double & | val | ) | const [inline] |
Get current element index and value.
| val | Current element value returned. |
Definition at line 232 of file SparseVector.h.
| double isam::SparseVectorIter::get_val | ( | ) | const [inline] |
Get current element value.
Definition at line 242 of file SparseVector.h.
| void isam::SparseVectorIter::next | ( | ) | [inline] |
Go to next element.
Definition at line 250 of file SparseVector.h.
| bool isam::SparseVectorIter::valid | ( | ) | const [inline] |
Check if current element valid, ie. if we have not reached the end yet.
Definition at line 213 of file SparseVector.h.
int isam::SparseVectorIter::index [private] |
Definition at line 201 of file SparseVector.h.
const SparseVector& isam::SparseVectorIter::s [private] |
Definition at line 200 of file SparseVector.h.