#include <Attribute.h>
Inheritance diagram for SCOREC_Attribute::Attribute::
Public Types | |
typedef T | value_type |
typedef std::vector<variant_t> | container |
typedef container::const_iterator | constIter |
Public Methods | |
Attribute (const std::string &name, const std::vector< variant_t >::const_iterator &it1, const std::vector< variant_t >::const_iterator &it2) | |
Constructor. Construct by giving the attribute name and two iterators that iterate over the values that this attribute is supposed to have. | |
Attribute (const std::string &name, variant_t) | |
Use this constructor if the Attribute has only one component. | |
Attribute (const std::string &name, const T &) | |
If we have only one value we want to store, and the value is exactly the type of attribute we don't have to go through the construction of a variant_t type first, we can pass in the value directly. Note: That will not work if the type we want to store is e.g. a double, but given as an expression. In that case the attribute is templated over double, but a string is parsed in. The we have to create the variant_t object from the string and pass that in. | |
void | CreateOutput (std::vector< std::string > &v) const |
std::string | getCreator () const |
virtual | ~Attribute () |
void | DumpDiagnostics () const |
DumpDiagnostics() dumps the object's state to standard output. | |
Public Attributes | |
container | values |