ndm
0.1.1
|
Space object in n-dimensional space. More...
#include <Space.hh>
Public Member Functions | |
Space () | |
Default Constructor. More... | |
virtual | ~Space () |
Default Destructor. More... | |
void | print () const |
void | add (NDM::Axis a) |
void | points (std::vector< int > levels, std::vector< NDM::Point > &point, int idAxis=0) |
void | find_point (std::vector< int > &coordinates, std::vector< int > &levels, NDM::Point &point) |
Axis & | axis (int id) |
std::vector< NDM::Axis > & | axes () |
Default space. | |
std::string | get_full_path (std::vector< std::string > &paths) |
Private Attributes | |
std::vector< NDM::Axis > | mAxes {} |
Vector of axis to be used for space. | |
std::vector< std::vector < double > > | mTmpMins |
Temporary vector storing value of minimums of axes. | |
Point | mTmpPoint |
Temporary Point Object. | |
std::vector< std::string > | mTmpPaths |
Temporary vector storing generated paths for points. | |
NDM::Space::Space | ( | ) |
|
virtual |
void NDM::Space::add | ( | NDM::Axis | a | ) |
Add an axis to the space
Definition at line 31 of file Space.cc.
References mAxes.
Referenced by NDM::Config::load().
Axis & NDM::Space::axis | ( | int | id | ) |
void NDM::Space::find_point | ( | std::vector< int > & | coordinates, |
std::vector< int > & | levels, | ||
NDM::Point & | point | ||
) |
std::string NDM::Space::get_full_path | ( | std::vector< std::string > & | paths | ) |
Returns full path correctly edited with slashes and blanks.
Definition at line 47 of file Space.cc.
References mAxes.
Referenced by find_point(), and points().
void NDM::Space::points | ( | std::vector< int > | levels, |
std::vector< NDM::Point > & | point, | ||
int | idAxis = 0 |
||
) |
Fills the passed vector "point" with histogram's minimum, maximum, and path of output file to the console. The values are decided from the number of axes and levels in space.
Definition at line 74 of file Space.cc.
References axis(), get_full_path(), mAxes, mTmpMins, mTmpPaths, mTmpPoint, and NDM::Axis::split().
void NDM::Space::print | ( | ) | const |