Logo
0.9.4
  • 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
      • Debugger Integration
    • 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
  • Citing
  • Presentations and Publications
  • License Info
Conduit
  • Conduit
  • C++ Tutorial
  • View page source

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
    • Accessing Arrays
    • Using Introspection and Conversion
    • C++11 Initializer Lists
  • 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
  • Debugger Integration
    • MS Visual Studio
    • Totalview
    • GDB
Previous Next

© Copyright Copyright (c) 2014-2025, LLNS.

Built with Sphinx using a theme provided by Read the Docs.