Ice Sheet System Model
4.18
Code documentation
src
c
classes
Hook.h
Go to the documentation of this file.
1
8
#ifndef _HOOK_H_
9
#define _HOOK_H_
10
11
/*Headers:*/
12
/*{{{*/
13
#include "../datastructures/datastructures.h"
14
/*}}}*/
15
16
class
Hook
{
17
18
private
:
19
20
int
*
ids
;
//list of object ids, to go look for them in datasets.
21
int
num
;
//number of objects being hooked onto
22
Object
**
objects
;
//list of object pointers
23
int
*
offsets
;
//list of object offsets into datasets, to speed up lookup.
24
25
public
:
26
27
/*Hook constructors, destructors: {{{*/
28
Hook
();
29
Hook
(
int
*
ids
,
int
num
);
30
~Hook
();
31
/*}}}*/
32
/*Object like functionality:{{{*/
33
Object
*
copy
(
void
);
34
void
DeepEcho
(
void
);
35
void
Echo
(
void
);
36
void
Marshall
(
char
** pmarshalled_data,
int
* pmarshalled_data_size,
int
marshall_direction);
37
/*}}}*/
38
/*Hook management: {{{*/
39
void
configure
(
DataSet
* dataset);
40
Object
**
deliverp
(
void
);
//deliver all objects
41
Object
*
delivers
(
void
);
//single object deliver
42
int
GetNum
(
void
);
43
int
*
Ids
(
void
);
44
void
reset
(
void
);
45
Hook
*
Spawn
(
int
* indices,
int
numindices);
46
/*}}}*/
47
};
48
49
#endif
/* _HOOK_H_ */
Hook::ids
int * ids
Definition:
Hook.h:20
Hook::Hook
Hook()
Definition:
Hook.cpp:18
Hook::deliverp
Object ** deliverp(void)
Definition:
Hook.cpp:187
Hook::DeepEcho
void DeepEcho(void)
Definition:
Hook.cpp:77
Hook::~Hook
~Hook()
Definition:
Hook.cpp:53
Hook::reset
void reset(void)
Definition:
Hook.cpp:211
Object
Definition:
Object.h:13
Hook::delivers
Object * delivers(void)
Definition:
Hook.cpp:191
Hook
Definition:
Hook.h:16
Hook::configure
void configure(DataSet *dataset)
Definition:
Hook.cpp:145
Hook::GetNum
int GetNum(void)
Definition:
Hook.cpp:203
Hook::objects
Object ** objects
Definition:
Hook.h:22
Hook::copy
Object * copy(void)
Definition:
Hook.cpp:61
Hook::num
int num
Definition:
Hook.h:21
Hook::Spawn
Hook * Spawn(int *indices, int numindices)
Definition:
Hook.cpp:222
Hook::Ids
int * Ids(void)
Definition:
Hook.cpp:207
Hook::Echo
void Echo(void)
Definition:
Hook.cpp:104
DataSet
Declaration of DataSet class.
Definition:
DataSet.h:14
Hook::offsets
int * offsets
Definition:
Hook.h:23
Hook::Marshall
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
Definition:
Hook.cpp:122
Generated on Thu Jul 2 2020 08:09:17 for Ice Sheet System Model by
1.8.19