47 void remove(
const std::string &name);
58 std::set<std::string>
keys()
const;
60 void add_shared(std::shared_ptr<array::Array>);
61 void add_shared(std::shared_ptr<array::Array>,
const std::string &name);
65 std::shared_ptr<array::Array>
get_shared(
const std::string &name)
const;
76 mutable std::map<std::string, const array::Array*>
m_variables;
std::map< std::string, std::shared_ptr< array::Array > > m_variables_shared
variables in shared ownership
const array::Array3D * get_3d_scalar(const std::string &name) const
const array::Vector * get_2d_vector(const std::string &name) const
const array::Scalar2 * get_2d_scalar2(const std::string &name) const
std::set< std::string > keys_shared() const
const array::Array * get_internal(const std::string &name) const
std::shared_ptr< array::Array3D > get_3d_scalar_shared(const std::string &name) const
std::set< std::string > keys() const
Returns the set of keys (variable names) in the dictionary.
const array::Scalar1 * get_2d_scalar1(const std::string &name) const
const array::CellType * get_2d_cell_type(const std::string &name) const
std::shared_ptr< array::Array > get_shared(const std::string &name) const
std::shared_ptr< array::CellType > get_2d_cell_type_shared(const std::string &name) const
bool is_available_shared(const std::string &name) const
void add_shared(std::shared_ptr< array::Array >)
Vars & operator=(Vars const &)
const array::Scalar * get_2d_scalar(const std::string &name) const
std::shared_ptr< array::Scalar1 > get_2d_scalar1_shared(const std::string &name) const
const array::Array * get(const std::string &name) const
Returns a pointer to an array::Array containing variable name or NULL if that variable was not found.
void remove(const std::string &name)
Removes a variable with the key name from the dictionary.
bool is_available(const std::string &name) const
std::shared_ptr< array::Array > get_internal_shared(const std::string &name) const
std::shared_ptr< array::Scalar > get_2d_scalar_shared(const std::string &name) const
std::shared_ptr< array::Scalar2 > get_2d_scalar2_shared(const std::string &name) const
std::map< std::string, const array::Array * > m_variables
std::shared_ptr< array::Vector > get_2d_vector_shared(const std::string &name) const
void add(const array::Array &)
Add an array::Array to the dictionary.
std::map< std::string, std::string > m_standard_names
A class for passing PISM variables from the core to other parts of the code (such as climate couplers...
A virtual class collecting methods common to ice and bedrock 3D fields.
Abstract class for reading, writing, allocating, and accessing a DA-based PETSc Vec (2D and 3D fields...
"Cell type" mask. Adds convenience methods to array::Scalar.
connected_components::details::PISMArray Array