35 #ifndef _BLAZE_MATH_ADAPTORS_SYMMETRICMATRIX_SHAREDVALUE_H_
36 #define _BLAZE_MATH_ADAPTORS_SYMMETRICMATRIX_SHAREDVALUE_H_
43 #include <boost/shared_ptr.hpp>
67 template<
typename Type >
145 template<
typename Type >
159 template<
typename Type >
161 : value_( new Type( value ) )
179 template<
typename Type >
183 value_.reset(
new Type() );
194 template<
typename Type >
198 value_.reset(
new Type() );
217 template<
typename Type >
236 template<
typename T1,
typename T2 >
239 template<
typename T1,
typename T2 >
253 template<
typename T1,
typename T2 >
256 return ( lhs.
base() == rhs.
base() );
269 template<
typename T1,
typename T2 >
272 return ( lhs.
base() != rhs.
base() );
288 template<
typename Type >
289 inline bool isDefault(
const SharedValue<Type>& value );
304 template<
typename Type >
#define BLAZE_CONSTRAINT_MUST_NOT_BE_CONST(T)
Constraint on the data type.In case the given data type is a const-qualified type, a compilation error is created.
Definition: Const.h:116
Type & Reference
Reference to the shared value.
Definition: SharedValue.h:73
const Type * ConstPointer
Pointer-to-const to the shared value.
Definition: SharedValue.h:76
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE(T)
Constraint on the data type.In case the given data type is a volatile-qualified type, a compilation error is created.
Definition: Volatile.h:116
Type * Pointer
Pointer to the shared value.
Definition: SharedValue.h:75
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_POINTER_TYPE(T)
Constraint on the data type.In case the given data type T is not a pointer type, a compilation error ...
Definition: Pointer.h:116
Constraint on the data type.
SharedValue()
Default constructor for a SharedValue.
Definition: SharedValue.h:146
Pointer base() const
Low-level access to the underlying, shared value.
Definition: SharedValue.h:218
void * operator&() const
Address operator (private & undefined)
Constraint on the data type.
boost::shared_ptr< Type > value_
The shared value.
Definition: SharedValue.h:111
#define BLAZE_CONSTRAINT_MUST_NOT_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:116
BLAZE_ALWAYS_INLINE bool isDefault(const NonNumericProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: NonNumericProxy.h:874
Constraint on the data type.
Header file for the move shim.
Type ValueType
Type of the shared value.
Definition: SharedValue.h:72
Value shared among several positions within a symmetric matrix.The SharedValue class template represe...
Definition: SharedValue.h:68
bool operator==(const NegativeAccuracy< A > &lhs, const T &rhs)
Equality comparison between a NegativeAccuracy object and a floating point value. ...
Definition: Accuracy.h:249
bool operator!=(const NegativeAccuracy< A > &lhs, const T &rhs)
Inequality comparison between a NegativeAccuracy object and a floating point value.
Definition: Accuracy.h:289
const Type & ConstReference
Reference-to-const to the shared value.
Definition: SharedValue.h:74
Reference operator*()
Direct access to the shared value.
Definition: SharedValue.h:180