Beispiel #1
0
    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 );
    }
Beispiel #2
0
    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( );
    }
Beispiel #3
0
    std::shared_ptr<GridProperty<T> > getKeyword(const std::string& keyword) const {
        if (!hasKeyword(keyword))
            addAutoGeneratedKeyword_(keyword);

        return m_properties.at( keyword );
    }