27 #ifndef CDPL_MATH_DIRECTASSIGNMENTPROXY_HPP
28 #define CDPL_MATH_DIRECTASSIGNMENTPROXY_HPP
47 typedef typename C::ClosureType ClosureType;
62 lvalue(proxy.lvalue) {}
99 lvalue.minusAssign(e);
106 const DirectAssignmentProxy&
operator=(
const DirectAssignmentProxy&);
117 template <
typename C>
129 template <
typename C>
Proxy that converts an assignment to a Math container into the corresponding direct-assignment call o...
Definition: DirectAssignmentProxy.hpp:44
ClosureType & operator-=(const E &e)
Forwards the compound subtraction of e to the wrapped lvalue's direct-minus-assignment method.
Definition: DirectAssignmentProxy.hpp:97
DirectAssignmentProxy(LValueType &lval)
Constructs the proxy wrapping the lvalue lval.
Definition: DirectAssignmentProxy.hpp:54
ClosureType & operator+=(const E &e)
Forwards the compound addition of e to the wrapped lvalue's direct-plus-assignment method.
Definition: DirectAssignmentProxy.hpp:84
ClosureType & operator=(const E &e)
Forwards the assignment of e to the wrapped lvalue's direct-assignment method.
Definition: DirectAssignmentProxy.hpp:71
DirectAssignmentProxy(const DirectAssignmentProxy &proxy)
Copy-constructs the proxy from proxy.
Definition: DirectAssignmentProxy.hpp:61
constexpr unsigned int C
Specifies Carbon.
Definition: AtomType.hpp:92
constexpr unsigned int E
Specifies that the stereocenter has E configuration.
Definition: CIPDescriptor.hpp:96
DirectAssignmentProxy< const C > direct(const C &lvalue)
Convenience factory creating a Math::DirectAssignmentProxy for a const lvalue.
Definition: DirectAssignmentProxy.hpp:118
The namespace of the Chemical Data Processing Library.