#include <Axis.h>
Definition at line 33 of file Axis.h.
◆ Axis()
bio::physical::Axis::Axis |
( |
| ) |
|
◆ ~Axis()
bio::physical::Axis::~Axis |
( |
| ) |
|
|
virtual |
◆ Encode()
std::string bio::physical::Axis::Encode |
( |
Symmetry * |
symmetry | ) |
const |
|
protectedvirtual |
Encode a single Symmetry Override this to add handlers (e.g. a switch(symmetry->GetId()) for your own SymmetryTypes, then call the parent method to handle other SymmetryTypes. Decoding is not so easy and requires overloading Rotate(std::string) directly (if we know which parts of the string are which Symmetries, then there would be no need to decode at the Axis level).
- Parameters
-
- Returns
- the text corresponding to the given, singular Symmetry or Failed().
Definition at line 66 of file Axis.cpp.
67{
69}
static std::string Failed()
References Failed().
Referenced by bio::chemical::Axis::Rotate(), and Rotate().
◆ Failed()
std::string bio::physical::Axis::Failed |
( |
| ) |
|
|
static |
Used as a bad return value by other methods.
- Returns
- "FAILED"
Definition at line 39 of file Axis.cpp.
40{
41 return "FAILED";
42}
Referenced by Encode(), and operator|().
◆ operator()()
Symmetry * bio::physical::Axis::operator() |
( |
std::string |
encoded | ) |
const |
|
virtual |
(*myWave) | jsonAxis("...");
- Parameters
-
- Returns
- Rotate(encoded) or NULL.
Definition at line 61 of file Axis.cpp.
62{
64}
virtual std::string Rotate(Symmetry *symmetry) const
References Rotate().
◆ operator|()
std::string bio::physical::Axis::operator| |
( |
Wave * |
particle | ) |
const |
|
virtual |
◆ Rotate() [1/2]
Symmetry * bio::physical::Axis::Rotate |
( |
std::string |
| ) |
const |
|
virtual |
Express the given text into something intelligible by this system.
- Returns
- Symmetry* which can be Reified or NULL.
Definition at line 49 of file Axis.cpp.
◆ Rotate() [2/2]
std::string bio::physical::Axis::Rotate |
( |
Symmetry * |
symmetry | ) |
const |
|
virtual |
Express the given Symmetry into something intelligible by another system.
- Parameters
-
- Returns
- text, possibly a command (like mysql), structured values (like json), an entire program (like python), etc. or Failed().
Definition at line 44 of file Axis.cpp.
45{
47}
virtual std::string Encode(Symmetry *symmetry) const
References Encode().
Referenced by operator()(), and operator|().
The documentation for this class was generated from the following files:
- /home/eons/git/biology/lib_bio/inc/bio/physical/Axis.h
- /home/eons/git/biology/lib_bio/src/physical/Axis.cpp