HepMC3 event record library
Protected Types | Protected Member Functions | Private Attributes
dict_readonly Class Reference

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

#include <pytypes.h>

+ Collaboration diagram for dict_readonly:

Protected Types

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

Protected Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 711 of file pytypes.h.


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