Py::MapBase< T > Class Template Reference

#include <Objects.hxx>

Inheritance diagram for Py::MapBase< T >:
Py::Object Py::Dict

List of all members.

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 ()
getItem (const Object &s) const
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)
operator[] (const Object &key) const
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 ()

Detailed Description

template<TEMPLATE_TYPENAME T>
class Py::MapBase< T >

Definition at line 2774 of file Python2/Objects.hxx.


Member Typedef Documentation

template<TEMPLATE_TYPENAME T>
typedef const std::pair< const T, const T > Py::MapBase< T >::const_reference

Definition at line 2790 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
typedef mapref<T> Py::MapBase< T >::data_type

Definition at line 2787 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
typedef Object Py::MapBase< T >::key_type

Definition at line 2786 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
typedef std::pair< const T, mapref<T> > Py::MapBase< T >::pointer

Definition at line 2791 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
typedef std::pair< const T, mapref<T> > Py::MapBase< T >::reference

Definition at line 2789 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
typedef size_t Py::MapBase< T >::size_type

Definition at line 2785 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
typedef std::pair< const T, T > Py::MapBase< T >::value_type

Definition at line 2788 of file Python2/Objects.hxx.


Constructor & Destructor Documentation

template<TEMPLATE_TYPENAME T>
Py::MapBase< T >::MapBase (  )  [inline, explicit, protected]
template<TEMPLATE_TYPENAME T>
Py::MapBase< T >::MapBase ( PyObject pyob,
bool  owned = false 
) [inline, explicit]
template<TEMPLATE_TYPENAME T>
Py::MapBase< T >::MapBase ( const Object ob  )  [inline]

Member Function Documentation

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
const_iterator Py::MapBase< T >::begin (  )  const [inline]

Definition at line 3132 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
iterator Py::MapBase< T >::begin (  )  [inline]

Definition at line 3040 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
void Py::MapBase< T >::delItem ( const Object s  )  [inline]

Definition at line 2922 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
void Py::MapBase< T >::delItem ( const std::string &  s  )  [inline]

Definition at line 2914 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
const_iterator Py::MapBase< T >::end (  )  const [inline]

Definition at line 3137 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
iterator Py::MapBase< T >::end (  )  [inline]

Definition at line 3045 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
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().

template<TEMPLATE_TYPENAME T>
T Py::MapBase< T >::getItem ( const std::string &  s  )  const [inline]
template<TEMPLATE_TYPENAME T>
bool Py::MapBase< T >::hasKey ( const Object s  )  const [inline]

Definition at line 2871 of file Python2/Objects.hxx.

References Py::Object::ptr().

template<TEMPLATE_TYPENAME T>
bool Py::MapBase< T >::hasKey ( const std::string &  s  )  const [inline]

Definition at line 2866 of file Python2/Objects.hxx.

Referenced by getSWIGVersionFromModule().

template<TEMPLATE_TYPENAME T>
List Py::MapBase< T >::items (  )  const [inline]

Definition at line 2940 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
List Py::MapBase< T >::keys (  )  const [inline]

Definition at line 2930 of file Python2/Objects.hxx.

Referenced by Sandbox::PythonBaseClass::PythonBaseClass().

template<TEMPLATE_TYPENAME T>
int Py::MapBase< T >::length (  )  const [inline]

Definition at line 2861 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
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.

template<TEMPLATE_TYPENAME T>
MapBase<T>& Py::MapBase< T >::operator= ( const Object rhs  )  [inline]

Reimplemented in Py::Dict.

Definition at line 2806 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
mapref<T> Py::MapBase< T >::operator[] ( const Object key  )  [inline]

Definition at line 2856 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
mapref<T> Py::MapBase< T >::operator[] ( const std::string &  key  )  [inline]

Definition at line 2851 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
T Py::MapBase< T >::operator[] ( const Object key  )  const [inline]

Definition at line 2846 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
T Py::MapBase< T >::operator[] ( const std::string &  key  )  const [inline]

Definition at line 2841 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
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().

template<TEMPLATE_TYPENAME T>
virtual void Py::MapBase< T >::setItem ( const std::string &  s,
const Object ob 
) [inline, virtual]

Definition at line 2898 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
virtual void Py::MapBase< T >::setItem ( const char *  s,
const Object ob 
) [inline, virtual]
template<TEMPLATE_TYPENAME T>
virtual size_type Py::MapBase< T >::size (  )  const [inline, virtual]

Definition at line 2835 of file Python2/Objects.hxx.

template<TEMPLATE_TYPENAME T>
List Py::MapBase< T >::values (  )  const [inline]

Definition at line 2935 of file Python2/Objects.hxx.


The documentation for this class was generated from the following file:

Generated on Wed Nov 23 19:02:44 2011 for FreeCAD by  doxygen 1.6.1