Ice Sheet System Model
4.18
Code documentation
src
c
datastructures
DataSet.h
Go to the documentation of this file.
1
#ifndef _CONTAINER_DATASET_H_
2
#define _CONTAINER_DATASET_H_
3
4
#include <vector>
5
#include <cstring>
6
7
/*forward declarations */
8
class
Object
;
9
14
class
DataSet
{
15
16
public
:
17
18
/*internals: */
19
std::vector<Object*>
objects
;
20
21
/*type of dataset: */
22
int
enum_type
;
23
24
/*sorting: */
25
int
sorted
;
26
int
presorted
;
27
int
numsorted
;
28
int
*
sorted_ids
;
29
int
*
id_offsets
;
30
31
/*constructors, destructors*/
32
DataSet
();
33
DataSet
(
int
enum_type
);
34
~DataSet
();
35
void
Marshall
(
char
** pmarshalled_data,
int
* pmarshalled_data_size,
int
marshall_direction);
36
37
/*management*/
38
int
GetEnum
();
39
int
GetEnum
(
int
offset);
40
void
Echo
();
41
void
DeepEcho
();
42
int
AddObject
(
Object
*
object
);
43
int
DeleteObject
(
int
id
);
44
int
Size
();
45
void
clear
();
46
Object
*
GetObjectByOffset
(
int
offset);
47
Object
*
GetObjectById
(
int
*poffset,
int
eid);
48
void
Presort
();
49
void
Sort
();
50
DataSet
*
Copy
(
void
);
51
int
DeleteObject
(
Object
*
object
);
52
53
};
54
55
#endif
DataSet::Size
int Size()
Definition:
DataSet.cpp:399
DataSet::GetObjectById
Object * GetObjectById(int *poffset, int eid)
Definition:
DataSet.cpp:345
DataSet::AddObject
int AddObject(Object *object)
Definition:
DataSet.cpp:252
DataSet::objects
std::vector< Object * > objects
Definition:
DataSet.h:19
DataSet::sorted_ids
int * sorted_ids
Definition:
DataSet.h:28
DataSet::Sort
void Sort()
Definition:
DataSet.cpp:405
DataSet::DeepEcho
void DeepEcho()
Definition:
DataSet.cpp:291
Object
Definition:
Object.h:13
DataSet::DeleteObject
int DeleteObject(int id)
DataSet::sorted
int sorted
Definition:
DataSet.h:25
DataSet::Echo
void Echo()
Definition:
DataSet.cpp:307
DataSet::GetEnum
int GetEnum()
Definition:
DataSet.cpp:324
DataSet::enum_type
int enum_type
Definition:
DataSet.h:22
DataSet::clear
void clear()
Definition:
DataSet.cpp:260
DataSet::Presort
void Presort()
Definition:
DataSet.cpp:368
DataSet::GetObjectByOffset
Object * GetObjectByOffset(int offset)
Definition:
DataSet.cpp:334
DataSet::Copy
DataSet * Copy(void)
Definition:
DataSet.cpp:49
DataSet::numsorted
int numsorted
Definition:
DataSet.h:27
DataSet
Declaration of DataSet class.
Definition:
DataSet.h:14
DataSet::id_offsets
int * id_offsets
Definition:
DataSet.h:29
DataSet::~DataSet
~DataSet()
Definition:
DataSet.cpp:85
DataSet::DataSet
DataSet()
Definition:
DataSet.cpp:27
DataSet::presorted
int presorted
Definition:
DataSet.h:26
DataSet::Marshall
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
Definition:
DataSet.cpp:93
Generated on Thu Jul 2 2020 08:09:18 for Ice Sheet System Model by
1.8.19