plcopen 0.22.0
载入中...
搜索中...
未找到
type_desc.h 文件参考
#include <algorithm>
#include <array>
#include <charconv>
#include <cstdint>
#include <deque>
#include <limits>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "st/generated/st_binding_types.h"
type_desc.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

类

struct  plcopen::core::st::IntegerValue
struct  plcopen::core::st::EnumItem
struct  plcopen::core::st::SubrangeDesc
struct  plcopen::core::st::ArrayBound
struct  plcopen::core::st::ArrayDimension
struct  plcopen::core::st::ArrayDesc
struct  plcopen::core::st::StructFieldSpec
struct  plcopen::core::st::StructField
struct  plcopen::core::st::StructDesc
struct  plcopen::core::st::StringDesc
struct  plcopen::core::st::RefDesc
struct  plcopen::core::st::TypeDesc
class  plcopen::core::st::TypeTable

命名空间

namespace  plcopen
namespace  plcopen::core
namespace  plcopen::core::st
namespace  plcopen::core::st::builtin
namespace  plcopen::core::st::type_desc_detail

类型定义

using plcopen::core::st::TypeId = std::uint32_t

枚举

enum class  plcopen::core::st::TypeKind : std::uint8_t {
  plcopen::core::st::elementary , plcopen::core::st::enum_ , plcopen::core::st::subrange , plcopen::core::st::array ,
  plcopen::core::st::struct_ , plcopen::core::st::string , plcopen::core::st::wstring , plcopen::core::st::date ,
  plcopen::core::st::tod , plcopen::core::st::dt , plcopen::core::st::ref
}
enum class  plcopen::core::st::TypeError : std::uint8_t {
  plcopen::core::st::ok , plcopen::core::st::invalid_type , plcopen::core::st::invalid_name , plcopen::core::st::duplicate_type ,
  plcopen::core::st::duplicate_member , plcopen::core::st::invalid_integer_base , plcopen::core::st::integer_sign_mismatch , plcopen::core::st::value_out_of_range ,
  plcopen::core::st::invalid_bounds , plcopen::core::st::invalid_dimensions , plcopen::core::st::invalid_capacity , plcopen::core::st::recursive_type ,
  plcopen::core::st::size_overflow , plcopen::core::st::not_found
}
enum class  plcopen::core::st::IntegerSign : std::uint8_t { plcopen::core::st::none , plcopen::core::st::signed_ , plcopen::core::st::unsigned_ }

函数

constexpr bool plcopen::core::st::operator== (IntegerValue left, IntegerValue right)
constexpr bool plcopen::core::st::operator!= (IntegerValue left, IntegerValue right)
TypeDesc plcopen::core::st::type_desc_detail::make_builtin (TypeId id, TypeKind kind, const char *name, std::uint64_t size, std::uint32_t alignment, IntegerSign sign=IntegerSign::none, std::uint8_t width=0)
const std::array< TypeDesc, builtin::last > & plcopen::core::st::type_desc_detail::builtin_types ()
bool plcopen::core::st::type_desc_detail::identifier (std::string_view name)
unsigned char plcopen::core::st::type_desc_detail::ascii_fold (unsigned char value)
bool plcopen::core::st::type_desc_detail::ascii_equal (std::string_view left, std::string_view right)
bool plcopen::core::st::type_desc_detail::multiply (std::uint64_t left, std::uint64_t right, std::uint64_t &result)
bool plcopen::core::st::type_desc_detail::align_up (std::uint64_t value, std::uint32_t alignment, std::uint64_t &result)
bool plcopen::core::st::type_desc_detail::value_fits (const TypeDesc &base, IntegerValue value)
bool plcopen::core::st::type_desc_detail::less (IntegerValue left, IntegerValue right)
void plcopen::core::st::type_desc_detail::append_u64 (std::string &out, std::uint64_t value)
void plcopen::core::st::type_desc_detail::append_i64 (std::string &out, std::int64_t value)
void plcopen::core::st::type_desc_detail::append_integer (std::string &out, IntegerValue value)
const char * plcopen::core::st::type_desc_detail::kind_name (TypeKind kind)

变量

constexpr TypeId plcopen::core::st::invalid_type_id = 0
constexpr TypeId plcopen::core::st::first_load_type_id = 65536
constexpr TypeId plcopen::core::st::builtin::bool_ = 1
constexpr TypeId plcopen::core::st::builtin::sint = 2
constexpr TypeId plcopen::core::st::builtin::int_ = 3
constexpr TypeId plcopen::core::st::builtin::dint = 4
constexpr TypeId plcopen::core::st::builtin::lint = 5
constexpr TypeId plcopen::core::st::builtin::usint = 6
constexpr TypeId plcopen::core::st::builtin::uint_ = 7
constexpr TypeId plcopen::core::st::builtin::udint = 8
constexpr TypeId plcopen::core::st::builtin::ulint = 9
constexpr TypeId plcopen::core::st::builtin::real = 10
constexpr TypeId plcopen::core::st::builtin::lreal = 11
constexpr TypeId plcopen::core::st::builtin::time = 12
constexpr TypeId plcopen::core::st::builtin::byte_ = 13
constexpr TypeId plcopen::core::st::builtin::word = 14
constexpr TypeId plcopen::core::st::builtin::dword = 15
constexpr TypeId plcopen::core::st::builtin::lword = 16
constexpr TypeId plcopen::core::st::builtin::date = 17
constexpr TypeId plcopen::core::st::builtin::tod = 18
constexpr TypeId plcopen::core::st::builtin::dt = 19
constexpr TypeId plcopen::core::st::builtin::last = dt