Storage Engine API
mongo::Snapshotted< T > Class Template Reference

#include <snapshot.h>

Public Member Functions

 Snapshotted ()
 
 Snapshotted (SnapshotId id, const T &value)
 
void reset ()
 
void setValue (const T &t)
 
SnapshotId snapshotId () const
 
const T & value () const
 
T & value ()
 

Private Attributes

SnapshotId _id
 
_value
 

Constructor & Destructor Documentation

◆ Snapshotted() [1/2]

template<typename T>
mongo::Snapshotted< T >::Snapshotted ( )
inline

◆ Snapshotted() [2/2]

template<typename T>
mongo::Snapshotted< T >::Snapshotted ( SnapshotId  id,
const T &  value 
)
inline

Member Function Documentation

◆ reset()

template<typename T>
void mongo::Snapshotted< T >::reset ( )
inline

◆ setValue()

template<typename T>
void mongo::Snapshotted< T >::setValue ( const T &  t)
inline

◆ snapshotId()

template<typename T>
SnapshotId mongo::Snapshotted< T >::snapshotId ( ) const
inline

◆ value() [1/2]

template<typename T>
const T& mongo::Snapshotted< T >::value ( ) const
inline

◆ value() [2/2]

template<typename T>
T& mongo::Snapshotted< T >::value ( )
inline

Member Data Documentation

◆ _id

template<typename T>
SnapshotId mongo::Snapshotted< T >::_id
private

◆ _value

template<typename T>
T mongo::Snapshotted< T >::_value
private

The documentation for this class was generated from the following file: