16 #include <deal.II/particles/particle_accessor.h> 18 DEAL_II_NAMESPACE_OPEN
22 template <
int dim,
int spacedim>
30 template <
int dim,
int spacedim>
33 const typename std::multimap<internal::LevelInd,
42 template <
int dim,
int spacedim>
48 particle->second.write_data(data);
53 template <
int dim,
int spacedim>
59 particle->second.set_location(new_loc);
64 template <
int dim,
int spacedim>
70 return particle->second.get_location();
75 template <
int dim,
int spacedim>
82 particle->second.set_reference_location(new_loc);
87 template <
int dim,
int spacedim>
93 return particle->second.get_reference_location();
98 template <
int dim,
int spacedim>
104 return particle->second.get_id();
109 template <
int dim,
int spacedim>
116 particle->second.set_property_pool(new_property_pool);
121 template <
int dim,
int spacedim>
127 return particle->second.has_properties();
132 template <
int dim,
int spacedim>
135 const std::vector<double> &new_properties)
139 particle->second.set_properties(new_properties);
145 template <
int dim,
int spacedim>
151 return particle->second.get_properties();
156 template <
int dim,
int spacedim>
164 &triangulation, particle->first.first, particle->first.second);
170 template <
int dim,
int spacedim>
176 return particle->second.get_properties();
181 template <
int dim,
int spacedim>
187 return particle->second.serialized_size_in_bytes();
192 template <
int dim,
int spacedim>
202 template <
int dim,
int spacedim>
212 template <
int dim,
int spacedim>
217 return (map != other.
map) || (particle != other.
particle);
222 template <
int dim,
int spacedim>
227 return (map == other.
map) && (particle == other.
particle);
231 DEAL_II_NAMESPACE_CLOSE
233 DEAL_II_NAMESPACE_OPEN
235 #include "particle_accessor.inst" 237 DEAL_II_NAMESPACE_CLOSE
std::multimap< internal::LevelInd, Particle< dim, spacedim > > * map
std::multimap< internal::LevelInd, Particle< dim, spacedim > >::iterator particle
const Point< spacedim > & get_location() const
void set_property_pool(PropertyPool &property_pool)
void set_reference_location(const Point< dim > &new_reference_location)
const ArrayView< double > get_properties()
Triangulation< dim, spacedim >::cell_iterator get_surrounding_cell(const Triangulation< dim, spacedim > &triangulation) const
unsigned int particle_index
const Point< dim > & get_reference_location() const
types::particle_index get_id() const
bool has_properties() const
void write_data(void *&data) const
#define Assert(cond, exc)
void set_location(const Point< spacedim > &new_location)
void set_properties(const std::vector< double > &new_properties)
std::size_t serialized_size_in_bytes() const
bool operator==(const ParticleAccessor< dim, spacedim > &other) const
bool operator!=(const ParticleAccessor< dim, spacedim > &other) const
static ::ExceptionBase & ExcInternalError()