53#ifndef UTIL_GENERICDATA_HPP
54#define UTIL_GENERICDATA_HPP
84 const std::string
getID()
const {
return id_; }
93 void setID(
const std::string&
id) { id_ = id; }
106 template<
typename ElemDataType>
121 if (
this == &s)
return *
this;
134 const ElemDataType&
getData()
const {
return data_; }
135 ElemDataType&
getData() {
return data_; }
140 void setData(
const ElemDataType& data) { data_ = data; }
188 template<
typename ElemDataType>
198 if (
this == &s)
return *
this;
200 this->data_ = s.data_;
205 std::vector<ElemDataType> data_;
@ class GenericData GenericData.hpp "utils/GenericData.hpp"
void setID(const std::string &id)
Sets the id of this generic data.
const std::string getID() const
Returns the id of this generic data.
virtual ~GenericData()
virtual destructor
SimpleTypeData class is a POD repository class.
const ElemDataType & getData() const
Returns POD data.
void setData(const ElemDataType &data)
Sets POD data.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.