|
CeresEngine 0.2.0
A game development framework
|
#include <CeresEngine/Reflection/TypeInfo.hpp>
Public Member Functions | |
| virtual Box | get (const Box &target, size_t index) const =0 |
Gets the element at index position on target by using operator[]. | |
| virtual void | set (const Box &target, size_t index, Box &&value) const =0 |
Sets the element at index position on target by using operator[]. | |
Protected Member Functions | |
| ~IndexableTypeTrait ()=default | |
|
protecteddefault |
|
pure virtual |
Gets the element at index position on target by using operator[].
This returns the value equivalent by calling target[index]. If possible, a reference should be returned.
Can be nullptr if the operation is not supported.
Implemented in CeresEngine::impl::TIndexableTypeTrait< T >.
|
pure virtual |
Sets the element at index position on target by using operator[].
This returns the value equivalent by calling target[index] = value.
Can be nullptr if the operation is not supported.
Implemented in CeresEngine::impl::TIndexableTypeTrait< T >.