ztsdb
|
#include <dname.hpp>
Public Member Functions | |
Dname (size_t n=0, Vector< zstring > &&names_p=Vector< zstring >()) | |
void | resize (size_t n, size_t from=0) |
void | assign (size_t i, const std::string &s) |
void | addafter (const std::string &s) |
void | addafter (const Dname &dn) |
void | remove (size_t n, const std::string &nm) |
void | remove (size_t n) |
void | remove (const std::string &nm) |
void | addprefix (const std::string &prefix) |
bool | hasNames () const |
bool | operator== (const Dname &d) const |
bool | operator!= (const Dname &d) |
size_t | operator[] (const std::string &s) const |
std::string | operator[] (size_t i) const |
size_t | size () const |
Vector< zstring >::iterator | begin () |
Vector< zstring >::iterator | end () |
Public Attributes | |
size_t | sz |
Vector< zstring > | names |
std::map< std::string, std::set< size_t > > | namesMap |
Handling of dimension names. The specificities are that names are not unique and can be missing.