![]() |
Value shared among several positions within a symmetric matrix.The SharedValue class template represents a single value of a symmetric matrix that is shared among several positions within the symmetric matrix. Changes to the value of one position are therefore applied to all positions sharing the same value. More...
#include <SharedValue.h>
Public Types | |
typedef Type | ValueType |
Type of the shared value. | |
typedef Type & | Reference |
Reference to the shared value. | |
typedef const Type & | ConstReference |
Reference-to-const to the shared value. | |
typedef Type * | Pointer |
Pointer to the shared value. | |
typedef const Type * | ConstPointer |
Pointer-to-const to the shared value. | |
Public Member Functions | |
Constructors | |
SharedValue () | |
Default constructor for a SharedValue. | |
SharedValue (const Type &value) | |
Constructor for a SharedValue. More... | |
Access operators | |
Reference | operator* () |
Direct access to the shared value. More... | |
ConstReference | operator* () const |
Direct access to the shared value. More... | |
Utility functions | |
Pointer | base () const noexcept |
Low-level access to the underlying, shared value. More... | |
Private Member Functions | |
Forbidden operations | |
void * | operator& () const |
Address operator (private & undefined) | |
Private Attributes | |
Member variables | |
boost::shared_ptr< Type > | value_ |
The shared value. | |
Value shared among several positions within a symmetric matrix.
The SharedValue class template represents a single value of a symmetric matrix that is shared among several positions within the symmetric matrix. Changes to the value of one position are therefore applied to all positions sharing the same value.
|
inlineexplicit |
Constructor for a SharedValue.
value | The value to be shared. |
This constructor creates a shared value as a copy of the given value.
|
inlinenoexcept |
Low-level access to the underlying, shared value.
|
inline |
Direct access to the shared value.
|
inline |
Direct access to the shared value.