48 std::size_t
size()
const;
103 std::vector<std::string>
info()
const;
123 std::string
const& symbol2);
151 std::string
const& symbol2)
std::size_t index(std::string const &symbol) const
Get index of given element.
std::size_t registerElements(std::string const &elementLine)
Extract all elements and store in element map.
std::map< std::string, std::size_t > forwardMap
Map of elements present and corresponding index number.
std::map< std::size_t, std::string > reverseMap
Reverse element map.
std::string operator[](std::size_t const index) const
Overload [] operator for index search.
std::vector< std::string > info() const
Get map information as a vector of strings.
std::size_t size() const
Get element map size.
static std::string symbolFromAtomicNumber(std::size_t const atomicNumber)
Get element symbol from atomic number.
void deregisterElements()
Clear element map.
std::string getElementsString() const
Get sorted list of elements in one string (space separated).
static bool compareAtomicNumber(std::string const &symbol1, std::string const &symbol2)
Check if arguments are sorted according to atomic number.
std::size_t atomicNumber(std::size_t index) const
Get atomic number from element index.
static std::string const knownElements[]
List of element symbols (e.g. "He" for Helium).
std::string symbol(std::size_t const index) const
Get element symbol for given element index.