PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::script_array::ElementCodec< T, Enable > Struct Template Reference

#include <array.hpp>

Public Types

using Cell = T
 

Static Public Member Functions

static Cell encode (o1::Store &, const T &value)
 
static T decode (const o1::Store &, const Cell &value)
 
static Cell clone (const o1::Store &, const Cell &value, o1::Store &)
 
static void destroy (o1::Store &, const Cell &)
 
template<class Sink>
static void hash (const o1::Store &, const Cell &value, Sink &sink)
 

Static Public Attributes

static constexpr bool owns_objects = false
 

Detailed Description

template<class T, class Enable = void>
struct pineforge::detail::script_array::ElementCodec< T, Enable >

Definition at line 114 of file array.hpp.

Member Typedef Documentation

◆ Cell

template<class T, class Enable = void>
using pineforge::detail::script_array::ElementCodec< T, Enable >::Cell = T

Definition at line 117 of file array.hpp.

Member Function Documentation

◆ encode()

template<class T, class Enable = void>
static Cell pineforge::detail::script_array::ElementCodec< T, Enable >::encode ( o1::Store & ,
const T & value )
inlinestatic

Definition at line 119 of file array.hpp.

References pineforge::detail::value.

Referenced by pineforge::ScriptArray< T >::push_back().

◆ decode()

template<class T, class Enable = void>
static T pineforge::detail::script_array::ElementCodec< T, Enable >::decode ( const o1::Store & ,
const Cell & value )
inlinestatic

Definition at line 120 of file array.hpp.

References pineforge::detail::value.

◆ clone()

template<class T, class Enable = void>
static Cell pineforge::detail::script_array::ElementCodec< T, Enable >::clone ( const o1::Store & ,
const Cell & value,
o1::Store &  )
inlinestatic

◆ destroy()

template<class T, class Enable = void>
static void pineforge::detail::script_array::ElementCodec< T, Enable >::destroy ( o1::Store & ,
const Cell &  )
inlinestatic

Definition at line 122 of file array.hpp.

Referenced by pineforge::ScriptArray< T >::clear().

◆ hash()

template<class T, class Enable = void>
template<class Sink>
static void pineforge::detail::script_array::ElementCodec< T, Enable >::hash ( const o1::Store & ,
const Cell & value,
Sink & sink )
inlinestatic

Definition at line 124 of file array.hpp.

References pineforge::detail::value.

Referenced by pineforge::ScriptArray< T >::hash_into().

Field Documentation

◆ owns_objects

template<class T, class Enable = void>
bool pineforge::detail::script_array::ElementCodec< T, Enable >::owns_objects = false
staticconstexpr

Definition at line 118 of file array.hpp.

Referenced by pineforge::ScriptArray< T >::clear().


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