Opm::WellContainer< T > Class Template Reference

#include <WellContainer.hpp>

Inheritance diagram for Opm::WellContainer< T >:
Inheritance graph

Public Member Functions

 WellContainer ()=default
 
 WellContainer (std::initializer_list< std::pair< std::string, T > > init_list)
 
bool empty () const
 
std::size_t size () const
 
T & add (const std::string &name, T &&value)
 
T & add (const std::string &name, const T &value)
 
bool has (const std::string &name) const
 
void copy_welldata (const WellContainer< T > &other)
 
void copy_welldata (const WellContainer< T > &other, const std::string &name)
 
T & operator[] (std::size_t index)
 
const T & operator[] (std::size_t index) const
 
T & operator[] (const std::string &name)
 
const T & operator[] (const std::string &name) const
 
void clear ()
 
std::vector< T >::const_iterator begin () const
 
std::vector< T >::const_iterator end () const
 
const std::vector< T > & data () const
 
std::optional< int > well_index (const std::string &wname) const
 
const std::string & well_name (std::size_t well_index) const
 
std::vector< std::string > wells () const
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 
bool operator== (const WellContainer< T > &rhs) const
 

Static Public Member Functions

static WellContainer serializationTestObject (const T &data)
 

Constructor & Destructor Documentation

◆ WellContainer() [1/2]

template<class T >
Opm::WellContainer< T >::WellContainer ( )
default

◆ WellContainer() [2/2]

template<class T >
Opm::WellContainer< T >::WellContainer ( std::initializer_list< std::pair< std::string, T > >  init_list)
inline

Member Function Documentation

◆ add() [1/2]

template<class T >
T & Opm::WellContainer< T >::add ( const std::string &  name,
const T &  value 
)
inline

◆ add() [2/2]

template<class T >
T & Opm::WellContainer< T >::add ( const std::string &  name,
T &&  value 
)
inline

◆ begin()

template<class T >
std::vector< T >::const_iterator Opm::WellContainer< T >::begin ( ) const
inline

◆ clear()

template<class T >
void Opm::WellContainer< T >::clear ( )
inline

◆ copy_welldata() [1/2]

template<class T >
void Opm::WellContainer< T >::copy_welldata ( const WellContainer< T > &  other)
inline

◆ copy_welldata() [2/2]

template<class T >
void Opm::WellContainer< T >::copy_welldata ( const WellContainer< T > &  other,
const std::string &  name 
)
inline

◆ data()

template<class T >
const std::vector< T > & Opm::WellContainer< T >::data ( ) const
inline

◆ empty()

template<class T >
bool Opm::WellContainer< T >::empty ( ) const
inline

◆ end()

template<class T >
std::vector< T >::const_iterator Opm::WellContainer< T >::end ( ) const
inline

◆ has()

template<class T >
bool Opm::WellContainer< T >::has ( const std::string &  name) const
inline

◆ operator==()

template<class T >
bool Opm::WellContainer< T >::operator== ( const WellContainer< T > &  rhs) const
inline

◆ operator[]() [1/4]

template<class T >
T & Opm::WellContainer< T >::operator[] ( const std::string &  name)
inline

◆ operator[]() [2/4]

template<class T >
const T & Opm::WellContainer< T >::operator[] ( const std::string &  name) const
inline

◆ operator[]() [3/4]

template<class T >
T & Opm::WellContainer< T >::operator[] ( std::size_t  index)
inline

◆ operator[]() [4/4]

template<class T >
const T & Opm::WellContainer< T >::operator[] ( std::size_t  index) const
inline

◆ serializationTestObject()

template<class T >
static WellContainer Opm::WellContainer< T >::serializationTestObject ( const T &  data)
inlinestatic

◆ serializeOp()

template<class T >
template<class Serializer >
void Opm::WellContainer< T >::serializeOp ( Serializer &  serializer)
inline

◆ size()

template<class T >
std::size_t Opm::WellContainer< T >::size ( ) const
inline

◆ well_index()

template<class T >
std::optional< int > Opm::WellContainer< T >::well_index ( const std::string &  wname) const
inline

◆ well_name()

template<class T >
const std::string & Opm::WellContainer< T >::well_name ( std::size_t  well_index) const
inline

◆ wells()

template<class T >
std::vector< std::string > Opm::WellContainer< T >::wells ( ) const
inline

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