ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
gvmap.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __GVMAP_H
14
#define __GVMAP_H
15
16
//--- project include ---
17
#include "../../Foundation/vec3.h"
18
19
//--- STL includes ---
20
#include <map>
21
#include <utility>
22
#include <set>
23
#include <vector>
24
#include <string>
25
26
using
std::multimap;
27
using
std::pair;
28
using
std::set;
29
using
std::string;
30
using
std::vector;
31
36
struct
gdata
37
{
38
Vec3
vel
;
39
Vec3
pos
;
40
double
mass
;
41
};
42
47
class
GVMap
48
{
49
private
:
50
multimap<int,gdata>
m_map
;
51
set<int>
m_tag_set
;
52
map<int,Vec3>
m_vel
;
53
map<int,Vec3>
m_angvel
;
54
int
m_min_tag
;
55
56
typedef
multimap<int,gdata>::iterator
mm_iter
;
57
58
public
:
59
GVMap
(
int
);
60
void
read
(
const
string
&,
bool
);
61
void
calc
();
62
};
63
64
#endif //__GVMAP_H
Tools
rotextract
gvmap.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1