|
PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
|
#include <VariableMetadata.hh>
Inheritance diagram for pism::ConstAttribute:Public Member Functions | |
| ConstAttribute (const ConstAttribute &)=delete | |
| ConstAttribute & | operator= (const ConstAttribute &)=delete |
| operator std::string () const | |
| operator double () const | |
| operator std::vector< double > () const | |
Protected Member Functions | |
| ConstAttribute (const VariableMetadata *var, const std::string &name) | |
| ConstAttribute (ConstAttribute &&a) noexcept | |
Protected Attributes | |
| std::string | m_name |
| VariableMetadata * | m_var |
Friends | |
| class | VariableMetadata |
Syntactic sugar used to make it easier to get attributes.
This class makes it possible to get both string and numeric attributes using code that looks like variable = metadata["attribute"]. It tries to convert to the type of variable and throws an error if there is a type mismatch.
Definition at line 84 of file VariableMetadata.hh.