15 #ifndef SERIALBOX_CORE_FRONTEND_STELLA_SAVEPOINT_H 16 #define SERIALBOX_CORE_FRONTEND_STELLA_SAVEPOINT_H 48 explicit Savepoint(
const boost::shared_ptr<SavepointImpl>& savepointImpl);
66 void AddMetainfo(
const std::string& key,
const bool& value);
67 void AddMetainfo(
const std::string& key,
const int& value);
68 void AddMetainfo(
const std::string& key,
const float& value);
69 void AddMetainfo(
const std::string& key,
const double& value);
70 void AddMetainfo(
const std::string& key,
const std::string& value);
71 void AddMetainfo(
const std::string& key,
const char* value) {
77 const std::string&
name()
const;
97 void setImpl(
const boost::shared_ptr<SavepointImpl>& savepointImpl);
100 boost::shared_ptr<SavepointImpl>&
getImpl();
101 const boost::shared_ptr<SavepointImpl>&
getImpl()
const;
104 boost::shared_ptr<SavepointImpl> savepointImpl_;
void setImpl(const boost::shared_ptr< SavepointImpl > &savepointImpl)
Set implementation pointer.
Namespace of the STELLA frontend.
Namespace of the serialbox library.
bool operator==(const Savepoint &other) const
Compare equal.
void Init(const std::string &name)
Initialize the savepoint.
Implementation of the STELLA Savepoint.
Savepoint & operator=(const Savepoint &other)
Copy assignment.
void AddMetainfo(const std::string &key, const bool &value)
Add metainformation to the savepoint.
Savepoint()
Construct empty savepoint with name name
const std::string & name() const
Access to the name.
boost::shared_ptr< SavepointImpl > & getImpl()
Get implementation pointer.
const MetainfoSet & metainfo() const
Access to the metainfo.
friend std::ostream & operator<<(std::ostream &out, const Savepoint &sp)
Convert to stream.
bool operator!=(const Savepoint &other) const
Compare unequal.
std::string ToString() const
Convert to string.