/* * Datasets.h * * Created on: 02.10.2015 * Author: jdi */ #ifndef DATASETS_H_ #define DATASETS_H_ #include #include "bytes.h" struct dataset { short type; short len; bytes value; }; class datasets : public std::vector { public: datasets(){}; datasets(std::initializer_list s) { for (dataset b : s) { //(*this)[b.type]=b; push_back(b); } } datasets operator+(const datasets &B) { datasets AB; AB.reserve(this->size() + B.size()); AB.insert(AB.end(), this->begin(), this->end()); AB.insert(AB.end(), B.begin(), B.end()); return AB; } }; #endif /* DATASETS_H_ */