Use unique_ptr instead of raw pointer
This commit is contained in:
@@ -4,22 +4,18 @@
|
||||
#include "base.h"
|
||||
#include "coordinates.h"
|
||||
|
||||
#include <random>
|
||||
|
||||
namespace motions {
|
||||
class RandomJumpOnCone final: public BaseMotion {
|
||||
public:
|
||||
RandomJumpOnCone(double, double, double, std::mt19937_64&);
|
||||
explicit RandomJumpOnCone(std::mt19937_64&);
|
||||
RandomJumpOnCone(double, double, double);
|
||||
RandomJumpOnCone();
|
||||
|
||||
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;
|
||||
|
||||
void setParameters(const std::unordered_map<std::string, double> &) override;
|
||||
|
||||
[[nodiscard]] std::unordered_map<std::string, double> getParameters() const override;
|
||||
|
||||
[[nodiscard]] std::string toString() const override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user