nuklei::shared_container_iterator< Container, ContainerIterator > Class Template Reference

Public Types

typedef base_t::container_t container_t
 
typedef base_t::container_ptr container_ptr
 
typedef base_t::container_iterator container_iterator
 

Public Member Functions

 shared_container_iterator (container_ptr &index_collection)
 
template<class OtherContainerIterator >
 shared_container_iterator (shared_container_iterator< Container, OtherContainerIterator > const &r, typename boost::enable_if_convertible< OtherContainerIterator, ContainerIterator >::type *=0)
 Allows conversion from a shared_container_iterator to a const shared_container_iterator, won't allow conversion from a const shared_container_iterator to a shared_container_iterator. More...
 
shared_container_iterator< Container, ContainerIterator > begin () const
 Returns a shared_container_iterator pointing to the begining of the range.
 
shared_container_iterator< Container, ContainerIterator > end () const
 Returns a shared_container_iterator pointing to the end of the range.
 

Protected Attributes

container_ptr m_collection
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<class Container, class ContainerIterator>
class nuklei::shared_container_iterator< Container, ContainerIterator >

Definition at line 31 of file shared_container_iterator.h.

Constructor & Destructor Documentation

◆ shared_container_iterator()

template<class Container , class ContainerIterator >
template<class OtherContainerIterator >
nuklei::shared_container_iterator< Container, ContainerIterator >::shared_container_iterator ( shared_container_iterator< Container, OtherContainerIterator > const &  r,
typename boost::enable_if_convertible< OtherContainerIterator, ContainerIterator >::type *  = 0 
)
inline

Allows conversion from a shared_container_iterator to a const shared_container_iterator, won't allow conversion from a const shared_container_iterator to a shared_container_iterator.

By “const shared_container_iterator”, we mean that the ContainerIterator is const, e.g. std::vector<Particle>::const_iterator.

Definition at line 90 of file shared_container_iterator.h.


The documentation for this class was generated from the following file:
© Copyright 2007-2013 Renaud Detry.
Distributed under the terms of the GNU General Public License (GPL).
(See accompanying file LICENSE.txt or copy at http://www.gnu.org/copyleft/gpl.html.)
Revised Sun Sep 13 2020 19:10:13.