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

#include <slick-trader/utils/mapped_file.hpp>

Collaboration diagram for slick::trader::MappedFile:

Public Member Functions

 MappedFile ()=default
 MappedFile (const std::string &path, std::size_t size)
 ~MappedFile ()
 MappedFile (MappedFile &&other) noexcept
MappedFile & operator= (MappedFile &&other) noexcept
 MappedFile (const MappedFile &)=delete
MappedFile & operator= (const MappedFile &)=delete
std::uint8_t * data () noexcept
const std::uint8_t * data () const noexcept
std::size_t size () const noexcept
bool is_open () const noexcept
bool created () const noexcept
void flush () noexcept
void close () noexcept

Detailed Description

Definition at line 18 of file mapped_file.hpp.

Constructor & Destructor Documentation

◆ MappedFile() [1/4]

slick::trader::MappedFile::MappedFile ( )
default

◆ MappedFile() [2/4]

slick::trader::MappedFile::MappedFile ( const std::string & path,
std::size_t size )

Definition at line 35 of file mapped_file.cpp.

References close(), and size().

◆ ~MappedFile()

slick::trader::MappedFile::~MappedFile ( )

Definition at line 112 of file mapped_file.cpp.

References close().

◆ MappedFile() [3/4]

slick::trader::MappedFile::MappedFile ( MappedFile && other)
noexcept

Definition at line 116 of file mapped_file.cpp.

References MappedFile().

◆ MappedFile() [4/4]

slick::trader::MappedFile::MappedFile ( const MappedFile & )
delete

References MappedFile().

Member Function Documentation

◆ close()

void slick::trader::MappedFile::close ( )
noexcept

Definition at line 148 of file mapped_file.cpp.

References close().

Referenced by MappedFile(), ~MappedFile(), close(), and operator=().

◆ created()

bool slick::trader::MappedFile::created ( ) const
inlinenoexcept

Definition at line 39 of file mapped_file.hpp.

◆ data() [1/2]

const std::uint8_t * slick::trader::MappedFile::data ( ) const
inlinenoexcept

Definition at line 34 of file mapped_file.hpp.

◆ data() [2/2]

std::uint8_t * slick::trader::MappedFile::data ( )
inlinenoexcept

Definition at line 33 of file mapped_file.hpp.

◆ flush()

void slick::trader::MappedFile::flush ( )
noexcept

Definition at line 136 of file mapped_file.cpp.

◆ is_open()

bool slick::trader::MappedFile::is_open ( ) const
inlinenoexcept

Definition at line 36 of file mapped_file.hpp.

◆ operator=() [1/2]

MappedFile & slick::trader::MappedFile::operator= ( const MappedFile & )
delete

References MappedFile().

◆ operator=() [2/2]

MappedFile & slick::trader::MappedFile::operator= ( MappedFile && other)
noexcept

Definition at line 120 of file mapped_file.cpp.

References MappedFile(), and close().

◆ size()

std::size_t slick::trader::MappedFile::size ( ) const
inlinenoexcept

Definition at line 35 of file mapped_file.hpp.

Referenced by MappedFile(), and MappedFile().


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