| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef BALL_PYTHON_PYINDEXLIST_H |
| 8 |
#define BALL_PYTHON_PYINDEXLIST_H |
| 9 |
|
| 10 |
#ifndef BALL_COMMON_H |
| 11 |
# include <BALL/common.h> |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef BALL_DATAYPE_STRING_H |
| 15 |
# include <BALL/DATATYPE/string.h> |
| 16 |
#endif |
| 17 |
|
| 18 |
namespace BALL |
| 19 |
{ |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
class PyIndexList |
| 26 |
: public std::list<Index> |
| 27 |
{ |
| 28 |
public: |
| 29 |
|
| 30 |
BALL_CREATE(PyIndexList) |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
typedef Index ValueType; |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
typedef Index PointerType; |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
typedef std::list<Index>::iterator Iterator; |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
typedef std::list<Index>::const_iterator ConstIterator; |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
PyIndexList(); |
| 61 |
|
| 62 |
|
| 63 |
PyIndexList(const PyIndexList& new_list); |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
PyIndexList(const std::vector<Index>& indices); |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
PyIndexList(const std::list<Index>& fragment); |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
PyIndexList(const std::vector<Position>& indices); |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
PyIndexList(const std::list<Position>& fragment); |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
virtual ~PyIndexList() throw(); |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
PyIndexList& operator = (const std::list<Index>& idx_list); |
| 100 |
|
| 101 |
PyIndexList& operator = (const std::list<Position>& idx_list); |
| 102 |
|
| 103 |
PyIndexList& operator = (const std::vector<Index>& idx_list); |
| 104 |
|
| 105 |
PyIndexList& operator = (const std::vector<Position>& idx_list); |
| 106 |
|
| 107 |
}; |
| 108 |
|
| 109 |
} |
| 110 |
|
| 111 |
#endif |