CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix6::swerve::circular_buffer< T >::iterator Class Reference

#include <ctre/phoenix6/swerve/utility/circular_buffer.hpp>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = T
 
using difference_type = std::ptrdiff_t
 
using pointer = T*
 
using reference = T&
 

Public Member Functions

 iterator (circular_buffer *buffer, size_t index)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 
reference operator* ()
 

Member Typedef Documentation

◆ difference_type

template<class T >
using ctre::phoenix6::swerve::circular_buffer< T >::iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<class T >
using ctre::phoenix6::swerve::circular_buffer< T >::iterator::iterator_category = std::forward_iterator_tag

◆ pointer

template<class T >
using ctre::phoenix6::swerve::circular_buffer< T >::iterator::pointer = T*

◆ reference

template<class T >
using ctre::phoenix6::swerve::circular_buffer< T >::iterator::reference = T&

◆ value_type

template<class T >
using ctre::phoenix6::swerve::circular_buffer< T >::iterator::value_type = T

Constructor & Destructor Documentation

◆ iterator()

template<class T >
ctre::phoenix6::swerve::circular_buffer< T >::iterator::iterator ( circular_buffer * buffer,
size_t index )
inline

Member Function Documentation

◆ operator!=()

template<class T >
bool ctre::phoenix6::swerve::circular_buffer< T >::iterator::operator!= ( const iterator & other) const
inline

◆ operator*()

template<class T >
reference ctre::phoenix6::swerve::circular_buffer< T >::iterator::operator* ( )
inline

◆ operator++() [1/2]

template<class T >
iterator & ctre::phoenix6::swerve::circular_buffer< T >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<class T >
iterator ctre::phoenix6::swerve::circular_buffer< T >::iterator::operator++ ( int )
inline

◆ operator==()

template<class T >
bool ctre::phoenix6::swerve::circular_buffer< T >::iterator::operator== ( const iterator & other) const
inline

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