Regina Calculation Engine
|
A Property storage policy indicating that the property should be held by value.
More...
#include <utilities/property.h>
Public Types | |
typedef const T & | InitType |
The type by which new values for the underlying property are passed. More... | |
typedef const T & | QueryType |
The type by which the property value is returned to the user. More... | |
Public Member Functions | |
StoreValue ()=default | |
Creates an uninitialised property value. More... | |
StoreValue (const StoreValue &)=default | |
Create a clone of the given property value. More... | |
StoreValue & | operator= (const StoreValue &)=default |
Sets this to be a clone of the given property value. More... | |
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... | |
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 default constructor, a copy constructor, and a copy assignment operator.
See the Property class notes for details.
typedef const T& regina::StoreValue< T >::InitType |
The type by which new values for the underlying property are passed.
typedef const T& regina::StoreValue< T >::QueryType |
The type by which the property value is returned to the user.
|
default |
Creates an uninitialised property value.
|
default |
Create a clone of the given property value.
This clones the given property's value, regardless of whether the property is uninitialised and/or unknown.
|
inline |
Cleans up any currently held value before the property value is changed or cleared.
This implementation does nothing.
|
default |
Sets this to be a clone of the given property value.
This clones the given property's value, regardless of whether the property is uninitialised and/or unknown.
|
inline |
Swaps this with the given value.
other | the value to swap with this. |
|
protected |
The held property value.