// -*- 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 #endif #ifndef BALL_DATAYPE_HASHSET_H # include #endif #ifndef BALL_VIEW_KERNEL_REPRESENTATION_H # include #endif namespace BALL { class Composite; /** Equivalent for a STL::List of Composite Pointers in Python \ingroup PythonExtensions */ class PyCompositeList : public std::list { public: BALL_CREATE(PyCompositeList) /** @name Type Definitions */ //@{ /** Composite* type */ typedef Composite* ValueType; /** Pointer type */ typedef Composite** PointerType; /** Iterator type. */ typedef std::list::iterator Iterator; /** Constant iterator type. */ typedef std::list::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_list); /// Copy constructor. PyCompositeList(const std::list& composite_list); /// Constructor from a const Composite pointer list PyCompositeList& operator = (const std::list& composite_list); /// Construction from a HashSet PyCompositeList(const HashSet& composite_set); /// Construction from a HashSet PyCompositeList(const HashSet& composite_set); /// Destructor virtual ~PyCompositeList() throw(); //@} }; } // namespace BALL #endif // BALL_PYTHON_PYCOMPOSITELIST_H