C++ TargetRTS
Loading...
Searching...
No Matches
RTImportList.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTImportList_h__
11#define __RTImportList_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTConfig_h__
18#include <RTConfig.h>
19#endif
20
21class RTActor;
22class RTActorRef;
23
24// An array of these objects is allocated at the time an imported actor
25// reference is initialized. For unused indices in the reference, the
26// Unused variant is applied. As entries are reserved, the 'Used.reference'
27// pointer is made to point at the containing reference. That pointer overlays
28// the 'Unused.prev' pointer which can never point at a RTActorRef.
29// The index into the reference is encoded as the difference between the
30// pointer to a specific RTImportList and the beginning of the array in
31// the reference. The 'Used.next' field is used to form the chain of
32// contexts into which an actor has been imported.
33
35{
36 struct Unused
37 {
38 RTImportList * next;
39 RTImportList * prev;
40 } unused;
41
42 struct Used
43 {
44 RTImportList * next;
45 RTActorRef * reference;
46 RTActor * actor;
47 } used;
48};
49
50#endif // __RTImportList_h__
An instance of this class represents a capsule instance.
Definition: RTActor.h:44
Represents a capsule part.
Definition: RTActorRef.h:39
Definition: RTImportList.h:37
Definition: RTImportList.h:43
Definition: RTImportList.h:35