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