社区
C语言
帖子详情
关于pod(plain old data)的探讨
hmsuccess
2008-12-26 02:48:34
那位高手能不能详细讲讲pod(plain old data),包括在内存中的存储格式。
还有就是,pod类型的数据写入文件后,可以直接读取对应格式吗?
谢谢
...全文
409
8
打赏
收藏
关于pod(plain old data)的探讨
那位高手能不能详细讲讲pod(plain old data),包括在内存中的存储格式。 还有就是,pod类型的数据写入文件后,可以直接读取对应格式吗? 谢谢
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
sd11102001
2010-07-21
打赏
举报
回复
UP!
wudeshou82666
2008-12-26
打赏
举报
回复
UP
waizqfor
2008-12-26
打赏
举报
回复
http://topic.csdn.net/t/20050602/17/4054864.html
hhyttppd
2008-12-26
打赏
举报
回复
POD一般没有特殊的构造和析造函数,并且它内部成员是基本数据类型或者pod.
hmsuccess
2008-12-26
打赏
举报
回复
[Quote=引用 1 楼 zmlovelx 的回复:]
引用网上:
Plain Old Data (POD)
POD指的是这样一些数据类型:基本数据类型、指针、union、数组、构造函数是 trivial 的 struct 或者 class。
POD用来表明C++中与C相兼容的数据类型,可以按照C的方式来处理(运算、拷贝等)。非POD数据类型与C不兼容,只能按照C++特有的方式进行使用。
[/Quote]
那pod类型的数据在内存和文件中存储方式呢?
nullah
2008-12-26
打赏
举报
回复
顶帅哥
帅得不敢出门
2008-12-26
打赏
举报
回复
http://en.wikipedia.org/wiki/Plain_Old_Data_Structures
帅得不敢出门
2008-12-26
打赏
举报
回复
引用网上:
Plain Old Data (POD)
POD指的是这样一些数据类型:基本数据类型、指针、union、数组、构造函数是 trivial 的 struct 或者 class。
POD用来表明C++中与C相兼容的数据类型,可以按照C的方式来处理(运算、拷贝等)。非POD数据类型与C不兼容,只能按照C++特有的方式进行使用。
perl-
Pod
-Spell-1.04-4.el7.x64-86.rpm.tar.gz
1、文件内容:perl-
Pod
-Spell-1.04-4.el7.rpm以及相关依赖 2、文件形式:tar.gz压缩包 3、安装指令: #Step1、解压 tar -zxvf /mnt/
data
/output/perl-
Pod
-Spell-1.04-4.el7.tar.gz #Step2、进入解压后的目录,执行安装 sudo rpm -ivh *.rpm 4、安装指导:私信博主,全程指导安装
perl-
Pod
-Coverage-0.23-3.el7.x64-86.rpm.tar.gz
1、文件内容:perl-
Pod
-Coverage-0.23-3.el7.rpm以及相关依赖 2、文件形式:tar.gz压缩包 3、安装指令: #Step1、解压 tar -zxvf /mnt/
data
/output/perl-
Pod
-Coverage-0.23-3.el7.tar.gz #Step2、进入解压后的目录,执行安装 sudo rpm -ivh *.rpm 4、安装指导:私信博主,全程指导安装
perl-
Pod
-Eventual-0.093330-12.el7.x64-86.rpm.tar.gz
1、文件内容:perl-
Pod
-Eventual-0.093330-12.el7.rpm以及相关依赖 2、文件形式:tar.gz压缩包 3、安装指令: #Step1、解压 tar -zxvf /mnt/
data
/output/perl-
Pod
-Eventual-0.093330-12.el7.tar.gz #Step2、进入解压后的目录,执行安装 sudo rpm -ivh *.rpm 4、安装指导:私信博主,全程指导安装
Simplx-a C++ framework distributed and concurrent multicore software
About Simplx is a C++ development framework for building reliable cache-friendly distributed and concurrent multicore software. Simplx was developped by Tredzone SAS. We provide software technology solutions and services dedicated to high-performance real-time processing. Our technology enables low and predictable latency, scalability, and high throughput. We also offer support contracts and enterprise tools for monitoring, profiling, debugging, server clustering under commercial licenses. Simplx is used at the Paris stock exchange by Euronext's market exchange platform, called "Optiq", and has been successfully deployed since November 2016. Tredzone was founded in 2013 and operates in France, the UK and US. License Simplx is open-sourced under the Apache 2.0 license, please see the file "LICENSE" in our github repo. Coding conventions We use struct and class differently based on the object type (although they're technically interchangeble) typename struct for Event types as they're often
Plain
Old
Data
(
POD
) typename class for Actor, Engine and everything else Header files located at: /include/trz/engine/internal/*.h are used internally by the Simplx runtime; they're not documented and subject to change. You shouldn't need those directly in order to write client applications anyway.
C++基础-类型系统.pdf
内容概要:本文详细介绍了C++类型系统的各个方面。C++作为一种强类型和静态类型语言,要求每个变量、函数参数和返回值都必须有明确的类型。类型分为标量类型(如int、double)和复合类型(如数组、类)。
POD
类型(
Plain
Old
Data
)是C++中用于外部数据交换的重要类型,具有特定的限制条件。C++提供了多种基本类型,包括数值类型、字符类型等,并且支持用户自定义类型。类型转换是C++中常见的操作,但需要注意潜在的数据丢失风险。const类型限定符用于确保值不可被修改,是C++中重要的概念。指针类型允许直接操作内存地址,但在现代C++中推荐使用智能指针来避免内存泄漏等错误。Windows特有的类型定义在Win32编程中广泛应用,但在现代C++中应谨慎使用。 适合人群:具备一定编程基础,尤其是对C++感兴趣的开发人员,以及希望深入了解C++类型系统的程序员。 使用场景及目标:①理解C++类型系统的分类和特性;②掌握不同类型的操作方式及转换规则;③学会正确使用指针和智能指针;④了解Windows特有类型在C++中的应用。 其他说明:阅读本文有助于提高C++编程技能,特别是在类型安全和内存管理方面。建议结合实际编程练习,以加深对C++类型系统的理解。
C语言
70,023
社区成员
243,260
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章