Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Object.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Faro
4{
5 /// @brief Base class for dynamically allocated objects.
6 class IObject
7 {
8 public:
9 virtual ~IObject() = default;
10
11 /// @brief Run the initialization logic of this object. Should be overriden by deriving classes.
12 virtual void Init();
13
14 /**
15 * @brief Run the destruction logic of this class. This also frees its memory.
16 * @warning When overriding, the super call must be performed **last**
17 */
18 virtual void Destroy();
19 };
20}
Base class for dynamically allocated objects.
Definition Object.hpp:7
virtual void Init()
Run the initialization logic of this object. Should be overriden by deriving classes.
Definition Object.cpp:7
virtual ~IObject()=default
virtual void Destroy()
Run the destruction logic of this class. This also frees its memory.
Definition Object.cpp:11
Definition Array.hpp:8