walberla::mesa_pd::data::ContactStorage::iterator Class Reference

#include <ContactStorage.h>

Public Types

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

Public Member Functions

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

Private Attributes

ContactStoragestorage_
 
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::ContactStorage::iterator::iterator ( ContactStorage storage,
const size_t  i 
)
inlineexplicit

◆ iterator() [2/3]

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

◆ iterator() [3/3]

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

Member Function Documentation

◆ getIdx()

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

◆ operator*()

Contact walberla::mesa_pd::data::ContactStorage::iterator::operator* ( )
inline

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator+=()

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

◆ operator--() [1/2]

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

◆ operator--() [2/2]

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

◆ operator-=()

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

◆ operator->()

Contact walberla::mesa_pd::data::ContactStorage::iterator::operator-> ( )
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

iterator& walberla::mesa_pd::data::ContactStorage::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 ( ContactStorage::iterator lhs,
ContactStorage::iterator rhs 
)
friend

Member Data Documentation

◆ i_

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

◆ storage_

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

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