plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::st::Program结构体 参考

#include <bytecode.h>

plcopen::core::st::Program 的协作图:

Public 成员函数

rt::ErrorCode find_symbol (const char *name, SymbolInfo &info) const
std::string canonical_manifest () const
std::string canonical_sfc_report () const
bool contains_opcode (Op opcode) const noexcept
std::uint32_t sfc_committed_shadow_offset () const noexcept
std::uint64_t sfc_runner_fixed_cost () const noexcept
std::string_view artifact_pou_name (std::uint32_t index) const noexcept
const Program * artifact_program (std::uint32_t pou_index) const noexcept
std::string_view artifact_sfc_name (std::uint32_t pou_index, std::uint32_t sfc_index) const noexcept
std::string_view artifact_sfc_action_name (std::uint32_t pou_index, std::uint32_t sfc_index, std::uint32_t action_index) const noexcept
rt::ErrorCode tasking_report (const char *configuration, TaskingReport &report) const
bool uses_binding_storage (BindingStorageKind kind) const
std::size_t binding_storage_offset () const
std::size_t sfc_runner_storage_offset () const
std::size_t sfc_storage_offset () const
bool needs_debug_runtime_storage () const noexcept
std::size_t debug_runtime_storage_offset () const
std::size_t required_bytes () const

Public 属性

std::uint32_t format_version = kBytecodeFormatVersion
std::vector< std::uint8_t > code
std::vector< std::uint32_t > instruction_offsets
std::vector< std::uint64_t > constants
std::vector< std::uint8_t > string_constants
std::vector< VarInfo > vars
ProcessImageInfo process_image
std::vector< FbInfo > fbs
TypeTable types
std::vector< std::uint8_t > initial_data
std::uint16_t stack_slots = 0
std::uint32_t vars_bytes = 0
std::uint32_t fb_bytes = 0
std::uint32_t max_string_operation_cost = 0
std::uint32_t max_standard_function_cost = 0
std::string program_name
std::vector< PouInfo > pous
std::vector< InstanceInfo > instances
std::uint16_t max_call_depth = 1
std::uint16_t max_instance_depth = 1
bool worst_case_bounded = true
std::uint64_t worst_case_instructions = 0
std::uint32_t layout_bytes = 0
std::vector< Program > programs
std::vector< ConfigurationInfo > configurations
std::vector< SfcNetworkInfo > sfc_networks
std::uint32_t sfc_runtime_bytes = 0
DebugMode debug_mode = DebugMode::disabled
SourceMap source_map
std::vector< DebugCallSite > debug_call_sites
std::vector< SymbolInfo > symbols
DebugArtifactReport debug_report

详细描述

在文件 bytecode.h 第 402 行定义.

成员函数说明

◆ artifact_pou_name()

std::string_view plcopen::core::st::Program::artifact_pou_name ( std::uint32_t index) const
inlinenoexcept

在文件 bytecode.h 第 517 行定义.

◆ artifact_program()

const Program * plcopen::core::st::Program::artifact_program ( std::uint32_t pou_index) const
inlinenoexcept

在文件 bytecode.h 第 522 行定义.

◆ artifact_sfc_action_name()

std::string_view plcopen::core::st::Program::artifact_sfc_action_name ( std::uint32_t pou_index,
std::uint32_t sfc_index,
std::uint32_t action_index ) const
inlinenoexcept

在文件 bytecode.h 第 539 行定义.

◆ artifact_sfc_name()

std::string_view plcopen::core::st::Program::artifact_sfc_name ( std::uint32_t pou_index,
std::uint32_t sfc_index ) const
inlinenoexcept

在文件 bytecode.h 第 531 行定义.

◆ binding_storage_offset()

std::size_t plcopen::core::st::Program::binding_storage_offset ( ) const
inline

在文件 bytecode.h 第 563 行定义.

◆ canonical_manifest()

std::string plcopen::core::st::Program::canonical_manifest ( ) const
inline

在文件 bytecode.h 第 923 行定义.

◆ canonical_sfc_report()

std::string plcopen::core::st::Program::canonical_sfc_report ( ) const
inline

在文件 bytecode.h 第 932 行定义.

◆ contains_opcode()

bool plcopen::core::st::Program::contains_opcode ( Op opcode) const
inlinenoexcept

在文件 bytecode.h 第 456 行定义.

◆ debug_runtime_storage_offset()

std::size_t plcopen::core::st::Program::debug_runtime_storage_offset ( ) const
inline

在文件 bytecode.h 第 599 行定义.

◆ find_symbol()

rt::ErrorCode plcopen::core::st::Program::find_symbol ( const char * name,
SymbolInfo & info ) const
inline

在文件 bytecode.h 第 438 行定义.

◆ needs_debug_runtime_storage()

bool plcopen::core::st::Program::needs_debug_runtime_storage ( ) const
inlinenoexcept

在文件 bytecode.h 第 594 行定义.

◆ required_bytes()

std::size_t plcopen::core::st::Program::required_bytes ( ) const
inline

在文件 bytecode.h 第 607 行定义.

◆ sfc_committed_shadow_offset()

std::uint32_t plcopen::core::st::Program::sfc_committed_shadow_offset ( ) const
inlinenoexcept

在文件 bytecode.h 第 479 行定义.

◆ sfc_runner_fixed_cost()

