library of assembled shared sources |
http://lass.cocamware.com |
#include <pymap.h>
Public Types | |
enum | Ownership { oOwner, oBorrowed } |
Public Member Functions | |
PyMapImpl (M *iMap, Ownership iOwnership=oBorrowed) | |
virtual | ~PyMapImpl () |
virtual Py_ssize_t | PyMap_Length () |
virtual PyObject * | PyMap_Subscript (PyObject *iKey) |
virtual int | PyMap_AssSubscript (PyObject *iKey, PyObject *iValue) |
virtual std::string | pyStr (void) |
virtual std::string | pyRepr (void) |
virtual TPyObjPtr | keys () const |
virtual TPyObjPtr | values () const |
virtual PyObject * | PyMap_Iter () |
virtual bool | pointsToSameContainer (void *iO) |
Private Types | |
enum | { readOnly_ = meta::TypeTraits<M>::isConst } |
Private Member Functions | |
int | doPyMap_AssSubscript (PyObject *iKey, PyObject *iValue, meta::True) |
int | doPyMap_AssSubscript (PyObject *iKey, PyObject *iValue, meta::False) |
Private Attributes | |
M * | map_ |
Ownership | ownership_ |
Definition at line 81 of file pymap.h.
enum lass::python::impl::PyMapImpl::Ownership |
anonymous enum [private] |
lass::python::impl::PyMapImpl< M >::PyMapImpl | ( | M * | iMap, | |
Ownership | iOwnership = oBorrowed | |||
) | [inline] |
lass::python::impl::PyMapImpl< M >::~PyMapImpl | ( | ) | [inline, virtual] |
Definition at line 172 of file pymap.h.
References LASS_ASSERT, lass::python::impl::PyMapImpl< M >::map_, lass::python::impl::PyMapImpl< M >::oOwner, and lass::python::impl::PyMapImpl< M >::ownership_.
Py_ssize_t lass::python::impl::PyMapImpl< M >::PyMap_Length | ( | ) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 182 of file pymap.h.
References LASS_ASSERT, lass::python::impl::PyMapImpl< M >::map_, and Py_ssize_t.
PyObject * lass::python::impl::PyMapImpl< M >::PyMap_Subscript | ( | PyObject * | iKey | ) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 219 of file pymap.h.
References LASS_ASSERT, and lass::python::impl::PyMapImpl< M >::map_.
int lass::python::impl::PyMapImpl< M >::PyMap_AssSubscript | ( | PyObject * | iKey, | |
PyObject * | iValue | |||
) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 241 of file pymap.h.
References lass::python::impl::PyMapImpl< M >::doPyMap_AssSubscript().
std::string lass::python::impl::PyMapImpl< M >::pyStr | ( | void | ) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 292 of file pymap.h.
References LASS_ASSERT, lass::python::impl::PyMapImpl< M >::map_, and lass::python::impl::PyMapImpl< M >::pyRepr().
std::string lass::python::impl::PyMapImpl< M >::pyRepr | ( | void | ) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 299 of file pymap.h.
References LASS_ASSERT, and lass::python::impl::PyMapImpl< M >::map_.
Referenced by lass::python::impl::PyMapImpl< M >::pyStr().
TPyObjPtr lass::python::impl::PyMapImpl< M >::keys | ( | ) | const [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 198 of file pymap.h.
References LASS_ASSERT, lass::python::impl::PyMapImpl< M >::map_, and lass::python::impl::pyBuildList().
TPyObjPtr lass::python::impl::PyMapImpl< M >::values | ( | ) | const [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 208 of file pymap.h.
References LASS_ASSERT, lass::python::impl::PyMapImpl< M >::map_, and lass::python::impl::pyBuildList().
PyObject * lass::python::impl::PyMapImpl< M >::PyMap_Iter | ( | ) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 191 of file pymap.h.
References lass::python::impl::PyMapImpl< M >::map_.
virtual bool lass::python::impl::PyMapImpl< M >::pointsToSameContainer | ( | void * | iO | ) | [inline, virtual] |
Implements lass::python::impl::PyMapImplBase.
Definition at line 99 of file pymap.h.
References lass::python::impl::PyMapImpl< M >::map_.
int lass::python::impl::PyMapImpl< M >::doPyMap_AssSubscript | ( | PyObject * | iKey, | |
PyObject * | iValue, | |||
meta::True | ||||
) | [inline, private] |
Definition at line 247 of file pymap.h.
Referenced by lass::python::impl::PyMapImpl< M >::PyMap_AssSubscript().
int lass::python::impl::PyMapImpl< M >::doPyMap_AssSubscript | ( | PyObject * | iKey, | |
PyObject * | iValue, | |||
meta::False | ||||
) | [inline, private] |
Definition at line 254 of file pymap.h.
References LASS_ASSERT, and lass::python::impl::PyMapImpl< M >::map_.
M* lass::python::impl::PyMapImpl< M >::map_ [private] |
Definition at line 108 of file pymap.h.
Referenced by lass::python::impl::PyMapImpl< M >::doPyMap_AssSubscript(), lass::python::impl::PyMapImpl< M >::keys(), lass::python::impl::PyMapImpl< M >::pointsToSameContainer(), lass::python::impl::PyMapImpl< M >::PyMap_Iter(), lass::python::impl::PyMapImpl< M >::PyMap_Length(), lass::python::impl::PyMapImpl< M >::PyMap_Subscript(), lass::python::impl::PyMapImpl< M >::pyRepr(), lass::python::impl::PyMapImpl< M >::pyStr(), lass::python::impl::PyMapImpl< M >::values(), and lass::python::impl::PyMapImpl< M >::~PyMapImpl().
Ownership lass::python::impl::PyMapImpl< M >::ownership_ [private] |
Definition at line 109 of file pymap.h.
Referenced by lass::python::impl::PyMapImpl< M >::~PyMapImpl().
Generated on Mon Nov 10 14:22:15 2008 for Library of Assembled Shared Sources by 1.5.7.1 |