45 void remove(
const std::string &name);
55 std::set<std::string>
keys()
const;
57 typedef std::shared_ptr<array::Array>
VecPtr;
58 typedef std::shared_ptr<array::Scalar>
Vec2SPtr;
60 typedef std::shared_ptr<array::Vector>
Vec2VPtr;
62 typedef std::shared_ptr<array::Array3D>
Vec3Ptr;
79 mutable std::map<std::string, const array::Array*>
m_variables;
Vec2IntPtr get_2d_mask_shared(const std::string &name) const
const array::Array3D * get_3d_scalar(const std::string &name) const
const array::Vector * get_2d_vector(const std::string &name) const
std::shared_ptr< array::Array3D > Vec3Ptr
std::set< std::string > keys_shared() const
const array::Array * get_internal(const std::string &name) const
Vec3Ptr 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.
std::shared_ptr< array::Scalar > Vec2SPtr
std::shared_ptr< array::Vector > Vec2VPtr
const array::CellType * get_2d_cell_type(const std::string &name) const
VecPtr get_shared(const std::string &name) const
std::map< std::string, VecPtr > m_variables_shared
variables in shared ownership
Vec2CellTypePtr get_2d_cell_type_shared(const std::string &name) const
bool is_available_shared(const std::string &name) const
std::shared_ptr< array::Array > VecPtr
const array::Scalar * get_2d_mask(const std::string &name) const
const array::Scalar * get_2d_scalar(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.
Vars & operator=(Vars const &)
std::shared_ptr< array::CellType > Vec2CellTypePtr
bool is_available(const std::string &name) const
VecPtr get_internal_shared(const std::string &name) const
Vec2SPtr get_2d_scalar_shared(const std::string &name) const
std::shared_ptr< array::Scalar > Vec2IntPtr
std::map< std::string, const array::Array * > m_variables
Vec2VPtr 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.