Optional view of the item in the LinearPool. (Nullable)
More...
#include <linear-pool.hpp>
|
|
constexpr | OptView () noexcept=default |
| | Creates a new null optional view.
|
| template<class U> |
| constexpr | OptView (const View< U > &view) noexcept |
| | Creates a new optional view. (Nullable)
|
| template<class U> |
| constexpr | OptView (const OptView< U > &view) noexcept |
| | Changes the type of the item optional view. (Nullable)
|
|
constexpr | operator bool () noexcept |
| | Returns true if item optional view is not null.
|
|
constexpr | operator const View< T > & () const |
| | Converts optional view to the non-nullable view.
|
|
T * | operator-> () |
| | Optional view item data accessor.
|
|
const T * | operator-> () const |
| | Optional 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.
|
|
bool | isNullChecked () const noexcept |
|
const View< T > & | getView_ () const noexcept |
template<class T>
struct ecsm::OptView< T >
Optional view of the item in the LinearPool. (Nullable)
- Template Parameters
-
| T | type of the item in the linear pool |
See the View<T>.
◆ OptView() [1/2]
template<class T>
template<class U>
|
|
inlineexplicitconstexprnoexcept |
Creates a new optional view. (Nullable)
- Template Parameters
-
| U | is a new type of the item view |
- Parameters
-
◆ OptView() [2/2]
template<class T>
template<class U>
|
|
inlineexplicitconstexprnoexcept |
Changes the type of the item optional view. (Nullable)
Useful in cases where we need to cast item view type.
- Template Parameters
-
| U | is a new type of the item view |
- Parameters
-