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

Cache(model, name, params). More...

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

Inheritance diagram for line::Cache:
Collaboration diagram for line::Cache:

Public Member Functions

 Cache (NetworkModel &m, const std::string &nm, const qn::CacheParam< double > &par)
void set_item_read_classes (const std::vector< std::size_t > &read_classes, const std::vector< std::size_t > &hit_classes)
 setItemReadClasses(read_classes, hit_classes), one entry per item.
Public Member Functions inherited from line::Node
std::size_t get_index () const
 get_index(): the 1-based node index the builder assigned.
const std::string & get_name () const
 getName().
NetworkModelmodel () const
 The model this node belongs to.
 operator std::size_t () const
 A handle IS its index wherever one is expected.
void set_routing (std::size_t cls, lang::RoutingStrategy rs)
 setRouting(class, strategy).
void set_routing_weights (std::size_t cls, const std::map< std::size_t, double > &weights)
 setRoutingWeight(class, weights): the WRROBIN share per destination.

Additional Inherited Members

Protected Member Functions inherited from line::Node
 Node (NetworkModel &m, std::size_t idx, const std::string &nm)
Protected Attributes inherited from line::Node
NetworkModelmodel_
std::size_t idx_
std::string name_

Detailed Description

Cache(model, name, params).

Definition at line 208 of file nodes.h.

Constructor & Destructor Documentation

◆ Cache()

line::Cache::Cache ( NetworkModel & m,
const std::string & nm,
const qn::CacheParam< double > & par )
inline

Definition at line 210 of file nodes.h.

References line::Node::Node().

Member Function Documentation

◆ set_item_read_classes()

void line::Cache::set_item_read_classes ( const std::vector< std::size_t > & read_classes,
const std::vector< std::size_t > & hit_classes )
inline

setItemReadClasses(read_classes, hit_classes), one entry per item.

Definition at line 213 of file nodes.h.

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


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