cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Protected Types | Protected Member Functions | 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 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
 

Detailed Description

Lightweight iterator policy using just a simple pointer: see PySequence_Fast_ITEMS

Definition at line 670 of file pytypes.h.

Member Typedef Documentation

◆ iterator_category

using sequence_fast_readonly::iterator_category = std::random_access_iterator_tag
protected

Definition at line 672 of file pytypes.h.

◆ pointer

Definition at line 675 of file pytypes.h.

◆ reference

using sequence_fast_readonly::reference = const handle
protected

Definition at line 674 of file pytypes.h.

◆ value_type

Definition at line 673 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 677 of file pytypes.h.

Member Function Documentation

◆ advance()

void sequence_fast_readonly::advance ( ssize_t  n)
inlineprotected

Definition at line 682 of file pytypes.h.

◆ decrement()

void sequence_fast_readonly::decrement ( )
inlineprotected

Definition at line 681 of file pytypes.h.

◆ dereference()

reference sequence_fast_readonly::dereference ( ) const
inlineprotected

Definition at line 679 of file pytypes.h.

◆ distance_to()

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

Definition at line 684 of file pytypes.h.

◆ equal()

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

Definition at line 683 of file pytypes.h.

◆ increment()

void sequence_fast_readonly::increment ( )
inlineprotected

Definition at line 680 of file pytypes.h.


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