PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::ScriptStrFormatValue Struct Reference

#include <str_utils.hpp>

Public Types

enum class  Kind {
  Number ,
  Text
}
 

Public Member Functions

template<class T, std::enable_if_t< std::is_arithmetic_v< T > &&!std::is_same_v< T, bool >, int > = 0>
 ScriptStrFormatValue (T value)
 
 ScriptStrFormatValue (bool value)
 
 ScriptStrFormatValue (ScriptString value)
 
 ScriptStrFormatValue (const char *value)
 

Data Fields

Kind kind
 
double number = 0.0
 
ScriptString text
 

Detailed Description

Definition at line 35 of file str_utils.hpp.

Member Enumeration Documentation

◆ Kind

Enumerator
Number 
Text 

Definition at line 36 of file str_utils.hpp.

Constructor & Destructor Documentation

◆ ScriptStrFormatValue() [1/4]

template<class T, std::enable_if_t< std::is_arithmetic_v< T > &&!std::is_same_v< T, bool >, int > = 0>
pineforge::ScriptStrFormatValue::ScriptStrFormatValue ( T value)
inline

Definition at line 42 of file str_utils.hpp.

References kind, pineforge::na< double >(), Number, and number.

◆ ScriptStrFormatValue() [2/4]

pineforge::ScriptStrFormatValue::ScriptStrFormatValue ( bool value)
inline

Definition at line 47 of file str_utils.hpp.

References kind, Text, and text.

◆ ScriptStrFormatValue() [3/4]

pineforge::ScriptStrFormatValue::ScriptStrFormatValue ( ScriptString value)
inline

Definition at line 48 of file str_utils.hpp.

References kind, Text, and text.

◆ ScriptStrFormatValue() [4/4]

pineforge::ScriptStrFormatValue::ScriptStrFormatValue ( const char * value)
inline

Definition at line 49 of file str_utils.hpp.

References kind, Text, and text.

Field Documentation

◆ kind

Kind pineforge::ScriptStrFormatValue::kind

◆ number

double pineforge::ScriptStrFormatValue::number = 0.0

Definition at line 38 of file str_utils.hpp.

Referenced by ScriptStrFormatValue().

◆ text

ScriptString pineforge::ScriptStrFormatValue::text

Definition at line 39 of file str_utils.hpp.

Referenced by ScriptStrFormatValue(), ScriptStrFormatValue(), and ScriptStrFormatValue().


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