View on GitHub
Vistle
Distributed Data-parallel Scientific Visualization in VR
Overview
Architecture
API
Publications
Gallery
core
objectmeta_impl.h
Go to the documentation of this file.
1
#ifndef OBJECTMETA_IMPL_H
2
#define OBJECTMETA_IMPL_H
3
4
#include <cassert>
5
#include "
serialize.h
"
6
#include "
archives_config.h
"
7
8
namespace
vistle
{
9
10
template
<
class
Archive>
11
void
Meta::serialize(Archive &ar)
12
{
13
#ifdef DEBUG_SERIALIZATION
14
const
unsigned
int
check = 0xdeadbeef;
15
unsigned
int
check1 = check;
16
ar &
V_NAME
(ar,
"check1"
, check1);
17
assert(check1 == check);
18
#endif
19
ar &
V_NAME
(ar,
"block"
, m_block);
20
ar &
V_NAME
(ar,
"numblocks"
, m_numBlocks);
21
ar &
V_NAME
(ar,
"timestep"
, m_timestep);
22
ar &
V_NAME
(ar,
"numtimesteps"
, m_numTimesteps);
23
ar &
V_NAME
(ar,
"animationstep"
, m_animationstep);
24
ar &
V_NAME
(ar,
"numanimationsteps"
, m_numAnimationsteps);
25
ar &
V_NAME
(ar,
"iteration"
, m_iteration);
26
ar &
V_NAME
(ar,
"creator"
, m_creator);
27
ar &
V_NAME
(ar,
"executioncount"
, m_executionCount);
28
ar &
V_NAME
(ar,
"realtime"
, m_realtime);
29
for
(
unsigned
i = 0; i < m_transform.size(); ++i)
30
ar &
V_NAME
(ar,
"transform"
, m_transform[i]);
31
#ifdef DEBUG_SERIALIZATION
32
unsigned
int
check2 = check;
33
ar &
V_NAME
(ar,
"check2"
, check2);
34
assert(check2 == check);
35
#endif
36
}
37
38
}
// namespace vistle
39
40
#endif
archives_config.h
V_NAME
#define V_NAME(ar, name, obj)
Definition:
archives_config.h:441
vistle
Definition:
allobjects.cpp:30
serialize.h