#include <DeckKeyword.hpp>

Public Types

typedef std::vector< DeckRecord >::const_iterator const_iterator
 

Public Member Functions

 DeckKeyword ()
 
 DeckKeyword (const ParserKeyword &parserKeyword)
 
 DeckKeyword (const Location &location, const std::string &keywordName)
 
 DeckKeyword (const ParserKeyword &parserKeyword, const std::vector< std::vector< DeckValue > > &record_list, UnitSystem &system_active, UnitSystem &system_default)
 
 DeckKeyword (const ParserKeyword &parserKeyword, const std::vector< int > &data)
 
 DeckKeyword (const ParserKeyword &parserKeyword, const std::vector< double > &data, UnitSystem &system_active, UnitSystem &system_default)
 
const std::stringname () const
 
void setFixedSize ()
 
const Locationlocation () const
 
size_t size () const
 
void addRecord (DeckRecord &&record)
 
const DeckRecordgetRecord (size_t index) const
 
DeckRecordgetRecord (size_t index)
 
const DeckRecordgetDataRecord () const
 
void setDataKeyword (bool isDataKeyword=true)
 
void setDoubleRecordKeyword (bool isDoubleRecordKeyword=true)
 
bool isDataKeyword () const
 
bool isDoubleRecordKeyword () const
 
const std::vector< int > & getIntData () const
 
const std::vector< double > & getRawDoubleData () const
 
const std::vector< double > & getSIDoubleData () const
 
const std::vector< std::string > & getStringData () const
 
const std::vector< value::status > & getValueStatus () const
 
size_t getDataSize () const
 
void write (DeckOutput &output) const
 
void write_data (DeckOutput &output) const
 
void write_TITLE (DeckOutput &output) const
 
template<class Keyword >
bool isKeyword () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool equal_data (const DeckKeyword &other, bool cmp_default=false, bool cmp_numeric=true) const
 
bool equal (const DeckKeyword &other, bool cmp_default=false, bool cmp_numeric=true) const
 
bool operator== (const DeckKeyword &other) const
 
bool operator!= (const DeckKeyword &other) const
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 

Static Public Member Functions

static DeckKeyword serializeObject ()
 

Friends

std::ostream & operator<< (std::ostream &os, const DeckKeyword &keyword)
 

Member Typedef Documentation

◆ const_iterator

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

Constructor & Destructor Documentation

◆ DeckKeyword() [1/6]

Opm::DeckKeyword::DeckKeyword ( )

◆ DeckKeyword() [2/6]

Opm::DeckKeyword::DeckKeyword ( const ParserKeyword parserKeyword)
explicit

◆ DeckKeyword() [3/6]

Opm::DeckKeyword::DeckKeyword ( const Location location,
const std::string keywordName 
)

◆ DeckKeyword() [4/6]

Opm::DeckKeyword::DeckKeyword ( const ParserKeyword parserKeyword,
const std::vector< std::vector< DeckValue > > &  record_list,
UnitSystem system_active,
UnitSystem system_default 
)

◆ DeckKeyword() [5/6]

Opm::DeckKeyword::DeckKeyword ( const ParserKeyword parserKeyword,
const std::vector< int > &  data 
)

◆ DeckKeyword() [6/6]

Opm::DeckKeyword::DeckKeyword ( const ParserKeyword parserKeyword,
const std::vector< double > &  data,
UnitSystem system_active,
UnitSystem system_default 
)

Member Function Documentation

◆ addRecord()

void Opm::DeckKeyword::addRecord ( DeckRecord &&  record)

◆ begin()

const_iterator Opm::DeckKeyword::begin ( ) const

◆ end()

const_iterator Opm::DeckKeyword::end ( ) const

◆ equal()

bool Opm::DeckKeyword::equal ( const DeckKeyword other,
bool  cmp_default = false,
bool  cmp_numeric = true 
) const

◆ equal_data()

bool Opm::DeckKeyword::equal_data ( const DeckKeyword other,
bool  cmp_default = false,
bool  cmp_numeric = true 
) const

◆ getDataRecord()

const DeckRecord & Opm::DeckKeyword::getDataRecord ( ) const

◆ getDataSize()

size_t Opm::DeckKeyword::getDataSize ( ) const

◆ getIntData()

const std::vector< int > & Opm::DeckKeyword::getIntData ( ) const

◆ getRawDoubleData()

const std::vector< double > & Opm::DeckKeyword::getRawDoubleData ( ) const

◆ getRecord() [1/2]

DeckRecord & Opm::DeckKeyword::getRecord ( size_t  index)

◆ getRecord() [2/2]

const DeckRecord & Opm::DeckKeyword::getRecord ( size_t  index) const

◆ getSIDoubleData()

const std::vector< double > & Opm::DeckKeyword::getSIDoubleData ( ) const

◆ getStringData()

const std::vector< std::string > & Opm::DeckKeyword::getStringData ( ) const

◆ getValueStatus()

const std::vector< value::status > & Opm::DeckKeyword::getValueStatus ( ) const

◆ isDataKeyword()

bool Opm::DeckKeyword::isDataKeyword ( ) const

◆ isDoubleRecordKeyword()

bool Opm::DeckKeyword::isDoubleRecordKeyword ( ) const

◆ isKeyword()

template<class Keyword >
bool Opm::DeckKeyword::isKeyword ( ) const
inline

◆ location()

const Location & Opm::DeckKeyword::location ( ) const

◆ name()

const std::string & Opm::DeckKeyword::name ( ) const

◆ operator!=()

bool Opm::DeckKeyword::operator!= ( const DeckKeyword other) const

◆ operator==()

bool Opm::DeckKeyword::operator== ( const DeckKeyword other) const

◆ serializeObject()

static DeckKeyword Opm::DeckKeyword::serializeObject ( )
static

◆ serializeOp()

template<class Serializer >
void Opm::DeckKeyword::serializeOp ( Serializer serializer)
inline

◆ setDataKeyword()

void Opm::DeckKeyword::setDataKeyword ( bool  isDataKeyword = true)

◆ setDoubleRecordKeyword()

void Opm::DeckKeyword::setDoubleRecordKeyword ( bool  isDoubleRecordKeyword = true)

◆ setFixedSize()

void Opm::DeckKeyword::setFixedSize ( )

◆ size()

size_t Opm::DeckKeyword::size ( ) const

◆ write()

void Opm::DeckKeyword::write ( DeckOutput output) const

◆ write_data()

void Opm::DeckKeyword::write_data ( DeckOutput output) const

◆ write_TITLE()

void Opm::DeckKeyword::write_TITLE ( DeckOutput output) const

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const DeckKeyword keyword 
)
friend

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