Regina Calculation Engine
|
A Property storage policy indicating that the property should be held by value. More...
#include <utilities/property.h>
Public Member Functions | |
void | clear () |
Cleans up any currently held value before the property value is changed or cleared. More... | |
void | swap (StoreValue< T > &other) |
Swaps this with the given value. More... | |
Public Attributes | |
const typedef T & | InitType |
The type by which new values for the underlying property are passed. More... | |
const typedef T & | QueryType |
The type by which the property value is returned to the user. More... | |
Protected Attributes | |
T | value_ |
The held property value. More... | |
A Property storage policy indicating that the property should be held by value.
That is, upon assignment or initialisation the underlying value will be copied into the Property wrapper.
The property type T must have a copy assignment operator, and it must also have either a copy constructor and/or a default constructor according to which Property constructors are used.
See the Property class notes for details.