SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Handles the case of potentially read-only access to data. More...
#include <rw/lapack/mat.h>
Public Member Functions | |
RWRORef (TypeT &x, bool ro=false) | |
RWRORef< TypeT > & | operator= (TypeT x) |
operator TypeT () |
RWRORef<T> handles the case of potentially read-only access to data. It is used by the RWBandMat<T>, RWSymBandMat<T>, RWUpperTriMat<T>, RWLowerTriMat<T>, and RWTriDiagMat<T> classes, which all contain elements that are explicitly defined as 0 and cannot be changed. If an element defined to be 0 is accessed, the RWRORef<T> is constructed with a reference to a static variable initialized to 0, and information that the reference is read-only.
Builds a reference to x. The parameter ro indicates if the reference should be considered read-only.
RWRORef< TypeT >::operator TypeT | ( | ) | [inline] |
This type conversion operator is invoked by the compiler as necessary to return the value referenced by the class for use as a right-side value. It may have to modify the value as necessary (for example, to take its conjugate).
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.