PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail Namespace Reference

Data Structures

struct  PineMapKeyEqual
 
struct  PineMapKeyEqual< Key, true >
 
struct  PineMapKeyHash
 
struct  PineMapKeyHash< Key, true >
 

Typedefs

template<typename T>
using PineMapBare = std::remove_cv_t<std::remove_reference_t<T>>
 

Functions

template<typename Row>
void erase_row (std::vector< Row > &data, int idx)
 
template<typename Row>
void erase_col (std::vector< Row > &data, int idx)
 
template<typename Row>
void swap_rows_impl (std::vector< Row > &data, int i, int j)
 
template<typename Row>
void swap_cols_impl (std::vector< Row > &data, int i, int j)
 
template<typename Row>
std::vector< Row > copy_submatrix (const std::vector< Row > &data, int from_row, int to_row, int from_col, int to_col)
 
template<typename Row>
std::vector< Row > transpose_impl (const std::vector< Row > &data, int r, int c, const typename Row::value_type &zero)
 
template<typename Row>
void concat_impl (std::vector< Row > &m, const std::vector< Row > &other, bool horizontal)
 
template<typename Row>
void reshape_impl (std::vector< Row > &data, int new_rows, int new_cols, const typename Row::value_type &zero)
 
template<typename Row>
int elements_count_impl (const std::vector< Row > &data)
 
template<typename Row>
void sort_impl (std::vector< Row > &data, int column, bool ascending)
 

Variables

template<typename T>
constexpr bool is_pine_map_key_v
 
template<typename T>
constexpr bool is_pine_map_snapshot_value_v
 

Typedef Documentation

◆ PineMapBare

template<typename T>
using pineforge::detail::PineMapBare = std::remove_cv_t<std::remove_reference_t<T>>

Definition at line 25 of file map.hpp.

Function Documentation

◆ erase_row()

template<typename Row>
void pineforge::detail::erase_row ( std::vector< Row > & data,
int idx )
inline

◆ erase_col()

template<typename Row>
void pineforge::detail::erase_col ( std::vector< Row > & data,
int idx )
inline

◆ swap_rows_impl()

template<typename Row>
void pineforge::detail::swap_rows_impl ( std::vector< Row > & data,
int i,
int j )
inline

◆ swap_cols_impl()

template<typename Row>
void pineforge::detail::swap_cols_impl ( std::vector< Row > & data,
int i,
int j )
inline

◆ copy_submatrix()

template<typename Row>
std::vector< Row > pineforge::detail::copy_submatrix ( const std::vector< Row > & data,
int from_row,
int to_row,
int from_col,
int to_col )
inline

◆ transpose_impl()

template<typename Row>
std::vector< Row > pineforge::detail::transpose_impl ( const std::vector< Row > & data,
int r,
int c,
const typename Row::value_type & zero )
inline

◆ concat_impl()

template<typename Row>
void pineforge::detail::concat_impl ( std::vector< Row > & m,
const std::vector< Row > & other,
bool horizontal )
inline

◆ reshape_impl()

template<typename Row>
void pineforge::detail::reshape_impl ( std::vector< Row > & data,
int new_rows,
int new_cols,
const typename Row::value_type & zero )
inline

◆ elements_count_impl()

template<typename Row>
int pineforge::detail::elements_count_impl ( const std::vector< Row > & data)
inline

◆ sort_impl()

template<typename Row>
void pineforge::detail::sort_impl ( std::vector< Row > & data,
int column,
bool ascending )
inline

Definition at line 120 of file generic_matrix.hpp.

Referenced by pineforge::GenericMatrix< T >::sort().

Variable Documentation

◆ is_pine_map_key_v

template<typename T>
bool pineforge::detail::is_pine_map_key_v
inlineconstexpr
Initial value:
=
std::is_integral_v<PineMapBare<T>> ||
std::is_floating_point_v<PineMapBare<T>> ||
std::is_enum_v<PineMapBare<T>> ||
std::is_same_v<PineMapBare<T>, std::string>

Definition at line 28 of file map.hpp.

◆ is_pine_map_snapshot_value_v

template<typename T>
bool pineforge::detail::is_pine_map_snapshot_value_v
inlineconstexpr
Initial value:
=
!std::is_reference_v<T> &&
(std::is_arithmetic_v<PineMapBare<T>> ||
std::is_enum_v<PineMapBare<T>> ||
std::is_same_v<PineMapBare<T>, std::string>)

Definition at line 35 of file map.hpp.