My Project
Loading...
Searching...
No Matches
Opm::EclIO::EclFile Class Reference
Inheritance diagram for Opm::EclIO::EclFile:
Opm::EclIO::EGrid Opm::EclIO::EInit Opm::EclIO::ERft Opm::EclIO::ERst

Classes

struct  Formatted
 

Public Types

using EclEntry = std::tuple< std::string, eclArrType, std::int64_t >
 

Public Member Functions

 EclFile (const std::string &filename, bool preload=false)
 
 EclFile (const std::string &filename, Formatted fmt, bool preload=false)
 
bool formattedInput () const
 
void loadData ()
 
void loadData (const std::string &arrName)
 
void loadData (int arrIndex)
 
void loadData (const std::vector< int > &arrIndex)
 
void clearData ()
 
std::vector< EclEntry > getList () const
 
const std::vector< int > & getElementSizeList () const
 
template<typename T >
const std::vector< T > & get (int arrIndex)
 
template<typename T >
const std::vector< T > & get (const std::string &name)
 
bool hasKey (const std::string &name) const
 
std::size_t count (const std::string &name) const
 
const std::vector< std::string > & arrayNames () const
 
std::size_t size () const
 
bool is_ix () const
 
template<>
const std::vector< int > & get (int arrIndex)
 
template<>
const std::vector< float > & get (int arrIndex)
 
template<>
const std::vector< double > & get (int arrIndex)
 
template<>
const std::vector< bool > & get (int arrIndex)
 
template<>
const std::vector< int > & get (const std::string &name)
 
template<>
const std::vector< float > & get (const std::string &name)
 
template<>
const std::vector< double > & get (const std::string &name)
 
template<>
const std::vector< bool > & get (const std::string &name)
 

Protected Member Functions

template<class T >
const std::vector< T > & getImpl (int arrIndex, eclArrType type, const std::unordered_map< int, std::vector< T > > &array, const std::string &typeStr)
 
std::streampos seekPosition (const std::vector< std::string >::size_type arrIndex) const
 

Protected Attributes

bool formatted
 
std::string inputFilename
 
std::unordered_map< int, std::vector< int > > inte_array
 
std::unordered_map< int, std::vector< bool > > logi_array
 
std::unordered_map< int, std::vector< double > > doub_array
 
std::unordered_map< int, std::vector< float > > real_array
 
std::unordered_map< int, std::vector< std::string > > char_array
 
std::vector< std::string > array_name
 
std::vector< eclArrType > array_type
 
std::vector< std::int64_t > array_size
 
std::vector< int > array_element_size
 
std::vector< std::uint64_t > ifStreamPos
 
std::map< std::string, int > array_index
 

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