ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ParticleIdPairPy.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 ESYS_LSMPARTICLEIDPAIRPY_H
14
#define ESYS_LSMPARTICLEIDPAIRPY_H
15
16
#include <boost/python.hpp>
17
#include <
Python/esys/lsm/util/SetPy.h
>
18
19
namespace
esys
20
{
21
namespace
lsm
22
{
23
typedef
std::pair<int,int>
ParticleIdPair
;
24
25
class
ParticleIdPairPy
:
public
ParticleIdPair
26
{
27
public
:
28
typedef
ParticleIdPair
Inherited
;
29
30
ParticleIdPairPy
(
int
id1,
int
id2);
31
32
ParticleIdPairPy
(
const
Inherited
&pair);
33
34
bool
operator<
(
const
ParticleIdPairPy
&pair)
const
;
35
36
int
len
()
const
;
37
38
int
getItem
(
int
i);
39
40
long
hash
()
const
;
41
42
class
PickleSuite
:
public
boost::python::pickle_suite
43
{
44
public
:
45
static
46
boost::python::tuple
47
getinitargs
(
ParticleIdPairPy
const
& s);
48
};
49
50
};
51
52
void
exportParticleIdPair
();
53
}
54
}
55
56
#endif
Python
esys
lsm
ParticleIdPairPy.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1