PlasmaMLPALLAS
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
OnnxParameters Class Reference

Singleton class to manage ONNX beam parameters in a thread-safe way. More...

#include <PlasmaMLPALLASOnnxParameters.hh>

Public Member Functions

Thread-safe setters
void SetStatusONNX (int status)
 
void SetXoff (double x)
 
void SetA0 (double a0)
 
void SetCN2 (double cn2)
 
void SetPressure (double p)
 
void SetParticleName (const std::string &name)
 
Thread-safe getters
int GetStatusONNX () const
 
double GetXoff () const
 
double GetA0 () const
 
double GetCN2 () const
 
double GetPressure () const
 
std::string GetParticleName () const
 

Static Public Member Functions

static OnnxParametersInstance ()
 Access the singleton instance.
 

Detailed Description

Singleton class to manage ONNX beam parameters in a thread-safe way.

Author
Arnaud HUBER huber.nosp@m.@lp2.nosp@m.ib.in.nosp@m.2p3..nosp@m.fr - Alexei SYTOV sytov.nosp@m.@inf.nosp@m.n.it
Date
2025

This class provides thread-safe getters and setters for parameters used by ONNX models. It ensures that updates and reads are synchronized across multiple threads.

Member Function Documentation

◆ GetA0()

double OnnxParameters::GetA0 ( ) const
inline

◆ GetCN2()

double OnnxParameters::GetCN2 ( ) const
inline

◆ GetParticleName()

std::string OnnxParameters::GetParticleName ( ) const
inline

◆ GetPressure()

double OnnxParameters::GetPressure ( ) const
inline

◆ GetStatusONNX()

int OnnxParameters::GetStatusONNX ( ) const
inline

◆ GetXoff()

double OnnxParameters::GetXoff ( ) const
inline

◆ Instance()

static OnnxParameters & OnnxParameters::Instance ( )
inlinestatic

Access the singleton instance.

Returns
Reference to the singleton instance of OnnxParameters.

◆ SetA0()

void OnnxParameters::SetA0 ( double  a0)
inline

◆ SetCN2()

void OnnxParameters::SetCN2 ( double  cn2)
inline

◆ SetParticleName()

void OnnxParameters::SetParticleName ( const std::string &  name)
inline

◆ SetPressure()

void OnnxParameters::SetPressure ( double  p)
inline

◆ SetStatusONNX()

void OnnxParameters::SetStatusONNX ( int  status)
inline

◆ SetXoff()

void OnnxParameters::SetXoff ( double  x)
inline

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