| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file key.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Nov 21 13:27:22 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Class to distinguish the different entities in maps.
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef KEY_HPP_
|
|---|
| 11 | #define KEY_HPP_
|
|---|
| 12 |
|
|---|
| 13 | #ifndef HAVE_MPI
|
|---|
| 14 | #error MPI is needed to compile this class
|
|---|
| 15 | #endif /* HAVE_MPI */
|
|---|
| 16 |
|
|---|
| 17 | #include <vector>
|
|---|
| 18 |
|
|---|
| 19 | namespace VMG
|
|---|
| 20 | {
|
|---|
| 21 |
|
|---|
| 22 | class Grid;
|
|---|
| 23 | class Index;
|
|---|
| 24 |
|
|---|
| 25 | namespace MPI
|
|---|
| 26 | {
|
|---|
| 27 |
|
|---|
| 28 | class Key {
|
|---|
| 29 | public:
|
|---|
| 30 | Key();
|
|---|
| 31 | Key(const VMG::MPI::Key& other);
|
|---|
| 32 | Key(const Grid& grid);
|
|---|
| 33 | Key(const Grid& grid_1, const Grid& grid_2);
|
|---|
| 34 | Key(const Index& i1, const Index& i2, const Index& i3);
|
|---|
| 35 |
|
|---|
| 36 | void AddKey(const Grid& grid);
|
|---|
| 37 | void AddKey(const Index& index);
|
|---|
| 38 | void AddKey(const int& i);
|
|---|
| 39 | void AddKey(const void* addr);
|
|---|
| 40 |
|
|---|
| 41 | bool operator<(const Key& other) const;
|
|---|
| 42 |
|
|---|
| 43 | private:
|
|---|
| 44 | std::vector<int> int_keys;
|
|---|
| 45 | std::vector<const void*> addr_keys;
|
|---|
| 46 | };
|
|---|
| 47 |
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | }
|
|---|
| 51 |
|
|---|
| 52 | #endif /* KEY_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.