BALL 1.5.0
pyIndexList.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4// $Id: pyIndexList.h,v 1.2 2005/12/23 17:01:57 amoll Exp $
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
18namespace BALL
19{
26 : public std::list<Index>
27 {
28 public:
29
31
32
35
36
39
43
46 typedef std::list<Index>::iterator Iterator;
47
50 typedef std::list<Index>::const_iterator ConstIterator;
51
53
56
61
63 PyIndexList(const PyIndexList& new_list);
64
69 PyIndexList(const std::vector<Index>& indices);
70
75 PyIndexList(const std::list<Index>& fragment);
76
81 PyIndexList(const std::vector<Position>& indices);
82
87 PyIndexList(const std::list<Position>& fragment);
88
91 virtual ~PyIndexList() throw();
93
97
99 PyIndexList& operator = (const std::list<Index>& idx_list);
101 PyIndexList& operator = (const std::list<Position>& idx_list);
103 PyIndexList& operator = (const std::vector<Index>& idx_list);
105 PyIndexList& operator = (const std::vector<Position>& idx_list);
107 };
108
109} // namespace BALL
110
111#endif // BALL_PYTHON_PYINDEXLIST_H
#define BALL_CREATE(name)
Definition: create.h:62
STL namespace.
Definition: constants.h:13
std::list< Index >::const_iterator ConstIterator
Definition: pyIndexList.h:50
std::list< Index >::iterator Iterator
Definition: pyIndexList.h:46