Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::EventSerializer Class Reference

#include <slick-trader/events/event_serializer.hpp>

Collaboration diagram for slick::trader::EventSerializer:

Static Public Member Functions

template<typename T, typename populate_event_fn>
static bool publish (slick::SlickQueue< uint8_t > &queue, uint32_t size, populate_event_fn &&populate_event_func)
template<typename T, typename populate_event_fn>
static bool publish (slick::SlickQueue< uint8_t > &queue, populate_event_fn &&populate_event_func)
template<typename T>
static bool publish (slick::SlickQueue< uint8_t > &queue, const T &event)
template<typename T>
static T * consume (slick::SlickQueue< uint8_t > &queue, uint64_t &cursor)
template<typename T, typename populate_event_fn>
static bool publish (producer_buffer &buffer, uint32_t size, populate_event_fn &&populate_event_func)
template<typename T, typename populate_event_fn>
static bool publish (producer_buffer &buffer, populate_event_fn &&populate_event_func)
template<typename T>
static bool publish (producer_buffer &buffer, const T &event)

Detailed Description

Definition at line 18 of file event_serializer.hpp.

Member Function Documentation

◆ consume()

template<typename T>
T * slick::trader::EventSerializer::consume ( slick::SlickQueue< uint8_t > & queue,
uint64_t & cursor )
inlinestatic

Definition at line 54 of file event_serializer.hpp.

◆ publish() [1/6]

template<typename T>
bool slick::trader::EventSerializer::publish ( producer_buffer & buffer,
const T & event )
inlinestatic

Definition at line 88 of file event_serializer.hpp.

◆ publish() [2/6]

template<typename T, typename populate_event_fn>
bool slick::trader::EventSerializer::publish ( producer_buffer & buffer,
populate_event_fn && populate_event_func )
inlinestatic

Definition at line 76 of file event_serializer.hpp.

◆ publish() [3/6]

template<typename T, typename populate_event_fn>
bool slick::trader::EventSerializer::publish ( producer_buffer & buffer,
uint32_t size,
populate_event_fn && populate_event_func )
inlinestatic

Definition at line 65 of file event_serializer.hpp.

◆ publish() [4/6]

template<typename T>
bool slick::trader::EventSerializer::publish ( slick::SlickQueue< uint8_t > & queue,
const T & event )
inlinestatic

Definition at line 43 of file event_serializer.hpp.

◆ publish() [5/6]

template<typename T, typename populate_event_fn>
bool slick::trader::EventSerializer::publish ( slick::SlickQueue< uint8_t > & queue,
populate_event_fn && populate_event_func )
inlinestatic

Definition at line 32 of file event_serializer.hpp.

◆ publish() [6/6]


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