μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Protected Types | Protected Member Functions | Private Attributes | List of all members
sequence_fast_readonly Class Reference

Lightweight iterator policy using just a simple pointer: see PySequence_Fast_ITEMS More...

#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/pytypes.h>

Protected Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = handle
 
using reference = const handle
 
using pointer = arrow_proxy< const handle >
 
using iterator_category = std::random_access_iterator_tag
 
using value_type = handle
 
using reference = const handle
 
using pointer = arrow_proxy< const handle >
 

Protected Member Functions

 sequence_fast_readonly (handle obj, ssize_t n)
 
reference dereference () const
 
void increment ()
 
void decrement ()
 
void advance (ssize_t n)
 
bool equal (const sequence_fast_readonly &b) const
 
ssize_t distance_to (const sequence_fast_readonly &b) const
 
 sequence_fast_readonly (handle obj, ssize_t n)
 
reference dereference () const
 
void increment ()
 
void decrement ()
 
void advance (ssize_t n)
 
bool equal (const sequence_fast_readonly &b) const
 
ssize_t distance_to (const sequence_fast_readonly &b) const
 

Private Attributes

PyObject ** ptr
 

Detailed Description

Lightweight iterator policy using just a simple pointer: see PySequence_Fast_ITEMS

Definition at line 896 of file pytypes.h.

Member Typedef Documentation

◆ iterator_category [1/2]

using sequence_fast_readonly::iterator_category = std::random_access_iterator_tag
protected

Definition at line 898 of file pytypes.h.

◆ iterator_category [2/2]

using sequence_fast_readonly::iterator_category = std::random_access_iterator_tag
protected

Definition at line 1163 of file pytypes.h.

◆ pointer [1/2]

Definition at line 901 of file pytypes.h.

◆ pointer [2/2]

Definition at line 1166 of file pytypes.h.

◆ reference [1/2]

using sequence_fast_readonly::reference = const handle
protected

Definition at line 900 of file pytypes.h.

◆ reference [2/2]

using sequence_fast_readonly::reference = const handle
protected

Definition at line 1165 of file pytypes.h.

◆ value_type [1/2]

Definition at line 899 of file pytypes.h.

◆ value_type [2/2]

Definition at line 1164 of file pytypes.h.

Constructor & Destructor Documentation

◆ sequence_fast_readonly() [1/2]

sequence_fast_readonly::sequence_fast_readonly ( handle  obj,
ssize_t  n 
)
inlineprotected

Definition at line 903 of file pytypes.h.

◆ sequence_fast_readonly() [2/2]

sequence_fast_readonly::sequence_fast_readonly ( handle  obj,
ssize_t  n 
)
inlineprotected

Definition at line 1168 of file pytypes.h.

Member Function Documentation

◆ advance() [1/2]

void sequence_fast_readonly::advance ( ssize_t  n)
inlineprotected

Definition at line 909 of file pytypes.h.

References ptr.

◆ advance() [2/2]

void sequence_fast_readonly::advance ( ssize_t  n)
inlineprotected

Definition at line 1174 of file pytypes.h.

References ptr.

◆ decrement() [1/2]

void sequence_fast_readonly::decrement ( )
inlineprotected

Definition at line 908 of file pytypes.h.

References ptr.

◆ decrement() [2/2]

void sequence_fast_readonly::decrement ( )
inlineprotected

Definition at line 1173 of file pytypes.h.

References ptr.

◆ dereference() [1/2]

reference sequence_fast_readonly::dereference ( ) const
inlineprotected

Definition at line 906 of file pytypes.h.

References ptr.

◆ dereference() [2/2]

reference sequence_fast_readonly::dereference ( ) const
inlineprotected

Definition at line 1171 of file pytypes.h.

References ptr.

◆ distance_to() [1/2]

ssize_t sequence_fast_readonly::distance_to ( const sequence_fast_readonly b) const
inlineprotected

Definition at line 911 of file pytypes.h.

References ptr.

◆ distance_to() [2/2]

ssize_t sequence_fast_readonly::distance_to ( const sequence_fast_readonly b) const
inlineprotected

Definition at line 1176 of file pytypes.h.

References ptr.

◆ equal() [1/2]

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

Definition at line 910 of file pytypes.h.

References ptr.

◆ equal() [2/2]

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

Definition at line 1175 of file pytypes.h.

References ptr.

◆ increment() [1/2]

void sequence_fast_readonly::increment ( )
inlineprotected

Definition at line 907 of file pytypes.h.

References ptr.

◆ increment() [2/2]

void sequence_fast_readonly::increment ( )
inlineprotected

Definition at line 1172 of file pytypes.h.

References ptr.

Member Data Documentation

◆ ptr

PyObject ** sequence_fast_readonly::ptr
private

Definition at line 914 of file pytypes.h.

Referenced by advance(), decrement(), dereference(), distance_to(), equal(), and increment().


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