plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::st::ProcessImage类 参考

#include <process_image.h>

Public 成员函数

 ProcessImage ()=default
 ProcessImage (const ProcessImage &)=delete
ProcessImage & operator= (const ProcessImage &)=delete
rt::ErrorCode load (const Program &program, unsigned char *buffer, std::size_t buffer_bytes)
bool loaded_for (const Program &program) const noexcept
bool supports (const Program &program) const noexcept
rt::ErrorCode submit_input (const unsigned char *bytes, std::size_t size, std::uint64_t version)
rt::ErrorCode output_snapshot (unsigned char *bytes, std::size_t capacity, std::size_t &written, std::uint64_t &version) const
rt::ErrorCode memory_snapshot (unsigned char *bytes, std::size_t capacity, std::size_t &written, std::uint64_t &version) const
rt::ErrorCode queue_force (const char *name, TypeId type, const unsigned char *value, std::size_t size)
rt::ErrorCode queue_force_index (std::size_t index, TypeId type, const unsigned char *value, std::size_t size, std::uint32_t owner, std::uint64_t release, std::uint64_t &queue_version)
rt::ErrorCode queue_release (const char *name)
rt::ErrorCode queue_release_index (std::size_t index, std::uint32_t owner, std::uint64_t release, std::uint64_t &queue_version)
int located_index (const char *name) const
int located_index (const SymbolInfo &symbol) const noexcept
std::uint64_t force_queue_version () const noexcept
SnapshotError encode_snapshot (SnapshotKind kind, unsigned char *bytes, std::size_t capacity, std::size_t &written) const
SnapshotError restore_snapshot (SnapshotKind kind, const unsigned char *bytes, std::size_t size, SnapshotReport &report)
void begin_scan (unsigned char *vars)
void begin_scan (const Program &layout, unsigned char *vars)
void begin_transaction ()
void begin_transaction (std::uint32_t owner, std::uint64_t release)
void mark_store (const Program &layout, std::uint32_t offset, TypeId type)
std::uint8_t transaction_dirty (ProcessArea area, std::size_t byte) const noexcept
bool park_transaction (unsigned char *output, unsigned char *output_dirty, std::size_t output_size, unsigned char *memory, unsigned char *memory_dirty, std::size_t memory_size) const noexcept
bool restore_transaction (const unsigned char *output, const unsigned char *output_dirty, std::size_t output_size, const unsigned char *memory, const unsigned char *memory_dirty, std::size_t memory_size) noexcept
bool forced_store (std::uint32_t offset, TypeId type, std::uint64_t &value) const
bool forced_store (const Program &layout, std::uint32_t offset, TypeId type, std::uint64_t &value) const
void commit_scan (const unsigned char *vars)
void commit_scan (const Program &layout, const unsigned char *vars)
void commit_scan (const Program &layout, const unsigned char *vars, bool publish)
void publish_scan ()
void commit_transaction ()
void discard_scan ()

静态 Public 属性

static constexpr std::uint32_t wildcard_force_owner
static constexpr std::uint64_t wildcard_force_release = 0

详细描述

在文件 process_image.h 第 42 行定义.

构造及析构函数说明

◆ ProcessImage() [1/2]

plcopen::core::st::ProcessImage::ProcessImage ( )
default

◆ ProcessImage() [2/2]

plcopen::core::st::ProcessImage::ProcessImage ( const ProcessImage & )
delete

成员函数说明

◆ begin_scan() [1/2]

void plcopen::core::st::ProcessImage::begin_scan ( const Program & layout,
unsigned char * vars )
inline

在文件 process_image.h 第 386 行定义.

◆ begin_scan() [2/2]

void plcopen::core::st::ProcessImage::begin_scan ( unsigned char * vars)
inline

在文件 process_image.h 第 381 行定义.

◆ begin_transaction() [1/2]

void plcopen::core::st::ProcessImage::begin_transaction ( )
inline

在文件 process_image.h 第 405 行定义.

◆ begin_transaction() [2/2]

void plcopen::core::st::ProcessImage::begin_transaction ( std::uint32_t owner,
std::uint64_t release )
inline

在文件 process_image.h 第 410 行定义.

◆ commit_scan() [1/3]

void plcopen::core::st::ProcessImage::commit_scan ( const Program & layout,
const unsigned char * vars )
inline

在文件 process_image.h 第 523 行定义.

◆ commit_scan() [2/3]

void plcopen::core::st::ProcessImage::commit_scan ( const Program & layout,
const unsigned char * vars,
bool publish )
inline

在文件 process_image.h 第 528 行定义.

◆ commit_scan() [3/3]

void plcopen::core::st::ProcessImage::commit_scan ( const unsigned char * vars)
inline

在文件 process_image.h 第 518 行定义.

◆ commit_transaction()

void plcopen::core::st::ProcessImage::commit_transaction ( )
inline

在文件 process_image.h 第 559 行定义.

◆ discard_scan()

void plcopen::core::st::ProcessImage::discard_scan ( )
inline

在文件 process_image.h 第 565 行定义.

◆ encode_snapshot()

SnapshotError plcopen::core::st::ProcessImage::encode_snapshot ( SnapshotKind kind,
unsigned char * bytes,
std::size_t capacity,
std::size_t & written ) const
inline

在文件 process_image.h 第 254 行定义.

◆ force_queue_version()

std::uint64_t plcopen::core::st::ProcessImage::force_queue_version ( ) const
inlinenoexcept

