template <int dim, int spacedim>
template <class Archive>
- void
+ inline void
Particle<dim, spacedim>::load(Archive &ar, const unsigned int)
{
unsigned int n_properties = 0;
template <int dim, int spacedim>
template <class Archive>
- void
+ inline void
Particle<dim, spacedim>::save(Archive &ar, const unsigned int) const
{
unsigned int n_properties = 0;
template <int dim, int spacedim>
- void
+ inline void
Particle<dim, spacedim>::set_location(const Point<spacedim> &new_loc)
{
location = new_loc;
template <int dim, int spacedim>
- const Point<spacedim> &
+ inline const Point<spacedim> &
Particle<dim, spacedim>::get_location() const
{
return location;
template <int dim, int spacedim>
- void
+ inline void
Particle<dim, spacedim>::set_reference_location(const Point<dim> &new_loc)
{
reference_location = new_loc;
template <int dim, int spacedim>
- const Point<dim> &
+ inline const Point<dim> &
Particle<dim, spacedim>::get_reference_location() const
{
return reference_location;
template <int dim, int spacedim>
- types::particle_index
+ inline types::particle_index
Particle<dim, spacedim>::get_id() const
{
return id;
template <int dim, int spacedim>
- void
+ inline void
Particle<dim, spacedim>::set_id(const types::particle_index &new_id)
{
id = new_id;
template <int dim, int spacedim>
- void
+ inline void
Particle<dim, spacedim>::set_property_pool(PropertyPool &new_property_pool)
{
property_pool = &new_property_pool;
template <int dim, int spacedim>
- const ArrayView<const double>
+ inline const ArrayView<const double>
Particle<dim, spacedim>::get_properties() const
{
Assert(has_properties(), ExcInternalError());
template <int dim, int spacedim>
- bool
+ inline bool
Particle<dim, spacedim>::has_properties() const
{
return (property_pool != nullptr) &&
// ------------------------- inline functions ------------------------------
+
template <int dim, int spacedim>
- ParticleAccessor<dim, spacedim>::ParticleAccessor()
+ inline ParticleAccessor<dim, spacedim>::ParticleAccessor()
: map(nullptr)
, particle()
{}
template <int dim, int spacedim>
- ParticleAccessor<dim, spacedim>::ParticleAccessor(
+ inline ParticleAccessor<dim, spacedim>::ParticleAccessor(
const std::multimap<internal::LevelInd, Particle<dim, spacedim>> &map,
const typename std::multimap<internal::LevelInd,
Particle<dim, spacedim>>::iterator & particle)
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::write_data(void *&data) const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::set_location(const Point<spacedim> &new_loc)
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- const Point<spacedim> &
+ inline const Point<spacedim> &
ParticleAccessor<dim, spacedim>::get_location() const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::set_reference_location(
const Point<dim> &new_loc)
{
template <int dim, int spacedim>
- const Point<dim> &
+ inline const Point<dim> &
ParticleAccessor<dim, spacedim>::get_reference_location() const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- types::particle_index
+ inline types::particle_index
ParticleAccessor<dim, spacedim>::get_id() const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::set_property_pool(
PropertyPool &new_property_pool)
{
template <int dim, int spacedim>
- bool
+ inline bool
ParticleAccessor<dim, spacedim>::has_properties() const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::set_properties(
const std::vector<double> &new_properties)
{
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::set_properties(
const ArrayView<const double> &new_properties)
{
template <int dim, int spacedim>
- const ArrayView<const double>
+ inline const ArrayView<const double>
ParticleAccessor<dim, spacedim>::get_properties() const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- typename Triangulation<dim, spacedim>::cell_iterator
+ inline typename Triangulation<dim, spacedim>::cell_iterator
ParticleAccessor<dim, spacedim>::get_surrounding_cell(
const Triangulation<dim, spacedim> &triangulation) const
{
template <int dim, int spacedim>
- const ArrayView<double>
+ inline const ArrayView<double>
ParticleAccessor<dim, spacedim>::get_properties()
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- std::size_t
+ inline std::size_t
ParticleAccessor<dim, spacedim>::serialized_size_in_bytes() const
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::next()
{
Assert(particle != map->end(), ExcInternalError());
template <int dim, int spacedim>
- void
+ inline void
ParticleAccessor<dim, spacedim>::prev()
{
Assert(particle != map->begin(), ExcInternalError());
template <int dim, int spacedim>
- bool
+ inline bool
ParticleAccessor<dim, spacedim>::
operator!=(const ParticleAccessor<dim, spacedim> &other) const
{
template <int dim, int spacedim>
- bool
+ inline bool
ParticleAccessor<dim, spacedim>::
operator==(const ParticleAccessor<dim, spacedim> &other) const
{
// ------------------------------ inline functions -------------------------
template <int dim, int spacedim>
- ParticleIterator<dim, spacedim>::ParticleIterator(
+ inline ParticleIterator<dim, spacedim>::ParticleIterator(
const std::multimap<internal::LevelInd, Particle<dim, spacedim>> &map,
const typename std::multimap<internal::LevelInd,
Particle<dim, spacedim>>::iterator & particle)
template <int dim, int spacedim>
- ParticleAccessor<dim, spacedim> &ParticleIterator<dim, spacedim>::operator*()
+ inline ParticleAccessor<dim, spacedim> &ParticleIterator<dim, spacedim>::
+ operator*()
{
return accessor;
}
template <int dim, int spacedim>
- ParticleAccessor<dim, spacedim> *ParticleIterator<dim, spacedim>::operator->()
+ inline ParticleAccessor<dim, spacedim> *ParticleIterator<dim, spacedim>::
+ operator->()
{
return &(this->operator*());
}
template <int dim, int spacedim>
- const ParticleAccessor<dim, spacedim> &ParticleIterator<dim, spacedim>::
- operator*() const
+ inline const ParticleAccessor<dim, spacedim> &
+ ParticleIterator<dim, spacedim>::operator*() const
{
return accessor;
}
template <int dim, int spacedim>
- const ParticleAccessor<dim, spacedim> *ParticleIterator<dim, spacedim>::
- operator->() const
+ inline const ParticleAccessor<dim, spacedim> *
+ ParticleIterator<dim, spacedim>::operator->() const
{
return &(this->operator*());
}
template <int dim, int spacedim>
- bool
+ inline bool
ParticleIterator<dim, spacedim>::
operator!=(const ParticleIterator<dim, spacedim> &other) const
{
template <int dim, int spacedim>
- bool
+ inline bool
ParticleIterator<dim, spacedim>::
operator==(const ParticleIterator<dim, spacedim> &other) const
{
template <int dim, int spacedim>
- ParticleIterator<dim, spacedim> &
+ inline ParticleIterator<dim, spacedim> &
ParticleIterator<dim, spacedim>::operator++()
{
accessor.next();
template <int dim, int spacedim>
- ParticleIterator<dim, spacedim>
+ inline ParticleIterator<dim, spacedim>
ParticleIterator<dim, spacedim>::operator++(int)
{
ParticleIterator tmp(*this);
template <int dim, int spacedim>
- ParticleIterator<dim, spacedim> &
+ inline ParticleIterator<dim, spacedim> &
ParticleIterator<dim, spacedim>::operator--()
{
accessor.prev();
template <int dim, int spacedim>
- ParticleIterator<dim, spacedim>
+ inline ParticleIterator<dim, spacedim>
ParticleIterator<dim, spacedim>::operator--(int)
{
ParticleIterator tmp(*this);