An EggAsset is an asset that can hatch to its full class.
More...
#include <EggAsset.h>
|
| EggAsset () |
| Default constructor for EggAsset.
|
|
virtual FullClass | hatch (HatchArgs ...)=0 |
| Hatch the egg class so the full class arises. More...
|
|
virtual std::shared_ptr< FullClass > | smartHatch (HatchArgs ...)=0 |
| Like the hatch method but returning the full class as a shared smart pointer. More...
|
|
bool | isEgg () const override |
|
std::string | getLocationString () |
| Obtain asset location string. More...
|
|
template<typename FullClass, typename ... HatchArgs>
class EggAsset< FullClass, HatchArgs >
An EggAsset is an asset that can hatch to its full class.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
- Template Parameters
-
FullClass | The class that the egg can hatch too |
HatchArgs | The arguments that must be provided for the hatch operation to be feasible |
- See also
- Asset
◆ hatch()
template<typename FullClass , typename ... HatchArgs>
virtual FullClass EggAsset< FullClass, HatchArgs >::hatch |
( |
HatchArgs ... |
| ) |
|
|
pure virtual |
Hatch the egg class so the full class arises.
- Returns
- Full class from the egg class
◆ isEgg()
template<typename FullClass , typename ... HatchArgs>
bool EggAsset< FullClass, HatchArgs >::isEgg |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ smartHatch()
template<typename FullClass , typename ... HatchArgs>
virtual std::shared_ptr<FullClass> EggAsset< FullClass, HatchArgs >::smartHatch |
( |
HatchArgs ... |
| ) |
|
|
pure virtual |
Like the hatch method but returning the full class as a shared smart pointer.
- See also
- EggAsset::hatch
The documentation for this class was generated from the following file: