ndm 0.2.8
Loading...
Searching...
No Matches
NDM::Space Class Reference

Space object in n-dimensional space. More...

#include <Space.hh>

Public Member Functions

 Space ()
 Default Constructor.
 
virtual ~Space ()
 Default Destructor.
 
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)
 
Axisaxis (int id)
 
std::vector< NDM::Axis > & axes ()
 Default space.
 
std::string get_full_path (std::vector< std::string > &paths)
 

Private Attributes

std::vector< NDM::AxismAxes {}
 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.
 

Detailed Description

Space object in n-dimensional space.

Author
Martin Vala vala..nosp@m.mart.nosp@m.in@gm.nosp@m.ail..nosp@m.com
Ishaan Ahuja ishaa.nosp@m.n.ah.nosp@m.uja0@.nosp@m.gmai.nosp@m.l.com

Definition at line 17 of file Space.hh.

Constructor & Destructor Documentation

◆ Space()

NDM::Space::Space ( )

Default Constructor.

constructor

create empty space, to be filled later

Definition at line 8 of file Space.cc.

◆ ~Space()

NDM::Space::~Space ( )
virtual

Default Destructor.

Destructor

Definition at line 14 of file Space.cc.

Member Function Documentation

◆ add()

void NDM::Space::add ( NDM::Axis a)

Add an axis to the space

Definition at line 31 of file Space.cc.

References axis(), and mAxes.

◆ axes()

std::vector< NDM::Axis > & NDM::Space::axes ( )
inline

Default space.

Definition at line 32 of file Space.hh.

References mAxes.

◆ axis()

Axis & NDM::Space::axis ( int id)

Get axis object at "id" position in space

Definition at line 39 of file Space.cc.

References mAxes.

Referenced by add(), and points().

◆ find_point()

void NDM::Space::find_point ( std::vector< int > & coordinates,
std::vector< int > & levels,
NDM::Point & point )

Finds point

Definition at line 133 of file Space.cc.

References get_full_path(), mAxes, mTmpMins, and mTmpPaths.

◆ get_full_path()

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().

◆ 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, points(), and NDM::Axis::split().

Referenced by points().

◆ print()

void NDM::Space::print ( ) const

Prints the axis space

Definition at line 21 of file Space.cc.

References mAxes.

Member Data Documentation

◆ mAxes

std::vector<NDM::Axis> NDM::Space::mAxes {}
private

Vector of axis to be used for space.

Definition at line 36 of file Space.hh.

Referenced by add(), axes(), axis(), find_point(), get_full_path(), points(), and print().

◆ mTmpMins

std::vector<std::vector<double> > NDM::Space::mTmpMins
private

Temporary vector storing value of minimums of axes.

Definition at line 37 of file Space.hh.

Referenced by find_point(), and points().

◆ mTmpPaths

std::vector<std::string> NDM::Space::mTmpPaths
private

Temporary vector storing generated paths for points.

Definition at line 39 of file Space.hh.

Referenced by find_point(), and points().

◆ mTmpPoint

Point NDM::Space::mTmpPoint
private

Temporary Point Object.

Definition at line 38 of file Space.hh.

Referenced by points().


The documentation for this class was generated from the following files: