OOPS
oops::Variables Class Reference

#include <Variables.h>

Inheritance diagram for oops::Variables:
Collaboration diagram for oops::Variables:

Public Member Functions

 Variables ()
 
 Variables (const eckit::Configuration &, const std::string &)
 
 Variables (const std::vector< std::string > &, const std::string &conv="")
 
 Variables (const std::vector< std::string > &vars, const std::vector< int > &channels)
 
 ~Variables ()
 
 Variables (const Variables &)
 
Variablesoperator+= (const Variables &)
 
size_t size () const
 
const std::string & operator[] (const size_t kk) const
 
bool operator== (const Variables &) const
 
bool operator<= (const Variables &) const
 
bool has (const std::string &) const
 
size_t find (const std::string &) const
 
const std::vector< std::string > & variables () const
 
const std::vector< int > & channels () const
 
void push_back (const std::string &)
 

Static Public Member Functions

static const std::string classname ()
 

Private Member Functions

void print (std::ostream &) const
 
void setConf ()
 

Private Attributes

std::string convention_
 
std::vector< std::string > vars_
 
std::vector< int > channels_
 

Detailed Description

Definition at line 23 of file oops/base/Variables.h.

Constructor & Destructor Documentation

◆ Variables() [1/5]

oops::Variables::Variables ( )

Definition at line 27 of file oops/base/Variables.cc.

◆ Variables() [2/5]

oops::Variables::Variables ( const eckit::Configuration &  conf,
const std::string &  name 
)

Definition at line 34 of file oops/base/Variables.cc.

Here is the call graph for this function:

◆ Variables() [3/5]

oops::Variables::Variables ( const std::vector< std::string > &  vars,
const std::string &  conv = "" 
)
explicit

Definition at line 61 of file oops/base/Variables.cc.

◆ Variables() [4/5]

oops::Variables::Variables ( const std::vector< std::string > &  vars,
const std::vector< int > &  channels 
)

Definition at line 69 of file oops/base/Variables.cc.

Here is the call graph for this function:

◆ ~Variables()

oops::Variables::~Variables ( )

Definition at line 154 of file oops/base/Variables.cc.

◆ Variables() [5/5]

oops::Variables::Variables ( const Variables other)

Definition at line 86 of file oops/base/Variables.cc.

Member Function Documentation

◆ channels()

const std::vector<int>& oops::Variables::channels ( ) const
inline

Definition at line 46 of file oops/base/Variables.h.

Here is the caller graph for this function:

◆ classname()

static const std::string oops::Variables::classname ( )
inlinestatic

Definition at line 25 of file oops/base/Variables.h.

◆ find()

size_t oops::Variables::find ( const std::string &  var) const

Definition at line 137 of file oops/base/Variables.cc.

◆ has()

bool oops::Variables::has ( const std::string &  var) const

Definition at line 127 of file oops/base/Variables.cc.

Here is the caller graph for this function:

◆ operator+=()

Variables & oops::Variables::operator+= ( const Variables rhs)

Definition at line 92 of file oops/base/Variables.cc.

◆ operator<=()

bool oops::Variables::operator<= ( const Variables rhs) const

Definition at line 115 of file oops/base/Variables.cc.

Here is the call graph for this function:

◆ operator==()

bool oops::Variables::operator== ( const Variables rhs) const

Definition at line 107 of file oops/base/Variables.cc.

◆ operator[]()

const std::string& oops::Variables::operator[] ( const size_t  kk) const
inline

Definition at line 38 of file oops/base/Variables.h.

◆ print()

void oops::Variables::print ( std::ostream &  os) const
private

Definition at line 158 of file oops/base/Variables.cc.

◆ push_back()

void oops::Variables::push_back ( const std::string &  vname)

Definition at line 148 of file oops/base/Variables.cc.

Here is the caller graph for this function:

◆ setConf()

void oops::Variables::setConf ( )
private

◆ size()

size_t oops::Variables::size ( ) const
inline

Definition at line 37 of file oops/base/Variables.h.

Here is the caller graph for this function:

◆ variables()

const std::vector<std::string>& oops::Variables::variables ( ) const
inline

Definition at line 45 of file oops/base/Variables.h.

Here is the caller graph for this function:

Member Data Documentation

◆ channels_

std::vector<int> oops::Variables::channels_
private

Definition at line 55 of file oops/base/Variables.h.

◆ convention_

std::string oops::Variables::convention_
private

Definition at line 53 of file oops/base/Variables.h.

◆ vars_

std::vector<std::string> oops::Variables::vars_
private

Definition at line 54 of file oops/base/Variables.h.


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