Zero  0.1.0
Public Member Functions | Private Attributes | Friends | List of all members
sm_save_point_t Class Reference

A point to which a transaction can roll back. More...

#include <sm.h>

Inheritance diagram for sm_save_point_t:
lsn_t

Public Member Functions

 sm_save_point_t ()
 
tid_t tid () const
 
- Public Member Functions inherited from lsn_t
 lsn_t ()
 
 lsn_t (lsndata_t data)
 
 lsn_t (uint32_t f, sm_diskaddr_t r)
 
lsndata_t data () const
 
void set (lsndata_t data)
 
bool valid () const
 
uint32_t hi () const
 
uint32_t file () const
 
sm_diskaddr_t lo () const
 
sm_diskaddr_t rba () const
 
void copy_rba (const lsn_t &other)
 
void set_rba (sm_diskaddr_t &other)
 
lsn_tadvance (int amt)
 
lsn_toperator+= (long delta)
 
lsn_t operator+ (long delta) const
 
bool operator> (const lsn_t &l) const
 
bool operator< (const lsn_t &l) const
 
bool operator>= (const lsn_t &l) const
 
bool operator<= (const lsn_t &l) const
 
bool operator== (const lsn_t &l) const
 
bool operator!= (const lsn_t &l) const
 
std::string str ()
 
bool is_null () const
 

Private Attributes

tid_t _tid
 

Friends

class ss_m
 
ostream & operator<< (ostream &o, const sm_save_point_t &p)
 
istream & operator>> (istream &i, sm_save_point_t &p)
 

Additional Inherited Members

- Public Types inherited from lsn_t
enum  { PARTITION_BITS = 16 }
 
enum  { PARTITION_SHIFT = (64 - PARTITION_BITS) }
 
- Static Public Member Functions inherited from lsn_t
static uint64_t mask ()
 
- Static Public Attributes inherited from lsn_t
static const int sm_diskaddr_max
 
static const lsn_t null
 
static const lsn_t max
 

Detailed Description

A point to which a transaction can roll back.

A transaction an do partial rollbacks with save_work and rollback_work, which use this class to determine how far to roll back. It is nothing more than a log sequence number for the work done to the point when save_work is called.

Constructor & Destructor Documentation

§ sm_save_point_t()

sm_save_point_t::sm_save_point_t ( )
inline

Member Function Documentation

§ tid()

tid_t sm_save_point_t::tid ( ) const
inline

Friends And Related Function Documentation

§ operator<<

ostream& operator<< ( ostream &  o,
const sm_save_point_t p 
)
friend

§ operator>>

istream& operator>> ( istream &  i,
sm_save_point_t p 
)
friend

§ ss_m

friend class ss_m
friend

Member Data Documentation

§ _tid

tid_t sm_save_point_t::_tid
private

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