SEVN
Loading...
Searching...
No Matches
unified.h
Go to the documentation of this file.
1/*
2 Created by iorio on 7/26/22.
3 it includes:
4- Class Unified: Kicks from Giacobbo & Mapelli 2020, https://ui.adsabs.harvard.edu/abs/2020ApJ...891..141G/abstract
5*/
6#ifndef SEVN_UNIFIED_H
7#define SEVN_UNIFIED_H
8
9#include <kicks.h>
10
17class Unified : public Kicks{
18
19 Unified(bool reg = true){
20 if(reg) {
21 Register(this, name());
22 }
23 }
24
26
27 void _apply(Star *s) override;
28
30 return (new Unified(false));
31 }
32
33 inline std::string name() override { return "unified"; }
34
35};
36
37
38#endif //SEVN_UNIFIED_H
Definition: kicks.h:24
void Register(Kicks *ptr, const std::string &_name)
Definition: kicks.h:56
Definition: star.h:39
Definition: unified.h:17
std::string name() override
Definition: unified.h:33
Unified * instance()
Definition: unified.h:29
Unified(bool reg=true)
Definition: unified.h:19
static Unified _unified
Definition: unified.h:25
void _apply(Star *s) override
Definition: unified.cpp:9