GridProperty<T>& GridProperties<T>::getKeyword(const std::string& keyword) { const std::string kw = normalize(keyword); if (!hasKeyword(kw)) addAutoGeneratedKeyword_(kw); return m_properties.at( kw ); }
void GridProperties<T>::assertKeyword(const std::string& keyword) const { const std::string kw = normalize(keyword); if ( !( hasKeyword( kw ) || isDefaultInitializable( kw ) || isFipxxx<T>( kw ) ) ) throw std::invalid_argument("Keyword: " + keyword + " is not yet defined and could not be default initialized"); if (m_properties.count( kw ) == 0) addAutoGeneratedKeyword_(kw); GridProperty<T>& property = m_properties.at( kw ); property.runPostProcessor( ); }
std::shared_ptr<GridProperty<T> > getKeyword(const std::string& keyword) const { if (!hasKeyword(keyword)) addAutoGeneratedKeyword_(keyword); return m_properties.at( keyword ); }