Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
particle_iterator.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2017 - 2019 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_particles_particle_iterator_h
17 #define dealii_particles_particle_iterator_h
18 
19 #include <deal.II/base/config.h>
20 
22 
24 
25 namespace Particles
26 {
27  // Forward declaration
28 #ifndef DOXYGEN
29  template <int, int>
30  class ParticleHandler;
31 #endif
32 
38  template <int dim, int spacedim = dim>
40  {
41  public:
45  ParticleIterator() = default;
46 
52  const std::multimap<internal::LevelInd, Particle<dim, spacedim>> &map,
53  const typename std::multimap<internal::LevelInd,
54  Particle<dim, spacedim>>::iterator
55  &particle);
56 
62 
67 
75 
80 
84  bool
86 
90  bool
92 
99  operator++();
100 
107  operator++(int);
108 
115  operator--();
116 
123  operator--(int);
124 
130  using iterator_category = std::bidirectional_iterator_tag;
132  using difference_type = std::ptrdiff_t;
135 
136  private:
141  };
142 } // namespace Particles
143 
145 
146 #endif
Particles::ParticleIterator::ParticleIterator
ParticleIterator()=default
Particles::ParticleAccessor
Definition: particle_accessor.h:43
Particles::ParticleIterator::iterator_category
std::bidirectional_iterator_tag iterator_category
Definition: particle_iterator.h:130
Particles
Definition: data_out.h:27
Particles::ParticleIterator
Definition: particle_iterator.h:39
Particles::Particle
Definition: particle.h:146
Particles::ParticleIterator::difference_type
std::ptrdiff_t difference_type
Definition: particle_iterator.h:132
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
Particles::ParticleIterator::operator==
bool operator==(const ParticleIterator< dim, spacedim > &) const
Definition: particle_iterator.cc:79
Particles::ParticleIterator::operator++
ParticleIterator & operator++()
Definition: particle_iterator.cc:88
particle_accessor.h
Particles::ParticleIterator::operator!=
bool operator!=(const ParticleIterator< dim, spacedim > &) const
Definition: particle_iterator.cc:69
Particles::internal::LevelInd
std::pair< int, int > LevelInd
Definition: particle.h:92
config.h
Particles::ParticleIterator::operator--
ParticleIterator & operator--()
Definition: particle_iterator.cc:110
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Particles::ParticleIterator::accessor
ParticleAccessor< dim, spacedim > accessor
Definition: particle_iterator.h:140
Particles::ParticleIterator::operator->
const ParticleAccessor< dim, spacedim > * operator->() const
Definition: particle_iterator.cc:41
Particles::ParticleIterator::operator*
const ParticleAccessor< dim, spacedim > & operator*() const
Definition: particle_iterator.cc:33