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 1143 of file pytypes.h.

Member Typedef Documentation

◆ iterator_category

using dict_readonly::iterator_category = std::forward_iterator_tag
protected

Definition at line 1145 of file pytypes.h.

◆ pointer

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

Definition at line 1148 of file pytypes.h.

◆ reference

using dict_readonly::reference = const value_type
protected

Definition at line 1147 of file pytypes.h.

◆ value_type

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

Definition at line 1146 of file pytypes.h.

Constructor & Destructor Documentation

◆ dict_readonly() [1/2]

dict_readonly::dict_readonly ( )
protecteddefault

◆ dict_readonly() [2/2]

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

Definition at line 1151 of file pytypes.h.

Member Function Documentation

◆ dereference()

reference dict_readonly::dereference ( ) const
inlineprotected

Definition at line 1154 of file pytypes.h.

◆ equal()

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

Definition at line 1160 of file pytypes.h.

◆ increment()

void dict_readonly::increment ( )
inlineprotected

Definition at line 1155 of file pytypes.h.

Member Data Documentation

◆ key

PyObject* dict_readonly::key = nullptr
private

Definition at line 1164 of file pytypes.h.

◆ obj

handle dict_readonly::obj
private

Definition at line 1163 of file pytypes.h.

◆ pos

ssize_t dict_readonly::pos = -1
private

Definition at line 1165 of file pytypes.h.

◆ value

PyObject * dict_readonly::value = nullptr
private

Definition at line 1164 of file pytypes.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:02