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

The memoization key: the argument list of after_event, in fields. More...

#include <line/solvers/ssa/ssa_event_cache.h>

Collaboration diagram for line::ssa::SsaEventKey:

Public Member Functions

bool operator< (const SsaEventKey &o) const

Public Attributes

std::size_t ind = 0
 1-based node index
int event = 0
 EventType, as its underlying value
std::size_t cls = 0
 1-based class index
bool no_promote = false
double aux_rate = 0.0
std::vector< double > inspace
 the node's local state row

Detailed Description

The memoization key: the argument list of after_event, in fields.

The pieces are kept SEPARATE rather than flattened into one vector because a flatten lets a wide state row of one node impersonate a narrow row of another with a different index prefix; separate fields cannot collide by construction, so no separator sentinel is needed.

Definition at line 74 of file ssa_event_cache.h.

Member Function Documentation

◆ operator<()

bool line::ssa::SsaEventKey::operator< ( const SsaEventKey & o) const
inline

Definition at line 82 of file ssa_event_cache.h.

References aux_rate, cls, event, ind, inspace, and no_promote.

Member Data Documentation

◆ aux_rate

double line::ssa::SsaEventKey::aux_rate = 0.0

Definition at line 79 of file ssa_event_cache.h.

Referenced by line::ssa::SsaEventCache< T >::after_event(), and operator<().

◆ cls

std::size_t line::ssa::SsaEventKey::cls = 0

1-based class index

Definition at line 77 of file ssa_event_cache.h.

Referenced by line::ssa::SsaEventCache< T >::after_event(), and operator<().

◆ event

int line::ssa::SsaEventKey::event = 0

EventType, as its underlying value

Definition at line 76 of file ssa_event_cache.h.

Referenced by line::ssa::SsaEventCache< T >::after_event(), and operator<().

◆ ind

std::size_t line::ssa::SsaEventKey::ind = 0

1-based node index

Definition at line 75 of file ssa_event_cache.h.

Referenced by line::ssa::SsaEventCache< T >::after_event(), and operator<().

◆ inspace

std::vector<double> line::ssa::SsaEventKey::inspace

the node's local state row

Definition at line 80 of file ssa_event_cache.h.

Referenced by line::ssa::SsaEventCache< T >::after_event(), and operator<().

◆ no_promote

bool line::ssa::SsaEventKey::no_promote = false

Definition at line 78 of file ssa_event_cache.h.

Referenced by line::ssa::SsaEventCache< T >::after_event(), and operator<().


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