Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Binary Object Serialization with Data Structure Traversal and Reconstruction in C++ - Lecture

CppCon via YouTube

Overview

Explore advanced C++ serialization techniques in this CppCon 2022 conference talk. Dive into a minimally intrusive approach for adding serialization to class sets, traversing hierarchical and non-hierarchical data, and persisting in binary format with dynamic reconstruction. Learn about Template Argument Deduction for data type deduction, protection against recursive reentrancy, and reflection-like techniques for dynamic object creation. Discover how to implement this platform-agnostic method using C++14 SFINAE/std::enable_if, with insights on optimizations and potential C++20 concept adaptations. Understand the versatility of this serialization technique for disk file persistence, IPC shared memory, and network streams for live remote data sharing in HPC or gaming applications.

Syllabus

Introduction
Agenda
Serialization Style
Saving Objects
Types
Archive
Serializable
Multiple Layers
Base Type
Serializable Base
Serializable Inheritance
Data Sources
Socket Source
Key and checksum
Stream optimization
Multilayer inheritance
Shared pointers
Multilayer example
Stream Ice example

Taught by

CppCon

Reviews

Start your review of Binary Object Serialization with Data Structure Traversal and Reconstruction in C++ - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.