Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ keys()

std::set< std::string > pism::Vars::keys ( ) const

Returns the set of keys (variable names) in the dictionary.

Provides one (short) name per variable.

This means that one can safely iterate over these keys, reading, writing, displaying or de-allocating variables (without worrying that a variable will get written or de-allocated twice).

Definition at line 200 of file Vars.cc.

References m_variables, and m_variables_shared.