MarlinMT
0.1.0
|
MemLayout base class to store booked objects in MarlinMT. More...
#include <MemLayout.h>
Inherited by marlinmt::book::SharedMemLayout< T, MERGE, Args_t >, and marlinmt::book::SingleMemLayout< T, Args_t >.
Public Member Functions | |
template<typename T > | |
std::shared_ptr< const T > | at (std::size_t idx) const |
Get Resource for an instance. More... | |
template<typename T > | |
std::shared_ptr< T > | at (std::size_t idx) |
Get Resource for an instance. More... | |
template<typename T > | |
std::shared_ptr< const T > | merged () |
Get Completed Resource. More... | |
MemLayout ()=default | |
MemLayout (const MemLayout &)=default | |
MemLayout & | operator= (const MemLayout &)=default |
MemLayout (MemLayout &&)=default | |
MemLayout & | operator= (MemLayout &&)=default |
virtual | ~MemLayout ()=default |
Protected Member Functions | |
virtual std::shared_ptr< void > | impAt (std::size_t idx) const =0 |
implementation from at More... | |
virtual std::shared_ptr< void > | impMerged ()=0 |
implementation from merged More... | |
MemLayout base class to store booked objects in MarlinMT.
Definition at line 14 of file MemLayout.h.
|
default |
Referenced by merged().
|
default |
|
default |
|
virtualdefault |
Referenced by merged().
|
inline |
Get Resource for an instance.
idx | instance id |
Definition at line 22 of file MemLayout.h.
References impAt().
|
inline |
Get Resource for an instance.
idx | instance id |
Definition at line 32 of file MemLayout.h.
References impAt().
|
protectedpure virtual |
implementation from at
Implemented in marlinmt::book::SingleMemLayout< T, Args_t >, and marlinmt::book::SharedMemLayout< T, MERGE, Args_t >.
|
protectedpure virtual |
implementation from merged
Implemented in marlinmt::book::SingleMemLayout< T, Args_t >, and marlinmt::book::SharedMemLayout< T, MERGE, Args_t >.
Referenced by merged().
|
inline |
Get Completed Resource.
Same for every Instance.
Definition at line 41 of file MemLayout.h.
References impAt(), impMerged(), MemLayout(), operator=(), and ~MemLayout().