group_particles
Loading...
Searching...
No Matches
callback_utils_name.hpp
Go to the documentation of this file.
1
6#ifndef CALLBACK_UTILS_NAME_HPP
7#define CALLBACK_UTILS_NAME_HPP
8
9#include <string>
10
11#include "callback.hpp"
12
13namespace CallbackUtils {
14
17namespace name
18{
19
24 template<typename AFields, uint8_t PartType>
25 struct Illustris :
26 virtual public Callback<AFields>
27 {// {{{
28 std::string grp_name () const override final
29 {
30 return "Group/";
31 }
32 std::string prt_name () const override final
33 {
34 return "PartType" + std::to_string(PartType)+"/";
35 }
36 };// }}}
37
42 template<typename AFields>
43 struct Gadget :
44 virtual public Callback<AFields>,
45 public Illustris<AFields, 1>
46 { };
47
48} // namespace name
49
50} // namespace CallbackUtils
51
52#endif // CALLBACK_UTILS_NAME_HPP
Contains the abstract base class that the user should subclass from in order to define the desired fu...
contains classes that implement parts of the Callback base.
Definition callback_utils.hpp:35
The abstract base class the user should inherit from.
Definition callback.hpp:32
Gadget-type hdf5 format.
Definition callback_utils_name.hpp:46
Illustris-type hdf5 format.
Definition callback_utils_name.hpp:27