Protected Types | Protected Member Functions | Private Attributes | List of all members
dict_readonly Class Reference

Python's dictionary protocol permits this to be a forward iterator. More...

#include <pytypes.h>

Protected Types

using iterator_category = std::forward_iterator_tag
 
using pointer = arrow_proxy< const value_type >
 
using reference = const value_type
 
using value_type = std::pair< handle, handle >
 

Protected Member Functions

reference dereference () const
 
 dict_readonly ()=default
 
 dict_readonly (handle obj, ssize_t pos)
 
bool equal (const dict_readonly &b) const
 
void increment ()
 

Private Attributes

PyObject * key = nullptr
 
handle obj
 
ssize_t pos = -1
 
PyObject * value = nullptr
 

Detailed Description

Python's dictionary protocol permits this to be a forward iterator.

Definition at line 711 of file pytypes.h.

Member Typedef Documentation

using dict_readonly::iterator_category = std::forward_iterator_tag
protected

Definition at line 713 of file pytypes.h.

using dict_readonly::pointer = arrow_proxy<const value_type>
protected

Definition at line 716 of file pytypes.h.

using dict_readonly::reference = const value_type
protected

Definition at line 715 of file pytypes.h.

using dict_readonly::value_type = std::pair<handle, handle>
protected

Definition at line 714 of file pytypes.h.

Constructor & Destructor Documentation

dict_readonly::dict_readonly ( )
protecteddefault
dict_readonly::dict_readonly ( handle  obj,
ssize_t  pos 
)
inlineprotected

Definition at line 719 of file pytypes.h.

Member Function Documentation

reference dict_readonly::dereference ( ) const
inlineprotected

Definition at line 721 of file pytypes.h.

bool dict_readonly::equal ( const dict_readonly b) const
inlineprotected

Definition at line 723 of file pytypes.h.

void dict_readonly::increment ( )
inlineprotected

Definition at line 722 of file pytypes.h.

Member Data Documentation

PyObject* dict_readonly::key = nullptr
private

Definition at line 727 of file pytypes.h.

handle dict_readonly::obj
private

Definition at line 726 of file pytypes.h.

ssize_t dict_readonly::pos = -1
private

Definition at line 728 of file pytypes.h.

PyObject * dict_readonly::value = nullptr
private

Definition at line 727 of file pytypes.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:47