SkePU(integratedwithStarPU)  0.8.1
 All Classes Namespaces Files Functions Enumerations Friends Macros Groups Pages
Public Member Functions | List of all members
DataCollector3D< Tx, Ty, Tz > Class Template Reference

A class that can be used to collect 2D data. More...

#include <data_collector_3d.h>

Public Member Functions

 DataCollector3D (const std::string &_dataSetName, const std::string &_axisNameX, const std::string &_axisNameY, const std::string &_axisNameZ)
 
void addData (Tx x, Ty y, Tz z)
 
void clear ()
 
void writeDataToFile (const std::string &filename="", DataExportFormat format=GNUPLOT, int tabLength=-1)
 

Detailed Description

template<typename Tx, typename Ty, typename Tz>
class DataCollector3D< Tx, Ty, Tz >

A class that can be used to collect 2D data.

This class is used to simplify the collection of three dimensional data. It stores the data internally in a multimap of pairs. It can then be outputted in various formats. In the current version it only supports outputting to a file readable by GnuPlot.

Constructor & Destructor Documentation

template<typename Tx , typename Ty , typename Tz >
DataCollector3D< Tx, Ty, Tz >::DataCollector3D ( const std::string &  _dataSetName,
const std::string &  _axisNameX,
const std::string &  _axisNameY,
const std::string &  _axisNameZ 
)

The constructor sets some names for the current dataset.

Parameters
_dataSetNameName of the dataset.
_axisNameXName of the X axis data, or rather the first data.
_axisNameYName of the Y axis data, or the second data.
_axisNameZName of the Z axis data, or the third data.

Member Function Documentation

template<typename Tx , typename Ty , typename Tz >
void DataCollector3D< Tx, Ty, Tz >::addData ( Tx  x,
Ty  y,
Tz  z 
)

Adds a 3D data point to the dataset.

Parameters
xx coordinate.
yy coordinate.
zz coordinate.
template<typename Tx , typename Ty , typename Tz >
void DataCollector3D< Tx, Ty, Tz >::clear ( )

Clear the entire data set.

template<typename Tx , typename Ty , typename Tz >
void DataCollector3D< Tx, Ty, Tz >::writeDataToFile ( const std::string &  filename = "",
DataExportFormat  format = GNUPLOT,
int  tabLength = -1 
)

Write the data to a file.

Parameters
filenameFilename of the data file to write to.
formatFormat of the data. Currently only GNUPLOT.
tabLengthThe spacing between columns.

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