2D shape.
More...
#include <Point.hpp>
|
| | Point () |
| | Constructor.
|
| |
| | Point (const nlohmann::json &json) |
| | JSON constructor.
|
| |
| | Point (Point &&) |
| | Move constructor.
|
| |
| Point & | operator= (Point &&) |
| | Move assignment operator.
|
| |
| virtual | ~Point () |
| | Destructor.
|
| |
| nlohmann::json | serialize () override |
| | Serializes object.
|
| |
| void | deserialize (const nlohmann::json &json) override |
| | Deserializes from object.
|
| |
2D shape.
Definition at line 21 of file Point.hpp.
◆ Point() [1/4]
| galaxy::components::Point::Point |
( |
| ) |
|
◆ Point() [2/4]
| galaxy::components::Point::Point |
( |
const nlohmann::json & | json | ) |
|
JSON constructor.
- Parameters
-
| json | JSON defining object. |
Definition at line 21 of file Point.cpp.
◆ Point() [3/4]
| galaxy::components::Point::Point |
( |
Point && | p | ) |
|
Move constructor.
Definition at line 27 of file Point.cpp.
◆ ~Point()
| galaxy::components::Point::~Point |
( |
| ) |
|
|
virtual |
◆ Point() [4/4]
| galaxy::components::Point::Point |
( |
const Point & | | ) |
|
|
privatedelete |
◆ operator=() [1/2]
| Point & galaxy::components::Point::operator= |
( |
Point && | p | ) |
|
Move assignment operator.
Definition at line 33 of file Point.cpp.
◆ serialize()
| nlohmann::json galaxy::components::Point::serialize |
( |
| ) |
|
|
nodiscardoverride |
Serializes object.
- Returns
- JSON object containing data to be serialized.
Definition at line 47 of file Point.cpp.
◆ deserialize()
| void galaxy::components::Point::deserialize |
( |
const nlohmann::json & | json | ) |
|
|
override |
Deserializes from object.
- Parameters
-
| json | Json object to retrieve data from. |
Definition at line 61 of file Point.cpp.
◆ operator=() [2/2]
| Point & galaxy::components::Point::operator= |
( |
const Point & | | ) |
|
|
privatedelete |
Copy assignment operator.
◆ m_shape
The documentation for this class was generated from the following files: