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.

Protected Member Functions

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

Protected Attributes

NetworkModelmodel_
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 241 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_index(): the 1-based class index.

Definition at line 244 of file nodes.h.

References idx_.

◆ get_name()

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

getName().

Definition at line 246 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 248 of file nodes.h.

References idx_.

Member Data Documentation

◆ idx_

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

Definition at line 254 of file nodes.h.

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

◆ model_

NetworkModel* line::JobClass::model_
protected

Definition at line 253 of file nodes.h.

Referenced by JobClass().

◆ name_

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

Definition at line 255 of file nodes.h.

Referenced by get_name(), and JobClass().


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