LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::JobClass Class Reference

A job class: the index it was given, and the model that owns it. More...

#include <line/lang/qn/nodes.h>

Inheritance diagram for line::JobClass:
Collaboration diagram for line::JobClass:

Public Member Functions

std::size_t get_index () const
 get_index(): the 1-based class index.
const std::string & get_name () const
 getName().
 operator std::size_t () const
 A handle IS its index wherever one is expected.
void set_completes (bool flag)
 completes = flag: whether passing the reference station completes the chain's cycle.

Protected Member Functions

 JobClass (NetworkModel &m, std::size_t idx, const std::string &nm)

Protected Attributes

NetworkModel * model_
std::size_t idx_
std::string name_

Detailed Description

A job class: the index it was given, and the model that owns it.

Definition at line 385 of file nodes.h.

Constructor & Destructor Documentation

◆ JobClass()

line::JobClass::JobClass ( NetworkModel & m,
std::size_t idx,
const std::string & nm )
inlineprotected

Member Function Documentation

◆ get_index()

std::size_t line::JobClass::get_index ( ) const
inline

◆ get_name()

const std::string & line::JobClass::get_name ( ) const
inline

getName().

Definition at line 390 of file nodes.h.

References name_.

◆ operator std::size_t()

line::JobClass::operator std::size_t ( ) const
inline

A handle IS its index wherever one is expected.

Definition at line 392 of file nodes.h.

References idx_.

◆ set_completes()

void line::JobClass::set_completes ( bool flag)
inline

completes = flag: whether passing the reference station completes the chain's cycle.

Definition at line 394 of file nodes.h.

References idx_, model_, and line::qn::Network< T >::set_class_completes().

Member Data Documentation

◆ idx_

std::size_t line::JobClass::idx_
protected

Definition at line 400 of file nodes.h.

Referenced by get_index(), JobClass(), operator std::size_t(), and set_completes().

◆ model_

NetworkModel* line::JobClass::model_
protected

Definition at line 399 of file nodes.h.

Referenced by JobClass(), and set_completes().

◆ name_

std::string line::JobClass::name_
protected

Definition at line 401 of file nodes.h.

Referenced by get_name(), and JobClass().


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