DNA Calib 1.1
Project brief
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dnac::CommandImplBase< TCommand > Class Template Reference

#include <CommandImplBase.h>

Inheritance diagram for dnac::CommandImplBase< TCommand >:
Inheritance graph
Collaboration diagram for dnac::CommandImplBase< TCommand >:
Collaboration graph

Public Member Functions

MemoryResourcegetMemoryResource ()
 

Static Public Member Functions

static TCommand * create (MemoryResource *memRes)
 
static void destroy (TCommand *instance)
 

Protected Member Functions

 CommandImplBase (MemoryResource *memRes_)
 

Private Attributes

MemoryResourcememRes
 

Constructor & Destructor Documentation

◆ CommandImplBase()

template<class TCommand >
dnac::CommandImplBase< TCommand >::CommandImplBase ( MemoryResource memRes_)
inlineexplicitprotected
13 : memRes{memRes_} {
14 }
MemoryResource * memRes
Definition: CommandImplBase.h:32

Member Function Documentation

◆ create()

template<class TCommand >
static TCommand * dnac::CommandImplBase< TCommand >::create ( MemoryResource memRes)
inlinestatic
17 {
18 PolyAllocator<TCommand> alloc{memRes};
19 return alloc.newObject(memRes);
20 }

References dnac::CommandImplBase< TCommand >::memRes.

◆ destroy()

template<class TCommand >
static void dnac::CommandImplBase< TCommand >::destroy ( TCommand *  instance)
inlinestatic
22 {
23 PolyAllocator<TCommand> alloc{instance->getMemoryResource()};
24 alloc.deleteObject(instance);
25 }

◆ getMemoryResource()

template<class TCommand >
MemoryResource * dnac::CommandImplBase< TCommand >::getMemoryResource ( )
inline
27 {
28 return memRes;
29 }

References dnac::CommandImplBase< TCommand >::memRes.

Member Data Documentation

◆ memRes

template<class TCommand >
MemoryResource* dnac::CommandImplBase< TCommand >::memRes
private

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