~Var( void ) { DimList::iterator dim = m_dims.begin(); DimList::const_iterator last_dim = m_dims.end(); while ( dim != last_dim ) { if ( *dim ) delete *dim; dim++; } m_dims.clear(); }
~File( void ) { if ( m_file ) delete m_file; DimList::iterator dim = m_dims.begin(); DimList::const_iterator last_dim = m_dims.end(); while ( dim != last_dim ) { if ( *dim ) delete *dim; dim++; } m_dims.clear(); VarList::iterator var = m_vars.begin(); VarList::const_iterator last_var = m_vars.end(); while ( var != last_var ) { if ( *var ) delete *var; var++; } m_vars.clear(); }