Proxy that converts assignment operator calls on a Math container into calls of corresponding direct-assignment methods that bypass alias detection.
More...
#include <DirectAssignmentProxy.hpp>
|
| | DirectAssignmentProxy (LValueType &lval) |
| | Constructs a DirectAssignmentProxy instance wrapping the container lvalue lval. More...
|
| |
| | DirectAssignmentProxy (const DirectAssignmentProxy &proxy) |
| | Creates a DirectAssignmentProxy instance that is a copy of proxy. More...
|
| |
| template<typename E > |
| ClosureType & | operator= (const E &e) |
| | Forwards the assignment of e to *this to the wrapped lvalue's assign() method. More...
|
| |
| template<typename E > |
| ClosureType & | operator+= (const E &e) |
| | Forwards the in-place addition of e to *this to the wrapped lvalue's plusAssign() method. More...
|
| |
| template<typename E > |
| ClosureType & | operator-= (const E &e) |
| | Forwards the in-place subtraction of e from *this to the wrapped lvalue's minusAssign() method. More...
|
| |
template<typename C>
class CDPL::Math::DirectAssignmentProxy< C >
Proxy that converts assignment operator calls on a Math container into calls of corresponding direct-assignment methods that bypass alias detection.
- Template Parameters
-
| C | The container type whose closure is wrapped. |
◆ DirectAssignmentProxy() [1/2]
Constructs a DirectAssignmentProxy instance wrapping the container lvalue lval.
- Parameters
-
| lval | The container lvalue to wrap. |
◆ DirectAssignmentProxy() [2/2]
Creates a DirectAssignmentProxy instance that is a copy of proxy.
- Parameters
-
| proxy | The proxy instance to copy. |
◆ operator=()
template<typename C >
template<typename E >
Forwards the assignment of e to *this to the wrapped lvalue's assign() method.
- Template Parameters
-
| E | The source expression type. |
- Parameters
-
- Returns
- A reference to the wrapped lvalue closure.
◆ operator+=()
template<typename C >
template<typename E >
Forwards the in-place addition of e to *this to the wrapped lvalue's plusAssign() method.
- Template Parameters
-
| E | The source expression type. |
- Parameters
-
- Returns
- A reference to the wrapped lvalue closure.
◆ operator-=()
template<typename C >
template<typename E >
Forwards the in-place subtraction of e from *this to the wrapped lvalue's minusAssign() method.
- Template Parameters
-
| E | The source expression type. |
- Parameters
-
| e | The expression to subtract. |
- Returns
- A reference to the wrapped lvalue closure.
The documentation for this class was generated from the following file: