#include <BasicLoadable.h>
|
| void | setLoaded (bool loaded) |
| | set if the current object is loaded or not. (use with caution) More...
|
| |
| void | setLoading (bool isLoading) |
| | set if the current object is currently loading (use with caution) More...
|
| |
| virtual void | onLoad () |
| | function to be overloaded to add action during the loading process. More...
|
| |
| virtual void | onUnload () |
| | function to be overloaded to add action during the unloading process. More...
|
| |
| BasicLoadable::BasicLoadable |
( |
| ) |
|
Empty constructor initialized at NOT loaded and NOT loading.
copy constructor
- Parameters
-
| loadable | Another loadable object to be copied. |
| BasicLoadable::~BasicLoadable |
( |
| ) |
|
| bool BasicLoadable::isLoaded |
( |
| ) |
const |
get if the current object is loaded or not
- Returns
- Boolean to know if the current object is loaded or not.
| bool BasicLoadable::isLoading |
( |
| ) |
const |
get if the current object is currently loading
- Returns
- Boolean to know if the current object is loading actually
| void BasicLoadable::load |
( |
| ) |
|
load the object (this function may not be overloaded)
| void BasicLoadable::lock |
( |
| ) |
|
lock the current object to ensure no parallelization of the loading state.
| void BasicLoadable::onLoad |
( |
| ) |
|
|
protectedvirtual |
| void BasicLoadable::onUnload |
( |
| ) |
|
|
protectedvirtual |
copy operator
- Parameters
-
| loadable | another object to be copied. |
- Returns
- reference to this object
| void BasicLoadable::reload |
( |
| ) |
|
if the current object is loaded, unload it and then call load again, if not, this do nothing.
| void BasicLoadable::setLoaded |
( |
bool |
loaded | ) |
|
|
protected |
set if the current object is loaded or not. (use with caution)
- Parameters
-
| loaded | Boolean to set if the current object is loaded or not. |
| void BasicLoadable::setLoading |
( |
bool |
isLoading | ) |
|
|
protected |
set if the current object is currently loading (use with caution)
- Parameters
-
| isLoading | if the current object is loading or not. |
| void BasicLoadable::unload |
( |
| ) |
|
unload this object (this function may not be overloaded)
| void BasicLoadable::unlock |
( |
| ) |
|
unlock the current object to permit parallelization of the loading state.
The documentation for this class was generated from the following files: