group_particles
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Callback< AFields >::BaseProperties< T > Class Template Reference

Type describing either a group or a particle. More...

#include <callback.hpp>

Public Member Functions

auto coord () const
 
template<typename Field >
auto get () const
 Returns the individual properties.
 

Detailed Description

template<typename AFields>
template<typename T>
class Callback< AFields >::BaseProperties< T >

Type describing either a group or a particle.

Template Parameters
Teither AFields::GroupFields or AllFields::ParticleFields

This type contains all the information about a group or particle read from the data files (with the AFields template parameter controlling which fields are to be read). User should only use the get method to retrieve the information they need.

Specializations are in Callback::GrpProperties and Callback::PrtProperties.

Member Function Documentation

◆ coord()

template<typename AFields >
template<typename T >
auto Callback< AFields >::BaseProperties< T >::coord ( ) const
inline

Special case of the get method, returning the coordinate field.

◆ get()

template<typename AFields >
template<typename T >
template<typename Field >
auto Callback< AFields >::BaseProperties< T >::get ( ) const
inline

Returns the individual properties.

Template Parameters
Fieldthe field whose value should be retrieved.
Returns
If the Field is 1-dimensional (e.g. a group mass), the value will be returned. Otherwise (e.g. for a particle velocity), a pointer to the first element will be returned.

The documentation for this class was generated from the following file: