Use unique_ptr instead of raw pointer
This commit is contained in:
@@ -4,23 +4,23 @@
|
||||
|
||||
#include "base.h"
|
||||
|
||||
#include <random>
|
||||
#include <cmath>
|
||||
#include <array>
|
||||
|
||||
namespace motions {
|
||||
class SixSiteOctahedronC3 final : public BaseMotion {
|
||||
public:
|
||||
SixSiteOctahedronC3(double, double, double, std::mt19937_64&);
|
||||
explicit SixSiteOctahedronC3(std::mt19937_64&);
|
||||
SixSiteOctahedronC3(double, double, double);
|
||||
SixSiteOctahedronC3();
|
||||
|
||||
void initialize() override;
|
||||
double jump() override;
|
||||
void initialize(std::mt19937_64& rng) override;
|
||||
double jump(std::mt19937_64& rng) override;
|
||||
[[nodiscard]] std::unique_ptr<BaseMotion> clone() const override;
|
||||
|
||||
[[nodiscard]] std::string toString() const override;
|
||||
|
||||
private:
|
||||
const double m_chi{0.95531661812450927816385710251575775424341469501000549095969812932191204590}; // 54.74 deg
|
||||
double m_chi{0.95531661812450927816385710251575775424341469501000549095969812932191204590}; // 54.74 deg
|
||||
|
||||
std::array<double, 6> m_corners{};
|
||||
int m_corner_idx{0};
|
||||
|
||||
Reference in New Issue
Block a user