Skip to content

Commit 13df99b

Browse files
test literal include
1 parent 80255c1 commit 13df99b

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

src/docs/sphinx/blueprint_mesh.rst

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -927,20 +927,11 @@ Conduit provides several tools for working with material sets, as working with t
927927

928928
The first set of tools are functions that can be used to determine what sort of material set is being worked with:
929929

930-
.. code:: cpp
931-
932-
//-------------------------------------------------------------------------
933-
bool CONDUIT_BLUEPRINT_API is_multi_buffer(const conduit::Node &matset);
934-
935-
//-------------------------------------------------------------------------
936-
bool CONDUIT_BLUEPRINT_API is_uni_buffer(const conduit::Node &matset);
937-
938-
//-------------------------------------------------------------------------
939-
bool CONDUIT_BLUEPRINT_API is_element_dominant(const conduit::Node &matset);
940-
941-
//-------------------------------------------------------------------------
942-
bool CONDUIT_BLUEPRINT_API is_material_dominant(const conduit::Node &matset);
943-
930+
.. literalinclude:: ../../libs/blueprint/docs/conduit_blueprint_mesh.hpp
931+
:start-after: _matset_layout_determination_methods_start
932+
:end-before: _matset_layout_determination_methods_end
933+
:language: cpp
934+
:dedent: 4
944935

945936
It is simple to ask what the layout representation is, and often code will branch like so:
946937

src/libs/blueprint/conduit_blueprint_mesh.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ namespace matset
794794
bool CONDUIT_BLUEPRINT_API verify(const conduit::Node &matset,
795795
conduit::Node &info);
796796

797+
// _matset_layout_determination_methods_start
797798
//-------------------------------------------------------------------------
798799
bool CONDUIT_BLUEPRINT_API is_multi_buffer(const conduit::Node &matset);
799800

@@ -805,6 +806,7 @@ namespace matset
805806

806807
//-------------------------------------------------------------------------
807808
bool CONDUIT_BLUEPRINT_API is_material_dominant(const conduit::Node &matset);
809+
// _matset_layout_determination_methods_end
808810

809811
//-------------------------------------------------------------------------
810812
// creates a multi-buffer non-sparse case

0 commit comments

Comments
 (0)