10#ifndef __RTDefaultActorFactory_h__
11#define __RTDefaultActorFactory_h__
13#include "RTActorFactoryInterface.h"
20template <
typename CapsuleClass>
24 return new CapsuleClass(rts, ref);
Interface of a capsule factory responsible for creating and destroying capsule instances in a capsule...
Definition: RTActorFactoryInterface.h:15
An instance of this class represents a capsule instance.
Definition: RTActor.h:44
Represents a capsule part.
Definition: RTActorRef.h:39
A controller manages a group of capsule instances that all run in the same physical thread (i....
Definition: RTController.h:54
A capsule factory with a default destroy implementation, but without a create implementation (the cre...
Definition: RTDefaultActorFactory.h:38
RTActor * create(RTController *rts, RTActorRef *ref, int index) override
Called by the TargetRTS to create a capsule instance, which later will be inserted into a capsule par...
Definition: RTDefaultActorFactory.h:40
void destroy(RTActor *actor) override
Called by the TargetRTS to destroy a capsule instance.
Definition: RTDefaultActorFactory.h:44
A capsule factory with a default implementation for how to create and destroy capsule instances.
Definition: RTDefaultActorFactory.h:21
void destroy(RTActor *actor) override
Called by the TargetRTS to destroy a capsule instance.
Definition: RTDefaultActorFactory.h:27
RTActor * create(RTController *rts, RTActorRef *ref, int index) override
Called by the TargetRTS to create a capsule instance, which later will be inserted into a capsule par...
Definition: RTDefaultActorFactory.h:23