CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::IndexableTypeTrait Class Referenceabstract

#include <CeresEngine/Reflection/TypeInfo.hpp>

Inheritance diagram for CeresEngine::IndexableTypeTrait:
CeresEngine::impl::TIndexableTypeTrait< T >

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
 

Constructor & Destructor Documentation

◆ ~IndexableTypeTrait()

CeresEngine::IndexableTypeTrait::~IndexableTypeTrait ( )
protecteddefault

Member Function Documentation

◆ get()

virtual Box CeresEngine::IndexableTypeTrait::get ( const Box target,
size_t  index 
) const
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 >.

◆ set()

virtual void CeresEngine::IndexableTypeTrait::set ( const Box target,
size_t  index,
Box &&  value 
) const
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 >.


The documentation for this class was generated from the following file: