Logo
latest
  • Quick Start

User Documentation

  • Conduit
    • C++ Tutorial
      • Basic Concepts
      • Accessing Numeric Data
      • Reading YAML and JSON Strings
      • Generators
      • Data Ownership
      • Node Update Methods
      • Node Move and Swap
      • String Formatting Helpers
      • Error Handling
    • Python Tutorial
    • Passing Conduit Nodes between C++, Fortran, and Python
  • Relay
  • Blueprint
  • Building
  • Glossary

Developer Documentation

  • Source Code Repo Layout
  • Build System Info
  • Git Development Workflow

Resources

  • Releases
  • Presentations and Publications
  • License Info
Conduit
  • Docs »
  • Conduit »
  • C++ Tutorial
  • Edit on GitHub

C++ Tutorial¶

This short tutorial provides C++ examples that demonstrate the Conduit’s Core API. Conduit’s unit tests (src/tests/{library_name}/) also provide a rich set of examples for Conduit’s Core API and additional libraries. Ascent’s Tutorial also provides a brief intro to Conduit basics with C++ and Python examples.

  • Basic Concepts
    • Node basics
    • Bitwidth Style Types
    • Compatible Schemas
    • Node References
    • const Nodes
  • Accessing Numeric Data
    • Accessing Scalars and Arrays
    • C++11 Initializer Lists
    • Using Introspection and Conversion
  • Reading YAML and JSON Strings
    • Parsing text with Node::parse()
  • Generators
    • Using Generator instances
    • Compacting Nodes
  • Data Ownership
    • set vs set_external
  • Node Update Methods
  • Node Move and Swap
  • String Formatting Helpers
    • fmt
    • conduit::utils::format
      • conduit::utils::format(string, args)
      • conduit::utils::format(string, maps, map_index)
  • Error Handling
    • Default Error Handlers
    • Using Custom Error Handlers
    • Using Restoring Default Handlers
    • Accessing Current Handlers
Next Previous

© Copyright Copyright (c) 2014-2023, LLNS Revision e721bba8.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
v0.8.6
v0.8.5
v0.8.4
v0.8.3
v0.8.2
v0.8.1
v0.8.0
v0.7.2
v0.7.1
v0.7.0
v0.6.0
v0.5.1
v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.1
v0.2.0
task-2021_11_rtd_adj
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.