Debian Codegraph @

include/BALL/PYTHON/EXTENSIONS/pyCompositeList.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: pyCompositeList.h,v 1.6.20.1 2007/03/25 21:25:20 oliver Exp $
5 //
6
7 #ifndef BALL_PYTHON_PYCOMPOSITELIST_H
8 #define BALL_PYTHON_PYCOMPOSITELIST_H
9
10 #ifndef BALL_COMMON_H
11 # include <BALL/common.h>
12 #endif
13
14 #ifndef BALL_DATAYPE_HASHSET_H
15 # include <BALL/DATATYPE/hashSet.h>
16 #endif
17
18 #ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
19 # include <BALL/VIEW/KERNEL/representation.h>
20 #endif
21
22 namespace BALL
23 {
24 class Composite;
25
26 /** Equivalent for a STL::List of Composite Pointers in Python
27 \ingroup PythonExtensions
28 */
29 class PyCompositeList
30 : public std::list<Composite*>
31 {
32 public:
33
34 BALL_CREATE(PyCompositeList)
35
36 /** @name Type Definitions
37 */
38 //@{
39
40 /** Composite* type
41 */
42 typedef Composite* ValueType;
43
44 /** Pointer type
45 */
46 typedef Composite** PointerType;
47
48 /** Iterator type.
49 */
50 typedef std::list<Composite*>::iterator Iterator;
51
52 /** Constant iterator type.
53 */
54 typedef std::list<Composite*>::const_iterator ConstIterator;
55
56 //@}
57
58 /** @name Constructors and Destructors */
59 //@{
60
61 /** Default constructor.
62 Create an empty list.
63 */
64 PyCompositeList();
65
66 /// Copy constructor.
67 PyCompositeList(const PyCompositeList& composite_list);
68
69 /// Copy constructor.
70 PyCompositeList(const std::list<Composite*>& composite_list);
71
72 /// Copy constructor.
73 PyCompositeList(const std::list<const Composite*>& composite_list);
74
75 /// Constructor from a const Composite pointer list
76 PyCompositeList& operator = (const std::list<const Composite*>& composite_list);
77
78 /// Construction from a HashSet
79 PyCompositeList(const HashSet<const Composite*>& composite_set);
80
81 /// Construction from a HashSet
82 PyCompositeList(const HashSet<Composite*>& composite_set);
83
84 /// Destructor
85 virtual ~PyCompositeList() throw();
86 //@}
87 };
88
89 } // namespace BALL
90
91 #endif // BALL_PYTHON_PYCOMPOSITELIST_H