diff --git a/examples/checkpoint_example_1.cc b/examples/checkpoint_example_1.cc index 6957f0a8..37bd2796 100644 --- a/examples/checkpoint_example_1.cc +++ b/examples/checkpoint_example_1.cc @@ -47,7 +47,7 @@ #include -namespace magistrate::intrusive::examples { +namespace magistrate { namespace intrusive { namespace examples { // \struct MyTest // \brief Simple structure with two variables of built-in types @@ -105,7 +105,7 @@ struct MyTest { } }; -} // end namespace magistrate::intrusive::examples +}}} // end namespace magistrate::intrusive::examples int main(int, char**) { using namespace magistrate::intrusive::examples; diff --git a/examples/checkpoint_example_1_nonintrusive.cc b/examples/checkpoint_example_1_nonintrusive.cc index f07ddc12..ee301fed 100644 --- a/examples/checkpoint_example_1_nonintrusive.cc +++ b/examples/checkpoint_example_1_nonintrusive.cc @@ -48,7 +48,7 @@ #include // \brief Namespace containing type which will be serialized -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \brief Simple structure with three variables of built-in types struct MyTest3 { @@ -60,12 +60,12 @@ struct MyTest3 { } }; -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples // \brief Function to serialize the MyTest3 structure. // In Non-Intrusive way, this function needs to be placed in the namespace // of the type which will be serialized. -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \brief Templated function for serializing/deserializing // a variable of type `MyTest3`. Non-nonintrusive version of the function // placed outside of `MyTest3` structure. @@ -93,7 +93,7 @@ namespace magistrate::nonintrusive::examples { s | my_test3.c; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples int main(int, char**) { using namespace magistrate::nonintrusive::examples; diff --git a/examples/checkpoint_example_2.cc b/examples/checkpoint_example_2.cc index 1a88b76c..469d3ed5 100644 --- a/examples/checkpoint_example_2.cc +++ b/examples/checkpoint_example_2.cc @@ -47,7 +47,7 @@ #include -namespace magistrate::intrusive::examples { +namespace magistrate { namespace intrusive { namespace examples { // \struct MyTest2 // \brief Simple structure with one variable of built-in type @@ -125,7 +125,7 @@ struct MyTest { } }; -} // end namespace magistrate::intrusive::examples +}}} // end namespace magistrate::intrusive::examples int main(int, char**) { using namespace magistrate::intrusive::examples; diff --git a/examples/checkpoint_example_2_nonintrusive.cc b/examples/checkpoint_example_2_nonintrusive.cc index 24aa3f7f..d564fe73 100644 --- a/examples/checkpoint_example_2_nonintrusive.cc +++ b/examples/checkpoint_example_2_nonintrusive.cc @@ -48,7 +48,7 @@ #include // \brief Namespace containing types which will be serialized -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \struct MyTest2 // \brief Simple structure with one variable of built-in type @@ -90,11 +90,11 @@ struct MyTest { } }; -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples // \brief In Non-Intrusive way, serialize function needs to be placed in the namespace // of the type which will be serialized. -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \brief Templated function for serializing/deserializing // a variable of type `MyTest` @@ -132,7 +132,7 @@ void serialize(Serializer& s, MyTest2& my_test2) { s | my_test2.c; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples int main(int, char**) { using namespace magistrate::nonintrusive::examples; diff --git a/examples/checkpoint_example_3.cc b/examples/checkpoint_example_3.cc index e068dbce..05667ed5 100644 --- a/examples/checkpoint_example_3.cc +++ b/examples/checkpoint_example_3.cc @@ -53,7 +53,7 @@ // class of a serializable/deserializable type. // -namespace magistrate::intrusive::examples { +namespace magistrate { namespace intrusive { namespace examples { // \brief Structure with a variable of built-in type. // @@ -120,7 +120,7 @@ struct TestReconstruct { } }; -} // end namespace magistrate::intrusive::examples +}}} // end namespace magistrate::intrusive::examples #include "checkpoint/traits/serializable_traits.h" diff --git a/examples/checkpoint_example_3_nonintrusive.cc b/examples/checkpoint_example_3_nonintrusive.cc index 92d2ecef..23120ab2 100644 --- a/examples/checkpoint_example_3_nonintrusive.cc +++ b/examples/checkpoint_example_3_nonintrusive.cc @@ -54,7 +54,7 @@ // // \brief Namespace containing types which will be serialized -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \brief Structure with a variable of built-in type. struct TestDefaultCons { @@ -81,7 +81,7 @@ struct TestNoSerialize { struct TestShouldFailReconstruct { int a = 29; - TestShouldFailReconstruct(int const) { } + explicit TestShouldFailReconstruct(int const) { } TestShouldFailReconstruct() = delete; }; @@ -94,7 +94,7 @@ struct TestShouldFailReconstruct { struct TestReconstruct { int a = 29; - TestReconstruct(int const) { } + explicit TestReconstruct(int const) { } TestReconstruct() = delete; static TestReconstruct& reconstruct(void* buf) { @@ -103,11 +103,11 @@ struct TestReconstruct { } }; -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples // \brief In Non-Intrusive way, serialize function needs to be placed in the namespace // of the type which will be serialized. -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \breif Non-Intrusive Serialize method for TestDefaultCons structure. // @@ -130,7 +130,7 @@ void serialize(Serializer& s, TestReconstruct& tr) { s | tr.a; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples #include "checkpoint/traits/serializable_traits.h" diff --git a/examples/checkpoint_example_polymorphic.cc b/examples/checkpoint_example_polymorphic.cc index dc2b12f2..539bb50e 100644 --- a/examples/checkpoint_example_polymorphic.cc +++ b/examples/checkpoint_example_polymorphic.cc @@ -46,7 +46,7 @@ #include #include "checkpoint/dispatch/dispatch_virtual.h" -namespace magistrate::intrusive::examples { +namespace magistrate { namespace intrusive { namespace examples { struct MyBase : ::checkpoint::SerializableBase { MyBase() { printf("MyBase cons\n"); } @@ -148,7 +148,7 @@ void test() { } } -} // end namespace magistrate::intrusive::examples +}}} // end namespace magistrate::intrusive::examples int main(int, char**) { using namespace magistrate::intrusive::examples; diff --git a/examples/checkpoint_example_polymorphic_macro.cc b/examples/checkpoint_example_polymorphic_macro.cc index dc34dee3..d30e94f2 100644 --- a/examples/checkpoint_example_polymorphic_macro.cc +++ b/examples/checkpoint_example_polymorphic_macro.cc @@ -46,7 +46,7 @@ #include #include "checkpoint/dispatch/dispatch_virtual.h" -namespace magistrate::intrusive::examples { +namespace magistrate { namespace intrusive { namespace examples { // \struct Abstract base class struct MyBase { @@ -167,7 +167,7 @@ void test() { } } -} // end namespace magistrate::intrusive::examples +}}} // end namespace magistrate::intrusive::examples int main(int, char**) { using namespace magistrate::intrusive::examples; diff --git a/examples/checkpoint_example_polymorphic_macro_nonintrusive.cc b/examples/checkpoint_example_polymorphic_macro_nonintrusive.cc index 0d126e30..98e90322 100644 --- a/examples/checkpoint_example_polymorphic_macro_nonintrusive.cc +++ b/examples/checkpoint_example_polymorphic_macro_nonintrusive.cc @@ -47,7 +47,7 @@ #include "checkpoint/dispatch/dispatch_virtual.h" // \brief Namespace containing types which will be serialized -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \struct Abstract base class struct MyBase { @@ -142,11 +142,11 @@ void test() { } } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples // \brief In Non-Intrusive way, serialize function needs to be placed in the namespace // of the type which will be serialized. -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { template void serialize(S& s, MyBase& obj) { @@ -177,7 +177,7 @@ void serialize(SerializerT& s, ExampleVector& obj) { s | obj.vec; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples int main(int, char**) { using namespace magistrate::nonintrusive::examples; diff --git a/examples/checkpoint_example_polymorphic_nonintrusive.cc b/examples/checkpoint_example_polymorphic_nonintrusive.cc index e112bb8c..12110c0e 100644 --- a/examples/checkpoint_example_polymorphic_nonintrusive.cc +++ b/examples/checkpoint_example_polymorphic_nonintrusive.cc @@ -47,7 +47,7 @@ #include "checkpoint/dispatch/dispatch_virtual.h" // \brief Namespace containing types which will be serialized -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { struct MyBase : ::checkpoint::SerializableBase { MyBase() { printf("MyBase cons\n"); } @@ -123,11 +123,11 @@ void test() { } } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples // \brief In Non-Intrusive way, serialize function needs to be placed in the namespace // of the type which will be serialized. -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { template void serialize(S& s, MyBase& obj) { @@ -158,7 +158,7 @@ void serialize(SerializerT& s, ExampleVector& obj) { s | obj.vec; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples int main(int, char**) { using namespace magistrate::nonintrusive::examples; diff --git a/examples/checkpoint_example_to_file.cc b/examples/checkpoint_example_to_file.cc index 7dbf4c03..7436b652 100644 --- a/examples/checkpoint_example_to_file.cc +++ b/examples/checkpoint_example_to_file.cc @@ -48,7 +48,7 @@ #include #include -namespace magistrate::intrusive::examples { +namespace magistrate { namespace intrusive { namespace examples { static constexpr int const u_val = 934; @@ -123,7 +123,7 @@ bool operator==(const MyTestType &c1, const MyTestType &c2) return isEqual; } -} // end namespace magistrate::intrusive::examples +}}} // end namespace magistrate::intrusive::examples int main(int, char**) { diff --git a/examples/checkpoint_example_to_file_nonintrusive.cc b/examples/checkpoint_example_to_file_nonintrusive.cc index 9a38926e..3fc13498 100644 --- a/examples/checkpoint_example_to_file_nonintrusive.cc +++ b/examples/checkpoint_example_to_file_nonintrusive.cc @@ -49,7 +49,7 @@ #include // \brief Namespace containing type which will be serialized -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { static constexpr int const u_val = 934; @@ -103,11 +103,11 @@ bool operator==(const MyTestType &c1, const MyTestType &c2) return isEqual; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples // \brief In Non-Intrusive way, serialize function needs to be placed in the namespace // of the type which will be serialized. -namespace magistrate::nonintrusive::examples { +namespace magistrate { namespace nonintrusive { namespace examples { // \brief Templated function for serializing/deserializing // a variable of type `MyTestType` @@ -129,7 +129,7 @@ void serialize(Serializer& s, MyTestType& c) { s | c.len_; } -} // end namespace magistrate::nonintrusive::examples +}}} // end namespace magistrate::nonintrusive::examples int main(int, char**) { using namespace magistrate::nonintrusive::examples;