libfoedus-core
FOEDUS Core Library
foedus::log::EpochHistory Struct Reference

Represents an event where a logger switched its epoch. More...

Detailed Description

Represents an event where a logger switched its epoch.

This object is POD.

Definition at line 36 of file epoch_history.hpp.

#include <epoch_history.hpp>

Collaboration diagram for foedus::log::EpochHistory:

Public Member Functions

 EpochHistory (const EpochMarkerLogType &marker)
 

Public Attributes

Epoch old_epoch_
 
Epoch new_epoch_
 
LogFileOrdinal log_file_ordinal_
 
uint64_t log_file_offset_
 

Friends

std::ostream & operator<< (std::ostream &o, const EpochHistory &v)
 

Constructor & Destructor Documentation

foedus::log::EpochHistory::EpochHistory ( const EpochMarkerLogType marker)
inlineexplicit

Definition at line 37 of file epoch_history.hpp.

38  : old_epoch_(marker.old_epoch_), new_epoch_(marker.new_epoch_),
39  log_file_ordinal_(marker.log_file_ordinal_), log_file_offset_(marker.log_file_offset_) {
40  }
LogFileOrdinal log_file_ordinal_

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const EpochHistory v 
)
friend

Definition at line 26 of file epoch_history.cpp.

26  {
27  o << "<EpochHistory old_epoch=\"" << v.old_epoch_ << "\" new_epoch=\"" << v.new_epoch_
28  << "\" log_file_ordinal=\"" << v.log_file_ordinal_
29  << "\" log_file_offset_=\"" << assorted::Hex(v.log_file_offset_) << "\" />";
30  return o;
31 }

Member Data Documentation

uint64_t foedus::log::EpochHistory::log_file_offset_
LogFileOrdinal foedus::log::EpochHistory::log_file_ordinal_
Epoch foedus::log::EpochHistory::new_epoch_
Epoch foedus::log::EpochHistory::old_epoch_

Definition at line 42 of file epoch_history.hpp.

Referenced by foedus::log::operator<<().


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