dataset.hpp

Tools to maintain data in D3.

namespace D3
class CSVDataset : public D3::Dataset
#include <dataset.hpp>

Public Functions

inline CSVDataset()
inline CSVDataset(int i)
inline void LoadDataFromFile(std::string location, std::string callback, bool header = true)
inline void Parse(std::string contents, std::string accessor)
inline void ParseRows(std::string contents, std::string accessor)
template<std::size_t N, typename T>
inline void GetLastRow(array<T, N> &arr)

Put the last row of the array into arr.

class Dataset : public D3::D3_Base
#include <dataset.hpp>

Subclassed by D3::CSVDataset, D3::JSONDataset

Public Functions

inline Dataset()
inline Dataset(int i)
inline void CaptureIncoming()
template<typename T>
inline sfinae_decoy<double, decltype(&T::operator())> Min(T comp)
template<typename T>
inline sfinae_decoy<double, decltype(&T::operator())> Max(T comp)
class JSONDataset : public D3::Dataset
#include <dataset.hpp>

Public Functions

inline JSONDataset(int i)
inline JSONDataset()
inline void LoadDataFromFile(std::string filename)
template<typename DATA_TYPE>
inline void LoadDataFromFile(std::string filename, std::function<void(DATA_TYPE)> fun)
inline void LoadDataFromFile(std::string filename, std::function<void(void)> fun)
inline void Append(std::string json)
inline void AppendNested(std::string json)
inline int AppendNestedFromList(std::string json, JSObject &options)

Public Members

JSFunction FindInHierarchy