#include <Property.h>
Public Member Functions | |
WriteOnlyProperty ()=delete | |
nonvirtual WriteOnlyProperty & | operator= (ArgByValueType< T > value) |
nonvirtual void | Set (ArgByValueType< T > value) |
nonvirtual void | operator() (ArgByValueType< T > value) |
Implement C#-like syntax for write-only properties (syntactically like data members but backed by a setter function)
Definition at line 209 of file Property.h.
|
delete |
WriteOnlyProperty are NOT movable, nor copy constructible: the data doesn't logically exist in the property itself, but in its relationship to some parent object; if it were copied, it might be copied TO some place that didn't have an appropriate enclosing object.
auto Stroika::Foundation::Common::WriteOnlyProperty< T >::operator= | ( | ArgByValueType< T > | value | ) |
You can assign a value of the underlying type, but we do NOT support operator=(WriteOnlyProperty) because we cannot generically read from a write-only property to copy its value.
Definition at line 82 of file Property.inl.
void Stroika::Foundation::Common::WriteOnlyProperty< T >::Set | ( | ArgByValueType< T > | value | ) |
Alternate syntax for setting the property value.
Definition at line 72 of file Property.inl.
void Stroika::Foundation::Common::WriteOnlyProperty< T >::operator() | ( | ArgByValueType< T > | value | ) |
Alternate syntax for setting the property value.
Definition at line 77 of file Property.inl.