dynamic range: index map tools
This commit is contained in:
parent
8372b30255
commit
5d853473de
1 changed files with 11 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue