-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from DARMA-tasking/249-non-intrusive-examples…
…-and-docs #249: Non-Intrusive examples and docs
- Loading branch information
Showing
26 changed files
with
1,241 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
\page ckpt_learn_ex2_nonintrusive Non-Intrusive Program Example 2 | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_2_nonintrusive.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_2_nonintrusive.cc Non-Intrusive Serialize custom structure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
\page ckpt_learn_ex3_nonintrusive Non-Intrusive Program Example 3 | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_3_nonintrusive.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_3_nonintrusive.cc Non-Intrusive Serialize constraints constructor destructor |
9 changes: 9 additions & 0 deletions
9
docs/md/checkpoint_learn_example_polymorphic_macro_nonintrusive.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
\page ckpt_learn_example_polymorphic_macro_nonintrusive Non-Intrusive Polymorphic Serialization Example w/Macros | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_polymorphic_macro_nonintrusive.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_polymorphic_macro_nonintrusive.cc Non-Intrusive Serialize polymorphic macro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
\page ckpt_learn_example_polymorphic_nonintrusive Non-Intrusive Polymorphic Serialization Example | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_polymorphic_nonintrusive.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_polymorphic_nonintrusive.cc Non-Intrusive Serialize polymorphic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
\page ckpt_learn_ex_tofile Program Example Serialize To File | ||
|
||
The full code for this example can be found here: | ||
`examples/checkpoint_example_to_file.cc` | ||
One potential application for this approach is to generate a restart file | ||
for a simulation. | ||
|
||
The full code for this example can be found here: | ||
`examples/checkpoint_example_to_file.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_to_file.cc Serialize structure to file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
\page ckpt_learn_ex_tofile_nonintrusive Non-Intrusive Program Example Serialize To File | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
One potential application for this approach is to generate a restart file | ||
for a simulation. | ||
|
||
The full code for this example can be found here: | ||
`examples/checkpoint_example_to_file_nonintrusive.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_to_file_nonintrusive.cc Non-Intrusive Serialize structure to file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\page ckpt_learn_ex_traversal Program Example Traversal | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_traversal.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_traversal.cc Serialization with custom traverser | ||
|
10 changes: 10 additions & 0 deletions
10
docs/md/checkpoint_learn_example_traversal_nonintrusive.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
\page ckpt_learn_ex_traversal_nonintrusive Non-Intrusive Program Example Traversal | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_traversal_nonintrusive.cc` | ||
|
||
\subsubsection ex Example source code: | ||
\snippet examples/checkpoint_example_traversal_nonintrusive.cc Non-Intrusive Serialization with custom traverser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
\page ckpt_learn_examples Examples | ||
|
||
| Examples | Description | Link | | ||
| ----------- | ----------- | ---- | | ||
| Intrusive Examples | Description | Link | | ||
| --------------------- | ----------- | ---- | | ||
| checkpoint_example_1 | Serialization of a structure | \subpage ckpt_learn_ex1 | | ||
| checkpoint_example_2 | Serialization of a custom structure | \subpage ckpt_learn_ex2 | | ||
| checkpoint_example_3 | Illustrate needs for constructor/destructor | \subpage ckpt_learn_ex3 | | ||
| checkpoint_example_to_file | Serialize / deserialize structure to file | \subpage ckpt_learn_ex_tofile | | ||
| checkpoint_example_polymorphic | Serialization of polymorphic class hierarchy | \subpage ckpt_learn_example_polymorphic | | ||
| checkpoint_example_polymorphic_macro | Serialization of polymorphic class hierarchy with macros | \subpage ckpt_learn_example_polymorphic_macro | | ||
| checkpoint_example_traversal | Serialization with custom traverser | \subpage ckpt_learn_ex_traversal | | ||
|
||
| ||
| ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
Please do not put serialize methods in global magistrate namespace. | ||
|
||
| Non-Intrusive Examples | Description | Link | | ||
| ------------------------- | ----------- | ---- | | ||
| checkpoint_example_1 | Serialization of a structure | \subpage ckpt_learn_ex1_nonintrusive | | ||
| checkpoint_example_2 | Serialization of a custom structure | \subpage ckpt_learn_ex2_nonintrusive | | ||
| checkpoint_example_3 | Illustrate needs for constructor/destructor | \subpage ckpt_learn_ex3_nonintrusive | | ||
| checkpoint_example_to_file | Serialize / deserialize structure to file | \subpage ckpt_learn_ex_tofile_nonintrusive | | ||
| checkpoint_example_polymorphic | Serialization of polymorphic class hierarchy | \subpage ckpt_learn_example_polymorphic_nonintrusive | | ||
| checkpoint_example_polymorphic_macro | Serialization of polymorphic class hierarchy with macros | \subpage ckpt_learn_example_polymorphic_macro_nonintrusive | | ||
| checkpoint_example_traversal | Serialization with custom traverser | \subpage ckpt_learn_ex_traversal_nonintrusive | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
\page ckpt_learn_ex1_nonintrusive Non-Intrusive Program Example 1 | ||
|
||
\attention All Non-Intrusive serialize methods <b>MUST</b> be placed in the namespace of type which they serialize. | ||
|
||
The full code for this *checkpoint* example can be found here: | ||
`examples/checkpoint_example_1_nonintrusive.cc` | ||
|
||
\subsubsection ex1 Example source code: | ||
\snippet examples/checkpoint_example_1_nonintrusive.cc Non-Intrusive serialize custom structure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.