NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::HostResourceVector Struct Reference

Vector of independently reserved host resources. More...

#include <host_admission.h>

Public Member Functions

bool fits_within (const HostResourceVector &limit) const noexcept
 True only when every requested component is at most the corresponding limit.
 

Static Public Member Functions

static HostResourceVector saturating_add (const HostResourceVector &lhs, const HostResourceVector &rhs) noexcept
 Saturating addition prevents an impossible request from wrapping into admission.
 
static HostResourceVector subtract_clamped (const HostResourceVector &lhs, const HostResourceVector &rhs) noexcept
 Clamped subtraction is used only to expose an available diagnostic snapshot.
 

Detailed Description

Vector of independently reserved host resources.

All quantities are non-negative units.

Definition at line 29 of file host_admission.h.


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