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 assignment operator calls on a Math container into calls of corresponding direct-...
Definition: DirectAssignmentProxy.hpp:44
ClosureType & operator-=(const E &e)
Forwards the in-place subtraction of e from *this to the wrapped lvalue's minusAssign() method.
Definition: DirectAssignmentProxy.hpp:97
DirectAssignmentProxy(LValueType &lval)
Constructs a DirectAssignmentProxy instance wrapping the container lvalue lval.
Definition: DirectAssignmentProxy.hpp:54
ClosureType & operator+=(const E &e)
Forwards the in-place addition of e to *this to the wrapped lvalue's plusAssign() method.
Definition: DirectAssignmentProxy.hpp:84
ClosureType & operator=(const E &e)
Forwards the assignment of e to *this to the wrapped lvalue's assign() method.
Definition: DirectAssignmentProxy.hpp:71
DirectAssignmentProxy(const DirectAssignmentProxy &proxy)
Creates a DirectAssignmentProxy instance that is a copy of 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)
Factory function creating a Math::DirectAssignmentProxy instance for a const lvalue.
Definition: DirectAssignmentProxy.hpp:118
The namespace of the Chemical Data Processing Library.