#include <Deck.hpp>

Inheritance diagram for Opm::DeckView:
Inheritance graph

Public Types

typedef std::vector< DeckKeyword >::const_iterator const_iterator
 

Public Member Functions

bool hasKeyword (const DeckKeyword &keyword) const
 
bool hasKeyword (const std::string &keyword) const
 
template<class Keyword >
bool hasKeyword () const
 
const DeckKeywordgetKeyword (const std::string &keyword, size_t index) const
 
const DeckKeywordgetKeyword (const std::string &keyword) const
 
const DeckKeywordgetKeyword (size_t index) const
 
DeckKeywordgetKeyword (size_t index)
 
template<class Keyword >
const DeckKeywordgetKeyword () const
 
template<class Keyword >
const DeckKeywordgetKeyword (size_t index) const
 
template<class Keyword >
std::size_t count () const
 
const std::vector< const DeckKeyword * > getKeywordList (const std::string &keyword) const
 
template<class Keyword >
const std::vector< const DeckKeyword * > getKeywordList () const
 
size_t count (const std::string &keyword) const
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Protected Member Functions

void add (const DeckKeyword *, const_iterator, const_iterator)
 
const std::vector< size_t > & offsets (const std::string &) const
 
 DeckView (const_iterator first, const_iterator last)
 
 DeckView (std::pair< const_iterator, const_iterator >)
 
 DeckView ()=default
 
void init (const_iterator, const_iterator)
 

Member Typedef Documentation

◆ const_iterator

typedef std::vector<DeckKeyword>::const_iterator Opm::DeckView::const_iterator

Constructor & Destructor Documentation

◆ DeckView() [1/3]

Opm::DeckView::DeckView ( const_iterator  first,
const_iterator  last 
)
protected

◆ DeckView() [2/3]

Opm::DeckView::DeckView ( std::pair< const_iterator, const_iterator )
explicitprotected

◆ DeckView() [3/3]

Opm::DeckView::DeckView ( )
protecteddefault

Member Function Documentation

◆ add()

void Opm::DeckView::add ( const DeckKeyword ,
const_iterator  ,
const_iterator   
)
protected

◆ begin()

const_iterator Opm::DeckView::begin ( ) const

◆ count() [1/2]

template<class Keyword >
std::size_t Opm::DeckView::count ( ) const
inline

References count().

Referenced by count().

◆ count() [2/2]

size_t Opm::DeckView::count ( const std::string keyword) const

◆ end()

const_iterator Opm::DeckView::end ( ) const

◆ getKeyword() [1/6]

template<class Keyword >
const DeckKeyword & Opm::DeckView::getKeyword ( ) const
inline

References getKeyword().

Referenced by getKeyword().

◆ getKeyword() [2/6]

const DeckKeyword & Opm::DeckView::getKeyword ( const std::string keyword) const

◆ getKeyword() [3/6]

const DeckKeyword & Opm::DeckView::getKeyword ( const std::string keyword,
size_t  index 
) const

◆ getKeyword() [4/6]

DeckKeyword & Opm::DeckView::getKeyword ( size_t  index)

◆ getKeyword() [5/6]

const DeckKeyword & Opm::DeckView::getKeyword ( size_t  index) const

◆ getKeyword() [6/6]

template<class Keyword >
const DeckKeyword & Opm::DeckView::getKeyword ( size_t  index) const
inline

References getKeyword(), and index.

◆ getKeywordList() [1/2]

template<class Keyword >
const std::vector< const DeckKeyword * > Opm::DeckView::getKeywordList ( ) const
inline

References getKeywordList().

Referenced by getKeywordList().

◆ getKeywordList() [2/2]

const std::vector< const DeckKeyword * > Opm::DeckView::getKeywordList ( const std::string keyword) const

◆ hasKeyword() [1/3]

template<class Keyword >
bool Opm::DeckView::hasKeyword ( ) const
inline

References hasKeyword().

Referenced by hasKeyword().

◆ hasKeyword() [2/3]

bool Opm::DeckView::hasKeyword ( const DeckKeyword keyword) const

◆ hasKeyword() [3/3]

bool Opm::DeckView::hasKeyword ( const std::string keyword) const

◆ init()

void Opm::DeckView::init ( const_iterator  ,
const_iterator   
)
protected

Referenced by Opm::Deck::serializeOp().

◆ offsets()

const std::vector< size_t > & Opm::DeckView::offsets ( const std::string ) const
protected

◆ size()

size_t Opm::DeckView::size ( ) const

The documentation for this class was generated from the following file: