OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate Class Reference

Tri-state runtime update for the singular SpotFunds global P&L barrier. More...

Public Member Functions

const std::optional< SpotFundsPnlBoundsBarrier > & Barrier () const noexcept
 
bool HasUpdate () const noexcept
 

Static Public Member Functions

static SpotFundsPnlBoundsGlobalBarrierUpdate Clear () noexcept
 Clears the current global barrier. More...
 
static SpotFundsPnlBoundsGlobalBarrierUpdate Set (SpotFundsPnlBoundsBarrier barrier)
 Replaces the current global barrier. More...
 
static SpotFundsPnlBoundsGlobalBarrierUpdate Unchanged () noexcept
 Leaves the current global barrier unchanged. More...
 

Detailed Description

Tri-state runtime update for the singular SpotFunds global P&L barrier.

Use the explicitly named Unchanged, Clear, and Set factories. Direct construction is intentionally unavailable so legacy std::nullopt and barrier arguments fail to compile instead of silently changing meaning. A collection state is not representable because this axis is singular.

Member Function Documentation

◆ Barrier()

const std::optional<SpotFundsPnlBoundsBarrier>& openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Barrier ( ) const
inlinenoexcept

◆ Clear()

static SpotFundsPnlBoundsGlobalBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Clear ( )
inlinestaticnoexcept

Clears the current global barrier.

◆ HasUpdate()

bool openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::HasUpdate ( ) const
inlinenoexcept

◆ Set()

static SpotFundsPnlBoundsGlobalBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Set ( SpotFundsPnlBoundsBarrier  barrier)
inlinestatic

Replaces the current global barrier.

◆ Unchanged()

static SpotFundsPnlBoundsGlobalBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Unchanged ( )
inlinestaticnoexcept

Leaves the current global barrier unchanged.