Proxy that converts an assignment to a Math container into the corresponding direct-assignment call on the container (assign / plusAssign / minusAssign) bypassing alias detection.
More...
#include <DirectAssignmentProxy.hpp>
|
| | DirectAssignmentProxy (LValueType &lval) |
| | Constructs the proxy wrapping the lvalue lval. More...
|
| |
| | DirectAssignmentProxy (const DirectAssignmentProxy &proxy) |
| | Copy-constructs the proxy from proxy. More...
|
| |
| template<typename E > |
| ClosureType & | operator= (const E &e) |
| | Forwards the assignment of e to the wrapped lvalue's direct-assignment method. More...
|
| |
| template<typename E > |
| ClosureType & | operator+= (const E &e) |
| | Forwards the compound addition of e to the wrapped lvalue's direct-plus-assignment method. More...
|
| |
| template<typename E > |
| ClosureType & | operator-= (const E &e) |
| | Forwards the compound subtraction of e to the wrapped lvalue's direct-minus-assignment method. More...
|
| |
template<typename C>
class CDPL::Math::DirectAssignmentProxy< C >
Proxy that converts an assignment to a Math container into the corresponding direct-assignment call on the container (assign / plusAssign / minusAssign) bypassing alias detection.
- Template Parameters
-
| C | The container type whose closure is wrapped. |
◆ DirectAssignmentProxy() [1/2]
Constructs the proxy wrapping the lvalue lval.
- Parameters
-
| lval | The container lvalue to wrap. |
◆ DirectAssignmentProxy() [2/2]
Copy-constructs the proxy from proxy.
- Parameters
-
◆ operator=()
template<typename C >
template<typename E >
Forwards the assignment of e to the wrapped lvalue's direct-assignment 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 compound addition of e to the wrapped lvalue's direct-plus-assignment 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 compound subtraction of e to the wrapped lvalue's direct-minus-assignment 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: