12 #ifndef SST_CORE_CHECKPOINTABLE_INFO_H 13 #define SST_CORE_CHECKPOINTABLE_INFO_H 15 #include "sst/core/eli/elibase.h" 16 #include "sst/core/warnmacros.h" 21 #include <type_traits> 26 template <
typename,
typename =
void>
29 static bool get() {
return false; }
35 static bool get() {
return T::ELI_isCheckpointable(); }
42 bool isCheckpointable()
const {
return checkpointable_; }
44 void toString(std::ostream& os)
const 46 os <<
" Checkpointable: " << (checkpointable_ ?
"true" :
"false") <<
"\n";
49 template <
class XMLNode>
50 void outputXML(XMLNode* UNUSED(node))
52 node->SetAttribute(
"Checkpointable", checkpointable_);
65 #define SST_ELI_IS_CHECKPOINTABLE() \ 66 static bool ELI_isCheckpointable() \ Definition: checkpointableInfo.h:27
Definition: attributeInfo.h:22
Definition: checkpointableInfo.h:39