#include <RigidBodyCastIterator.h>
Public Types | |
using | ContainerType = std::vector< std::unique_ptr< RigidBody > > |
using | iterator_category = std::forward_iterator_tag |
using | value_type = C const |
using | pointer = C const * |
using | reference = C const & |
using | difference_type = std::ptrdiff_t |
Public Member Functions | |
Constructors | |
ConstRigidBodyCastIterator ()=default | |
ConstRigidBodyCastIterator (const typename ContainerType::const_iterator &begin, const typename ContainerType::const_iterator &end) | |
Standard constructor for CastIterator. More... | |
ConstRigidBodyCastIterator (const ConstRigidBodyCastIterator< C > &it)=default | |
ConstRigidBodyCastIterator (ConstRigidBodyCastIterator< C > &&it)=default | |
ConstRigidBodyCastIterator & | operator= (const ConstRigidBodyCastIterator< C > &it)=default |
ConstRigidBodyCastIterator & | operator= (ConstRigidBodyCastIterator< C > &&it)=default |
Operators | |
ConstRigidBodyCastIterator< C > & | operator++ () |
Pre-increment operator. More... | |
ConstRigidBodyCastIterator< C > | operator++ (int) |
Access operators | |
reference | operator* () |
pointer | operator-> () |
Utility functions | |
pointer | getBodyID () |
Private Attributes | |
Member variables | |
ContainerType::const_iterator | cur_ |
Pointer to the current memory location. More... | |
ContainerType::const_iterator | end_ |
Pointer to the element one past the last element in the element range. More... | |
Friends | |
template<typename C2 > | |
bool | operator== (const ConstRigidBodyCastIterator< C2 > &lhs, const ConstRigidBodyCastIterator< C2 > &rhs) |
template<typename C2 > | |
bool | operator!= (const ConstRigidBodyCastIterator< C2 > &lhs, const ConstRigidBodyCastIterator< C2 > &rhs) |
using walberla::pe::ConstRigidBodyCastIterator< C >::ContainerType = std::vector< std::unique_ptr<RigidBody> > |
using walberla::pe::ConstRigidBodyCastIterator< C >::difference_type = std::ptrdiff_t |
using walberla::pe::ConstRigidBodyCastIterator< C >::iterator_category = std::forward_iterator_tag |
using walberla::pe::ConstRigidBodyCastIterator< C >::pointer = C const * |
using walberla::pe::ConstRigidBodyCastIterator< C >::reference = C const & |
using walberla::pe::ConstRigidBodyCastIterator< C >::value_type = C const |
|
inlinedefault |
|
inlineexplicit |
Standard constructor for CastIterator.
begin | The beginning of the element range. |
end | The end of the element range. |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
Pre-increment operator.
|
inline |
|
inline |
|
default |
|
default |
|
friend |
|
friend |
|
private |
Pointer to the current memory location.
|
private |
Pointer to the element one past the last element in the element range.