Turi Create  4.0
turi::neural_net::Demand Class Reference

#include <ml/neural_net/combine_base.hpp>

Public Member Functions

 Demand (int max)
 
int max () const
 
DemandAdd (Demand other)
 
DemandDecrement ()
 

Detailed Description

Simple type expressing how many values a Subscriber is ready to receive from its Publisher.

Definition at line 54 of file combine_base.hpp.

Constructor & Destructor Documentation

◆ Demand()

turi::neural_net::Demand::Demand ( int  max)
inlineexplicit

Any negative value is interpreted as "unlimited".

Definition at line 60 of file combine_base.hpp.

Member Function Documentation

◆ Add()

Demand& turi::neural_net::Demand::Add ( Demand  other)
inline

Additively combines another Demand value into this one.

Definition at line 69 of file combine_base.hpp.

◆ Decrement()

Demand& turi::neural_net::Demand::Decrement ( )
inline

Decrease this demand by one if the current max is positive and finite.

Definition at line 79 of file combine_base.hpp.

◆ max()

int turi::neural_net::Demand::max ( ) const
inline

Returns a negative number to indicate "unlimited."

Definition at line 66 of file combine_base.hpp.


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