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 <pytypes.h>

Protected Types

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

Protected Member Functions

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

Private Attributes

PyObject ** ptr
 

Detailed Description

Lightweight iterator policy using just a simple pointer: see PySequence_Fast_ITEMS

Definition at line 1099 of file pytypes.h.

Member Typedef Documentation

◆ iterator_category

using sequence_fast_readonly::iterator_category = std::random_access_iterator_tag
protected

Definition at line 1101 of file pytypes.h.

◆ pointer

Definition at line 1104 of file pytypes.h.

◆ reference

using sequence_fast_readonly::reference = const handle
protected

Definition at line 1103 of file pytypes.h.

◆ value_type

Definition at line 1102 of file pytypes.h.

Constructor & Destructor Documentation

◆ sequence_fast_readonly()

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

Definition at line 1106 of file pytypes.h.

Member Function Documentation

◆ advance()

void sequence_fast_readonly::advance ( ssize_t  n)
inlineprotected

Definition at line 1112 of file pytypes.h.

◆ decrement()

void sequence_fast_readonly::decrement ( )
inlineprotected

Definition at line 1111 of file pytypes.h.

◆ dereference()

reference sequence_fast_readonly::dereference ( ) const
inlineprotected

Definition at line 1109 of file pytypes.h.

◆ distance_to()

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

Definition at line 1114 of file pytypes.h.

◆ equal()

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

Definition at line 1113 of file pytypes.h.

◆ increment()

void sequence_fast_readonly::increment ( )
inlineprotected

Definition at line 1110 of file pytypes.h.

Member Data Documentation

◆ ptr

PyObject** sequence_fast_readonly::ptr
private

Definition at line 1117 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:06