|
ECSM v0.7.0
Entity Component System Manager
|
View of the item in the LinearPool. (Non-nullable). More...
#include <linear-pool.hpp>
Public Member Functions | |
| template<class U> | |
| constexpr | View (const View< U > &view) noexcept |
| Changes the type of the item view. | |
| T * | operator-> () |
| View item data accessor. | |
| const T * | operator-> () const |
| View item constant data accessor. | |
| T * | operator* () |
| Returns pointer to the item memory in the pool. | |
| const T * | operator* () const |
| Returns pointer to the constant item memory in the pool. | |
| const std::atomic_uint64_t * | getPoolVersion () const noexcept |
| Returns view parent linear pool version pointer. (Debug only!). | |
| uint64_t | getViewVersion () const noexcept |
| Returns item view version number. (Debug only!). | |
Friends | |
| struct | OptView< T > |
| class | LinearPool< T, true > |
| class | LinearPool< T, false > |
View of the item in the LinearPool. (Non-nullable).
| T | type of the item in the linear pool |
The view provides a way to access the contents of an item within the pool, allowing to inspect or modify its data.
|
inlineexplicitconstexprnoexcept |
Changes the type of the item view.
Useful in cases where we need to cast item view type.
| U | is a new type of the item view |
| [in] | view | target item view |