|
MPQC 3.0.0-alpha
|
Objects of class SCMatrixSubblockIter are used to iterate through the blocks of a matrix. More...
#include <math/scmat/block.h>
Public Types | |
| enum | Access { Read , Write , Accum , None } |
Public Member Functions | |
| SCMatrixSubblockIter (Access access) | |
| The access variable should be one of Read, Write, Accum, and None, with the SCMatrixSubblockIter:: scope operator applied. | |
| virtual void | begin ()=0 |
| Start at the beginning. | |
| virtual int | ready ()=0 |
| Returns nonzero if there is another block. | |
| virtual void | next ()=0 |
| Proceed to the next block. | |
| virtual SCMatrixBlock * | block ()=0 |
| Return the current block. | |
| Access | access () const |
| Return the type of Access allowed for these blocks. | |
Public Member Functions inherited from sc::RefCount | |
| size_t | identifier () const |
| Return the unique identifier for this object that can be compared for different objects of different types. | |
| int | lock_ptr () const |
| Lock this object. | |
| int | unlock_ptr () const |
| Unlock this object. | |
| void | use_locks (bool inVal) |
| start and stop using locks on this object | |
| refcount_t | nreference () const |
| Return the reference count. | |
| refcount_t | reference () |
| Increment the reference count and return the new count. | |
| refcount_t | dereference () |
| Decrement the reference count and return the new count. | |
| int | managed () const |
| Return 1 if the object is managed. Otherwise return 0. | |
Protected Attributes | |
| Access | access_ |
Additional Inherited Members | |
Protected Member Functions inherited from sc::RefCount | |
| RefCount (const RefCount &) | |
| RefCount & | operator= (const RefCount &) |
Objects of class SCMatrixSubblockIter are used to iterate through the blocks of a matrix.
The object must be deleted before using the matrix that owns the blocks that SCMatrixSubblockIter is iterating through.
|
pure virtual |
Start at the beginning.
Implemented in sc::DistSCMatrixListSubblockIter, sc::SCMatrixCompositeSubblockIter, sc::SCMatrixJointSubblockIter, sc::SCMatrixListSubblockIter, sc::SCMatrixNullSubblockIter, and sc::SCMatrixSimpleSubblockIter.
|
pure virtual |
Return the current block.
Implemented in sc::SCMatrixCompositeSubblockIter, sc::SCMatrixJointSubblockIter, sc::SCMatrixListSubblockIter, sc::SCMatrixNullSubblockIter, and sc::SCMatrixSimpleSubblockIter.
|
pure virtual |
Proceed to the next block.
Implemented in sc::DistSCMatrixListSubblockIter, sc::SCMatrixCompositeSubblockIter, sc::SCMatrixJointSubblockIter, sc::SCMatrixListSubblockIter, sc::SCMatrixNullSubblockIter, and sc::SCMatrixSimpleSubblockIter.
|
pure virtual |
Returns nonzero if there is another block.
Implemented in sc::SCMatrixCompositeSubblockIter, sc::SCMatrixJointSubblockIter, sc::SCMatrixListSubblockIter, sc::SCMatrixNullSubblockIter, and sc::SCMatrixSimpleSubblockIter.