|
| Dictionary () |
| Default constructor.
|
|
| Dictionary (PyObject *po) |
| Construct from a Python object. More...
|
|
| Dictionary (const Dictionary &rhs) |
| Copy constructor.
|
|
| Dictionary (Dictionary &&rhs) |
| Move constructor.
|
|
void | copy (const Dictionary &rhs) |
| copies a dictionary into the current one.
|
|
void | clear () |
| Empty an existing dictionary of all key-value pairs.
|
|
Dictionary & | operator= (Dictionary &&rhs) |
| Move assignment.
|
|
Dictionary & | operator= (const Dictionary &rhs) |
| Standard assignment.
|
|
template<class Key_T > |
bool | contains (const Key_T &key) const |
| Determine if the dictionary contains key. More...
|
|
template<class Key_T , class Val_T > |
void | set_item (const Key_T &key, const Val_T &val) |
| Inserts a key-value pair into the dictionary. More...
|
|
template<class Key_T > |
void | del_item (const Key_T &key) |
| Removes an item from the dictionary. More...
|
|
template<class Key_T > |
Obj | get_item (const Key_T &key) const |
| Returns the item corresponding to a key. More...
|
|
List | items () const |
| Returns a list of all the items of the dictionary.
|
|
List | keys () const |
| Returns a list of all the keys of the dictionary.
|
|
List | values () const |
| Returns a list of all the values of the dictionary.
|
|
size_t | len () const |
| Returns the length of the dictionary.
|
|
void | update (const Dictionary &b) |
| Updates the current dictionary with the key-value pairs from another dictionary. More...
|
|
| Obj () |
| Default constructor.
|
|
| Obj (const Obj &rhs) |
| The copy-constructor. More...
|
|
| Obj (Obj &&rhs) |
| Move constructor. More...
|
|
| Obj (ProxyAttr &&rhs) |
| Move constructor from ProxyAttr objects. More...
|
|
| Obj (PyObject *po) |
| Construct from a Python object. More...
|
|
Obj & | operator= (const Obj &rhs) |
| Standard assignment.
|
|
Obj & | operator= (Obj &&rhs) |
| Move assignment.
|
|
virtual Obj & | operator= (PyObject *po) |
| Assignment from a Python object. More...
|
|
template<class T > |
Obj & | operator= (const T &val) |
| Assignment from a value. More...
|
|
virtual | ~Obj () |
| Destructor.
|
|
PyObject * | getPyObject () const |
| Returns the underlying PyObject. More...
|
|
| operator PyObject * () const |
| Automatic type conversion towards a Python object. More...
|
|
virtual PyObject * | transfer () |
| Returns the Python object with transferred ownership. More...
|
|
virtual void | incref () |
| Increments the reference count using Py_XINCREF. More...
|
|
virtual void | decref () |
| Decrements the reference count using Py_XDECREF.
|
|
void | reset () |
| Resets the object to the state given by the default constructor.
|
|
void | get_ownership () |
| Used in place of incref, when the wrapped PyObject* was increfed already.
|
|
bool | has_attr (const std::string &name) const |
| Tests if the object has a particular attribute.
|
|
ProxyAttr | attr (const std::string &name) |
| Retrieves an attribute. More...
|
|
bool | is_callable () const |
| Checks if the object is callable. More...
|
|
Obj | operator() () |
| Calling operator. More...
|
|
Obj | operator() (const Obj &args) |
| Calling operator, with positional arguments. More...
|
|
Obj | operator() (const Obj &args, const Obj &kw) |
| Calling operator, with positional and keyword arguments. More...
|
|