dynamic range: index map tools

This commit is contained in:
Christian Zimmermann 2020-09-15 17:11:54 +02:00
parent 8372b30255
commit 5d853473de

View file

@ -55,6 +55,16 @@ namespace MultiArrayTools
return tmp->getIndex();
}
static const std::shared_ptr<IndexW>& getIndexWFromMap(const std::string& name)
{
return sIMap.at(name);
}
static bool checkIndexMap(const std::string& name)
{
return sIMap.count(name) != 0;
}
static constexpr IndexType sType() { return IndexType::SINGLE; }
static constexpr size_t totalDim() { return 1; }
static constexpr size_t sDim() { return 1; }