ESyS-Particle  2.3.4
ParticleIdPairPy.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 #ifndef ESYS_LSMPARTICLEIDPAIRPY_H
14 #define ESYS_LSMPARTICLEIDPAIRPY_H
15 
16 #include <boost/python.hpp>
18 
19 namespace esys
20 {
21  namespace lsm
22  {
23  typedef std::pair<int,int> ParticleIdPair;
24 
26  {
27  public:
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
esys::lsm::ParticleIdPair
LsmMpiPy::ParticleIdPair ParticleIdPair
Definition: BondInteractionGroupPy.cpp:24
esys::lsm::ParticleIdPairPy::getItem
int getItem(int i)
Definition: ParticleIdPairPy.cpp:49
esys::lsm::ParticleIdPairPy::Inherited
ParticleIdPair Inherited
Definition: ParticleIdPairPy.h:28
SetPy.h
esys::lsm::ParticleIdPairPy::PickleSuite
Definition: ParticleIdPairPy.h:43
esys
Definition: CheckPointable.cpp:17
esys::lsm::ParticleIdPairPy::ParticleIdPairPy
ParticleIdPairPy(int id1, int id2)
Definition: ParticleIdPairPy.cpp:21
esys::lsm::ParticleIdPairPy::PickleSuite::getinitargs
static boost::python::tuple getinitargs(ParticleIdPairPy const &s)
Definition: ParticleIdPairPy.cpp:83
ParticleIdPairPy.h
std
Definition: Contact.h:101
esys::lsm::ParticleIdPairPy::hash
long hash() const
Definition: ParticleIdPairPy.cpp:77
esys::lsm::ParticleIdPairPy::operator<
bool operator<(const ParticleIdPairPy &pair) const
Definition: ParticleIdPairPy.cpp:34
esys::lsm::exportParticleIdPair
void exportParticleIdPair()
Definition: ParticleIdPairPy.cpp:88
esys::lsm::ParticleIdPairPy
Definition: ParticleIdPairPy.h:26
esys::lsm::ParticleIdPairPy::len
int len() const
Definition: ParticleIdPairPy.cpp:44