std::uint64_t plcopen::core::st::Program::sfc_runner_fixed_cost ( ) const
inlinenoexcept

在文件 bytecode.h 第 483 行定义.

◆ sfc_runner_storage_offset()

std::size_t plcopen::core::st::Program::sfc_runner_storage_offset ( ) const
inline

在文件 bytecode.h 第 573 行定义.

◆ sfc_storage_offset()

std::size_t plcopen::core::st::Program::sfc_storage_offset ( ) const
inline

在文件 bytecode.h 第 588 行定义.

◆ tasking_report()

rt::ErrorCode plcopen::core::st::Program::tasking_report ( const char * configuration,
TaskingReport & report ) const
inline

在文件 bytecode.h 第 953 行定义.

◆ uses_binding_storage()

bool plcopen::core::st::Program::uses_binding_storage ( BindingStorageKind kind) const
inline

在文件 bytecode.h 第 553 行定义.

类成员变量说明

◆ code

std::vector<std::uint8_t> plcopen::core::st::Program::code

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

◆ configurations

std::vector<ConfigurationInfo> plcopen::core::st::Program::configurations

在文件 bytecode.h 第 429 行定义.

◆ constants

std::vector<std::uint64_t> plcopen::core::st::Program::constants

在文件 bytecode.h 第 407 行定义.

◆ debug_call_sites

std::vector<DebugCallSite> plcopen::core::st::Program::debug_call_sites

在文件 bytecode.h 第 434 行定义.

◆ debug_mode

DebugMode plcopen::core::st::Program::debug_mode = DebugMode::disabled

在文件 bytecode.h 第 432 行定义.

◆ debug_report

DebugArtifactReport plcopen::core::st::Program::debug_report

在文件 bytecode.h 第 436 行定义.

◆ fb_bytes

std::uint32_t plcopen::core::st::Program::fb_bytes = 0

在文件 bytecode.h 第 416 行定义.

◆ fbs

std::vector<FbInfo> plcopen::core::st::Program::fbs

在文件 bytecode.h 第 411 行定义.

◆ format_version

std::uint32_t plcopen::core::st::Program::format_version = kBytecodeFormatVersion

在文件 bytecode.h 第 404 行定义.

◆ initial_data

std::vector<std::uint8_t> plcopen::core::st::Program::initial_data

在文件 bytecode.h 第 413 行定义.

◆ instances

std::vector<InstanceInfo> plcopen::core::st::Program::instances

在文件 bytecode.h 第 421 行定义.

◆ instruction_offsets

std::vector<std::uint32_t> plcopen::core::st::Program::instruction_offsets

在文件 bytecode.h 第 406 行定义.

◆ layout_bytes

std::uint32_t plcopen::core::st::Program::layout_bytes = 0

在文件 bytecode.h 第 427 行定义.

◆ max_call_depth

std::uint16_t plcopen::core::st::Program::max_call_depth = 1

在文件 bytecode.h 第 422 行定义.

◆ max_instance_depth

std::uint16_t plcopen::core::st::Program::max_instance_depth = 1

在文件 bytecode.h 第 423 行定义.

◆ max_standard_function_cost

std::uint32_t plcopen::core::st::Program::max_standard_function_cost = 0

在文件 bytecode.h 第 418 行定义.

◆ max_string_operation_cost

std::uint32_t plcopen::core::st::Program::max_string_operation_cost = 0

在文件 bytecode.h 第 417 行定义.

◆ pous

std::vector<PouInfo> plcopen::core::st::Program::pous

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

◆ process_image

ProcessImageInfo plcopen::core::st::Program::process_image

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

◆ program_name

std::string plcopen::core::st::Program::program_name

在文件 bytecode.h 第 419 行定义.

◆ programs

std::vector<Program> plcopen::core::st::Program::programs

在文件 bytecode.h 第 428 行定义.

◆ sfc_networks

std::vector<SfcNetworkInfo> plcopen::core::st::Program::sfc_networks

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

◆ sfc_runtime_bytes

std::uint32_t plcopen::core::st::Program::sfc_runtime_bytes = 0

在文件 bytecode.h 第 431 行定义.

◆ source_map

SourceMap plcopen::core::st::Program::source_map

在文件 bytecode.h 第 433 行定义.

◆ stack_slots

std::uint16_t plcopen::core::st::Program::stack_slots = 0

在文件 bytecode.h 第 414 行定义.

◆ string_constants

std::vector<std::uint8_t> plcopen::core::st::Program::string_constants

在文件 bytecode.h 第 408 行定义.

◆ symbols

std::vector<SymbolInfo> plcopen::core::st::Program::symbols

在文件 bytecode.h 第 435 行定义.

◆ types

TypeTable plcopen::core::st::Program::types

在文件 bytecode.h 第 412 行定义.

◆ vars

std::vector<VarInfo> plcopen::core::st::Program::vars

在文件 bytecode.h 第 409 行定义.

◆ vars_bytes

std::uint32_t plcopen::core::st::Program::vars_bytes = 0

在文件 bytecode.h 第 415 行定义.

◆ worst_case_bounded

bool plcopen::core::st::Program::worst_case_bounded = true

在文件 bytecode.h 第 424 行定义.

◆ worst_case_instructions

std::uint64_t plcopen::core::st::Program::worst_case_instructions = 0

在文件 bytecode.h 第 426 行定义.


该结构体的文档由以下文件生成: