#include <Objects.hxx>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
typedef const std::pair< const T, const T > | const_reference |
typedef mapref< T > | data_type |
typedef Object | key_type |
typedef std::pair< const T, mapref< T > > | pointer |
typedef std::pair< const T, mapref< T > > | reference |
typedef size_t | size_type |
typedef std::pair< const T, T > | value_type |
Public Member Functions | |
virtual bool | accepts (PyObject *pyob) const |
const_iterator | begin () const |
iterator | begin () |
void | clear () |
void | delItem (const Object &s) |
void | delItem (const std::string &s) |
const_iterator | end () const |
iterator | end () |
T | getItem (const Object &s) const |
T | getItem (const std::string &s) const |
bool | hasKey (const Object &s) const |
bool | hasKey (const std::string &s) const |
List | items () const |
List | keys () const |
int | length () const |
MapBase (const Object &ob) | |
MapBase (PyObject *pyob, bool owned=false) | |
MapBase< T > & | operator= (PyObject *rhsp) |
MapBase< T > & | operator= (const Object &rhs) |
mapref< T > | operator[] (const Object &key) |
mapref< T > | operator[] (const std::string &key) |
T | operator[] (const Object &key) const |
T | operator[] (const std::string &key) const |
virtual void | setItem (const Object &s, const Object &ob) |
virtual void | setItem (const std::string &s, const Object &ob) |
virtual void | setItem (const char *s, const Object &ob) |
virtual size_type | size () const |
List | values () const |
Protected Member Functions | |
MapBase () |
Definition at line 2774 of file Python2/Objects.hxx.
typedef const std::pair< const T, const T > Py::MapBase< T >::const_reference |
Definition at line 2790 of file Python2/Objects.hxx.
typedef mapref<T> Py::MapBase< T >::data_type |
Definition at line 2787 of file Python2/Objects.hxx.
typedef Object Py::MapBase< T >::key_type |
Definition at line 2786 of file Python2/Objects.hxx.
typedef std::pair< const T, mapref<T> > Py::MapBase< T >::pointer |
Definition at line 2791 of file Python2/Objects.hxx.
typedef std::pair< const T, mapref<T> > Py::MapBase< T >::reference |
Definition at line 2789 of file Python2/Objects.hxx.
typedef size_t Py::MapBase< T >::size_type |
Definition at line 2785 of file Python2/Objects.hxx.
typedef std::pair< const T, T > Py::MapBase< T >::value_type |
Definition at line 2788 of file Python2/Objects.hxx.
Py::MapBase< T >::MapBase | ( | ) | [inline, explicit, protected] |
Py::MapBase< T >::MapBase | ( | PyObject * | pyob, | |
bool | owned = false | |||
) | [inline, explicit] |
Py::MapBase< T >::MapBase | ( | const Object & | ob | ) | [inline] |
virtual bool Py::MapBase< T >::accepts | ( | PyObject * | pyob | ) | const [inline, virtual] |
Reimplemented from Py::Object.
Reimplemented in Py::Dict.
Definition at line 2818 of file Python2/Objects.hxx.
const_iterator Py::MapBase< T >::begin | ( | ) | const [inline] |
Definition at line 3132 of file Python2/Objects.hxx.
iterator Py::MapBase< T >::begin | ( | ) | [inline] |
Definition at line 3040 of file Python2/Objects.hxx.
void Py::MapBase< T >::clear | ( | ) | [inline] |
Definition at line 2826 of file Python2/Objects.hxx.
References Py::SeqBase< T >::begin(), Py::SeqBase< T >::end(), and k.
void Py::MapBase< T >::delItem | ( | const Object & | s | ) | [inline] |
Definition at line 2922 of file Python2/Objects.hxx.
void Py::MapBase< T >::delItem | ( | const std::string & | s | ) | [inline] |
Definition at line 2914 of file Python2/Objects.hxx.
const_iterator Py::MapBase< T >::end | ( | ) | const [inline] |
Definition at line 3137 of file Python2/Objects.hxx.
iterator Py::MapBase< T >::end | ( | ) | [inline] |
Definition at line 3045 of file Python2/Objects.hxx.
T Py::MapBase< T >::getItem | ( | const Object & | s | ) | const [inline] |
Definition at line 2883 of file Python2/Objects.hxx.
References Py::asObject(), and Py::Object::ptr().
T Py::MapBase< T >::getItem | ( | const std::string & | s | ) | const [inline] |
Definition at line 2876 of file Python2/Objects.hxx.
References Py::asObject().
Referenced by Mesh::MeshObject::createCone(), Mesh::MeshObject::createCube(), Mesh::MeshObject::createCylinder(), Mesh::MeshObject::createEllipsoid(), Mesh::MeshObject::createSphere(), Mesh::MeshObject::createTorus(), and Gui::Application::sAddCommand().
bool Py::MapBase< T >::hasKey | ( | const Object & | s | ) | const [inline] |
Definition at line 2871 of file Python2/Objects.hxx.
References Py::Object::ptr().
bool Py::MapBase< T >::hasKey | ( | const std::string & | s | ) | const [inline] |
Definition at line 2866 of file Python2/Objects.hxx.
Referenced by getSWIGVersionFromModule().
List Py::MapBase< T >::items | ( | ) | const [inline] |
Definition at line 2940 of file Python2/Objects.hxx.
List Py::MapBase< T >::keys | ( | ) | const [inline] |
Definition at line 2930 of file Python2/Objects.hxx.
Referenced by Sandbox::PythonBaseClass::PythonBaseClass().
int Py::MapBase< T >::length | ( | ) | const [inline] |
Definition at line 2861 of file Python2/Objects.hxx.
MapBase<T>& Py::MapBase< T >::operator= | ( | PyObject * | rhsp | ) | [inline] |
Reimplemented from Py::Object.
Reimplemented in Py::Dict.
Definition at line 2811 of file Python2/Objects.hxx.
MapBase<T>& Py::MapBase< T >::operator= | ( | const Object & | rhs | ) | [inline] |
Reimplemented in Py::Dict.
Definition at line 2806 of file Python2/Objects.hxx.
mapref<T> Py::MapBase< T >::operator[] | ( | const Object & | key | ) | [inline] |
Definition at line 2856 of file Python2/Objects.hxx.
mapref<T> Py::MapBase< T >::operator[] | ( | const std::string & | key | ) | [inline] |
Definition at line 2851 of file Python2/Objects.hxx.
T Py::MapBase< T >::operator[] | ( | const Object & | key | ) | const [inline] |
Definition at line 2846 of file Python2/Objects.hxx.
T Py::MapBase< T >::operator[] | ( | const std::string & | key | ) | const [inline] |
Definition at line 2841 of file Python2/Objects.hxx.
virtual void Py::MapBase< T >::setItem | ( | const Object & | s, | |
const Object & | ob | |||
) | [inline, virtual] |
Definition at line 2906 of file Python2/Objects.hxx.
References Py::Object::ptr().
virtual void Py::MapBase< T >::setItem | ( | const std::string & | s, | |
const Object & | ob | |||
) | [inline, virtual] |
Definition at line 2898 of file Python2/Objects.hxx.
virtual void Py::MapBase< T >::setItem | ( | const char * | s, | |
const Object & | ob | |||
) | [inline, virtual] |
Definition at line 2890 of file Python2/Objects.hxx.
Referenced by Mesh::MeshPy::foraminate(), Gui::View3DInventorPy::getObjectInfo(), Gui::View3DInventorPy::getObjectsInfo(), and Mesh::MeshPy::nearestFacetOnRay().
virtual size_type Py::MapBase< T >::size | ( | ) | const [inline, virtual] |
Definition at line 2835 of file Python2/Objects.hxx.
List Py::MapBase< T >::values | ( | ) | const [inline] |
Definition at line 2935 of file Python2/Objects.hxx.