
The value is created the first time get is called. This template holds a Creator that is used to initialize the value. The creator is destroyed after its first use. Lazy instantiation may be circumvented by using this template's PtrT constructor.
By default, lazy values perform no cleanup. However, this behavior may be controlled through the Cleanup policy.
| T | the used type | |
| PtrT | the pointer type used for T. Usually either T* or SmartPointer<T>. | |
| Cleanup | the cleanup policy |
Public Types | |
| typedef Creator< T, PtrT > | CreatorT |
Public Member Functions | |
| PtrT | get () |
| LazyValue (CreatorT *c) | |
| LazyValue (PtrT v) | |
| void | setValue (CreatorT *crt) |
| void | setValue (const PtrT &val) |
| ~LazyValue () | |
|
|||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
1.4.3