18#ifndef VOTCA_TOOLS_DATACOLLECTION_H
19#define VOTCA_TOOLS_DATACOLLECTION_H
48 class array :
public std::vector<T> {
57 using iterator =
typename std::vector<array *>::iterator;
126 const std::vector<array *> &
Data()
const {
return data_; }
140 selection *
select(std::string strselection, selection *sel_append =
nullptr);
151 for (
auto &d : data_) {
160 assert(ArrayByName(name) ==
nullptr);
163 array_by_name_[name] = a;
171 typename std::map<std::string, array *>::iterator i =
172 array_by_name_.find(name);
173 if (i == array_by_name_.end()) {
181 std::string strselection,
selection *sel_append) {
188 for (
auto &pair : array_by_name_) {
189 if (
wildcmp(strselection.c_str(), pair.second->getName().c_str())) {
base class for all analysis tools