walberla::mesa_pd::data::ParticleStorage::iterator Class Reference

#include <ParticleStorage.h>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = Particle
 
using pointer = Particle *
 
using reference = Particle &
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 iterator (ParticleStorage *storage, const size_t i)
 
 iterator (const iterator &it)=default
 
 iterator (iterator &&it)=default
 
iteratoroperator= (const iterator &)=default
 
iteratoroperator= (iterator &&)=default
 
Particle operator* () const
 
Particle operator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator+= (const size_t n)
 
iteratoroperator-= (const size_t n)
 
size_t getIdx () const
 

Private Attributes

ParticleStoragestorage_
 
size_t i_
 

Friends

iterator operator+ (const iterator &it, const size_t n)
 
iterator operator+ (const size_t n, const iterator &it)
 
iterator operator- (const iterator &it, const size_t n)
 
difference_type operator- (const iterator &lhs, const iterator &rhs)
 
bool operator== (const iterator &lhs, const iterator &rhs)
 
bool operator!= (const iterator &lhs, const iterator &rhs)
 
bool operator< (const iterator &lhs, const iterator &rhs)
 
bool operator> (const iterator &lhs, const iterator &rhs)
 
bool operator<= (const iterator &lhs, const iterator &rhs)
 
bool operator>= (const iterator &lhs, const iterator &rhs)
 
void swap (iterator &lhs, iterator &rhs)
 

Member Typedef Documentation

◆ difference_type

◆ iterator_category

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ iterator() [1/3]

walberla::mesa_pd::data::ParticleStorage::iterator::iterator ( ParticleStorage storage,
const size_t  i 
)
inlineexplicit

◆ iterator() [2/3]

walberla::mesa_pd::data::ParticleStorage::iterator::iterator ( const iterator it)
default

◆ iterator() [3/3]

walberla::mesa_pd::data::ParticleStorage::iterator::iterator ( iterator &&  it)
default

Member Function Documentation

◆ getIdx()

size_t walberla::mesa_pd::data::ParticleStorage::iterator::getIdx ( ) const
inline

◆ operator*()

Particle walberla::mesa_pd::data::ParticleStorage::iterator::operator* ( ) const
inline

◆ operator++() [1/2]

iterator& walberla::mesa_pd::data::ParticleStorage::iterator::operator++ ( )
inline

◆ operator++() [2/2]

iterator walberla::mesa_pd::data::ParticleStorage::iterator::operator++ ( int  )
inline

◆ operator+=()

iterator& walberla::mesa_pd::data::ParticleStorage::iterator::operator+= ( const size_t  n)
inline

◆ operator--() [1/2]

iterator& walberla::mesa_pd::data::ParticleStorage::iterator::operator-- ( )
inline

◆ operator--() [2/2]

iterator walberla::mesa_pd::data::ParticleStorage::iterator::operator-- ( int  )
inline

◆ operator-=()

iterator& walberla::mesa_pd::data::ParticleStorage::iterator::operator-= ( const size_t  n)
inline

◆ operator->()

Particle walberla::mesa_pd::data::ParticleStorage::iterator::operator-> ( ) const
inline

◆ operator=() [1/2]

iterator& walberla::mesa_pd::data::ParticleStorage::iterator::operator= ( const iterator )
default

◆ operator=() [2/2]

iterator& walberla::mesa_pd::data::ParticleStorage::iterator::operator= ( iterator &&  )
default

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const iterator lhs,
const iterator rhs 
)
friend

◆ operator+ [1/2]

iterator operator+ ( const iterator it,
const size_t  n 
)
friend

◆ operator+ [2/2]

iterator operator+ ( const size_t  n,
const iterator it 
)
friend

◆ operator- [1/2]

iterator operator- ( const iterator it,
const size_t  n 
)
friend

◆ operator- [2/2]

difference_type operator- ( const iterator lhs,
const iterator rhs 
)
friend

◆ operator<

bool operator< ( const iterator lhs,
const iterator rhs 
)
friend

◆ operator<=

bool operator<= ( const iterator lhs,
const iterator rhs 
)
friend

◆ operator==

bool operator== ( const iterator lhs,
const iterator rhs 
)
friend

◆ operator>

bool operator> ( const iterator lhs,
const iterator rhs 
)
friend

◆ operator>=

bool operator>= ( const iterator lhs,
const iterator rhs 
)
friend

◆ swap

void swap ( ParticleStorage::iterator lhs,
ParticleStorage::iterator rhs 
)
friend

Member Data Documentation

◆ i_

size_t walberla::mesa_pd::data::ParticleStorage::iterator::i_
private

◆ storage_

ParticleStorage* walberla::mesa_pd::data::ParticleStorage::iterator::storage_
private

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