LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::qsys::QsysResT< T > Struct Template Reference

MATLAB's res struct: named measures in insertion order, plus res.analyzer. More...

#include <line/api/qsys/qsys_res.h>

Inheritance diagram for line::qsys::QsysResT< T >:
Collaboration diagram for line::qsys::QsysResT< T >:

Public Member Functions

void set (const std::string &name, const T &v)
 Sets (or overwrites) a scalar field.
void set (const std::string &name, const std::vector< T > &v)
 Sets (or overwrites) a vector field.
bool has (const std::string &name) const
T scalar (const std::string &name) const
 The scalar field name; throws when absent.
const std::vector< T > & vec (const std::string &name) const
 The vector field name; throws when absent.

Public Attributes

std::vector< QsysResFieldT< T > > fields
std::string analyzer

Detailed Description

template<class T = double>
struct line::qsys::QsysResT< T >

MATLAB's res struct: named measures in insertion order, plus res.analyzer.

Templated on the arithmetic so that the closed forms which are pure field arithmetic keep their exact Rational values; QsysRes is the double one.

Definition at line 57 of file qsys_res.h.

Member Function Documentation

◆ has()

template<class T = double>
bool line::qsys::QsysResT< T >::has ( const std::string & name) const
inline

Definition at line 65 of file qsys_res.h.

◆ scalar()

template<class T = double>
T line::qsys::QsysResT< T >::scalar ( const std::string & name) const
inline

The scalar field name; throws when absent.

Definition at line 67 of file qsys_res.h.

Referenced by line::mva::solver_mva_finite_source_analyzer().

◆ set() [1/2]

template<class T = double>
void line::qsys::QsysResT< T >::set ( const std::string & name,
const std::vector< T > & v )
inline

Sets (or overwrites) a vector field.

Definition at line 64 of file qsys_res.h.

◆ set() [2/2]

◆ vec()

template<class T = double>
const std::vector< T > & line::qsys::QsysResT< T >::vec ( const std::string & name) const
inline

The vector field name; throws when absent.

Definition at line 73 of file qsys_res.h.

Member Data Documentation

◆ analyzer

◆ fields

template<class T = double>
std::vector<QsysResFieldT<T> > line::qsys::QsysResT< T >::fields

Definition at line 58 of file qsys_res.h.

Referenced by line::reg::encode_qsys_res().


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