在文件 process_image.h 第 249 行定义.

◆ forced_store() [1/2]

bool plcopen::core::st::ProcessImage::forced_store ( const Program & layout,
std::uint32_t offset,
TypeId type,
std::uint64_t & value ) const
inline

在文件 process_image.h 第 501 行定义.

◆ forced_store() [2/2]

bool plcopen::core::st::ProcessImage::forced_store ( std::uint32_t offset,
TypeId type,
std::uint64_t & value ) const
inline

在文件 process_image.h 第 495 行定义.

◆ load()

rt::ErrorCode plcopen::core::st::ProcessImage::load ( const Program & program,
unsigned char * buffer,
std::size_t buffer_bytes )
inline

在文件 process_image.h 第 53 行定义.

◆ loaded_for()

bool plcopen::core::st::ProcessImage::loaded_for ( const Program & program) const
inlinenoexcept

在文件 process_image.h 第 106 行定义.

◆ located_index() [1/2]

int plcopen::core::st::ProcessImage::located_index ( const char * name) const
inline

在文件 process_image.h 第 228 行定义.

◆ located_index() [2/2]

int plcopen::core::st::ProcessImage::located_index ( const SymbolInfo & symbol) const
inlinenoexcept

在文件 process_image.h 第 230 行定义.

◆ mark_store()

void plcopen::core::st::ProcessImage::mark_store ( const Program & layout,
std::uint32_t offset,
TypeId type )
inline

在文件 process_image.h 第 420 行定义.

◆ memory_snapshot()

rt::ErrorCode plcopen::core::st::ProcessImage::memory_snapshot ( unsigned char * bytes,
std::size_t capacity,
std::size_t & written,
std::uint64_t & version ) const
inline

在文件 process_image.h 第 143 行定义.

◆ operator=()

ProcessImage & plcopen::core::st::ProcessImage::operator= ( const ProcessImage & )
delete

◆ output_snapshot()

rt::ErrorCode plcopen::core::st::ProcessImage::output_snapshot ( unsigned char * bytes,
std::size_t capacity,
std::size_t & written,
std::uint64_t & version ) const
inline

在文件 process_image.h 第 133 行定义.

◆ park_transaction()

bool plcopen::core::st::ProcessImage::park_transaction ( unsigned char * output,
unsigned char * output_dirty,
std::size_t output_size,
unsigned char * memory,
unsigned char * memory_dirty,
std::size_t memory_size ) const
inlinenoexcept

在文件 process_image.h 第 440 行定义.

◆ publish_scan()

void plcopen::core::st::ProcessImage::publish_scan ( )
inline

在文件 process_image.h 第 549 行定义.

◆ queue_force()

rt::ErrorCode plcopen::core::st::ProcessImage::queue_force ( const char * name,
TypeId type,
const unsigned char * value,
std::size_t size )
inline

在文件 process_image.h 第 153 行定义.

◆ queue_force_index()

rt::ErrorCode plcopen::core::st::ProcessImage::queue_force_index ( std::size_t index,
TypeId type,
const unsigned char * value,
std::size_t size,
std::uint32_t owner,
std::uint64_t release,
std::uint64_t & queue_version )
inline

在文件 process_image.h 第 165 行定义.

◆ queue_release()

rt::ErrorCode plcopen::core::st::ProcessImage::queue_release ( const char * name)
inline

在文件 process_image.h 第 201 行定义.

◆ queue_release_index()

rt::ErrorCode plcopen::core::st::ProcessImage::queue_release_index ( std::size_t index,
std::uint32_t owner,
std::uint64_t release,
std::uint64_t & queue_version )
inline

在文件 process_image.h 第 212 行定义.

◆ restore_snapshot()

SnapshotError plcopen::core::st::ProcessImage::restore_snapshot ( SnapshotKind kind,
const unsigned char * bytes,
std::size_t size,
SnapshotReport & report )
inline

在文件 process_image.h 第 297 行定义.

◆ restore_transaction()

bool plcopen::core::st::ProcessImage::restore_transaction ( const unsigned char * output,
const unsigned char * output_dirty,
std::size_t output_size,
const unsigned char * memory,
const unsigned char * memory_dirty,
std::size_t memory_size )
inlinenoexcept

在文件 process_image.h 第 463 行定义.

◆ submit_input()

rt::ErrorCode plcopen::core::st::ProcessImage::submit_input ( const unsigned char * bytes,
std::size_t size,
std::uint64_t version )
inline

在文件 process_image.h 第 122 行定义.

◆ supports()

bool plcopen::core::st::ProcessImage::supports ( const Program & program) const
inlinenoexcept

在文件 process_image.h 第 111 行定义.

◆ transaction_dirty()

std::uint8_t plcopen::core::st::ProcessImage::transaction_dirty ( ProcessArea area,
std::size_t byte ) const
inlinenoexcept

在文件 process_image.h 第 430 行定义.

类成员变量说明

◆ wildcard_force_owner

std::uint32_t plcopen::core::st::ProcessImage::wildcard_force_owner
staticconstexpr
初始值:
=
std::numeric_limits<std::uint32_t>::max()

在文件 process_image.h 第 45 行定义.

◆ wildcard_force_release

std::uint64_t plcopen::core::st::ProcessImage::wildcard_force_release = 0
staticconstexpr

在文件 process_image.h 第 47 行定义.


该类的文档由以下文件生成: