w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::Rstats Class Reference

FIXME_docs. More...

#include <Rstats.hpp>

Collaboration diagram for Retro::Rstats:
[legend]

Public Member Functions

 Rstats ()
 Default constructor.
 
 Rstats (const Rstats &rhs)
 Copy constructor.
 
 ~Rstats ()
 Destructor.
 
void Define (size_t ind, const std::string &name, const std::string &text)
 FIXME_docs.
 
void Set (size_t ind, double val)
 FIXME_docs.
 
void Inc (size_t ind, double val=1.)
 FIXME_docs.
 
void Reset ()
 FIXME_docs.
 
void IncLogHist (size_t ind, size_t maskfirst, size_t masklast, size_t val)
 FIXME_docs.
 
void SetFormat (const char *format, int width=0, int prec=0)
 FIXME_docs.
 
size_t Size () const
 FIXME_docs.
 
double Value (size_t ind) const
 FIXME_docs.
 
const std::string & Name (size_t ind) const
 FIXME_docs.
 
const std::string & Text (size_t ind) const
 FIXME_docs.
 
size_t NameMaxLength () const
 FIXME_docs.
 
void Print (std::ostream &os, const char *format=0, int width=0, int prec=0) const
 FIXME_docs.
 
void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 
double operator[] (size_t ind) const
 FIXME_docs.
 
Rstatsoperator= (const Rstats &rhs)
 FIXME_docs.
 

Private Attributes

std::vector< double > fValue
 counter value
 
std::vector< std::string > fName
 counter name
 
std::vector< std::string > fText
 counter text
 
std::uint32_t fHash
 hash value for name+text
 
std::string fFormat
 default format for Print
 
int fWidth
 default width for Print
 
int fPrec
 default precision for Print
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, const Rstats &obj)
 ostream insertion operator.
 

Detailed Description

FIXME_docs.

Definition at line 28 of file Rstats.hpp.

Constructor & Destructor Documentation

◆ Rstats() [1/2]

Retro::Rstats::Rstats ( )

Default constructor.

Definition at line 41 of file Rstats.cpp.

◆ Rstats() [2/2]

Retro::Rstats::Rstats ( const Rstats rhs)

Copy constructor.

Definition at line 54 of file Rstats.cpp.

◆ ~Rstats()

Retro::Rstats::~Rstats ( )

Destructor.

Definition at line 66 of file Rstats.cpp.

Member Function Documentation

◆ Define()

◆ Set()

void Retro::Rstats::Set ( size_t  ind,
double  val 
)
inline

FIXME_docs.

Definition at line 20 of file Rstats.ipp.

References fValue.

◆ Inc()

void Retro::Rstats::Inc ( size_t  ind,
double  val = 1. 
)
inline

FIXME_docs.

Definition at line 29 of file Rstats.ipp.

References fValue.

Referenced by Retro::Rw11CntlDEUNA::AttnHandler(), Retro::Rw11CntlDL11::AttnHandler(), Retro::Rw11CntlDZ11::AttnHandler(), Retro::Rw11CntlLP11::AttnHandler(), Retro::Rw11CntlPC11::AttnHandler(), Retro::Rw11CntlRHRP::AttnHandler(), Retro::Rw11CntlRK11::AttnHandler(), Retro::Rw11CntlRL11::AttnHandler(), Retro::Rw11CntlTM11::AttnHandler(), Retro::RlinkServer::CallAttnHandler(), Retro::RlinkConnect::DecodeAttnNotify(), Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::EncodeRequest(), Retro::RlinkServerEventLoop::EventLoop(), Retro::RlinkConnect::Exec(), Retro::Rw11CntlDEUNA::ExecGetcmd(), Retro::RlinkConnect::ExecPart(), Retro::Rw11VirtDiskOver::Flush(), Retro::Rw11VirtStream::Flush(), Retro::RlinkPacketBufRcv::GetEcode(), IncLogHist(), Retro::Rw11VirtTermTcp::ListenPollHandler(), Retro::RlinkPortCuff::PollfdAdd(), Retro::RlinkPortCuff::PollfdRemove(), Retro::Rw11RdmaDisk::PostRdmaHook(), Retro::Rw11CntlPC11::PpProcessBuf(), Retro::Rw11CntlLP11::ProcessBuf(), Retro::RlinkPacketBufRcv::ProcessDataFill(), Retro::RlinkPacketBufRcv::ProcessDataIdle(), Retro::Rw11CntlPC11::PrProcessBuf(), Retro::Rw11Rdma::QueueRMem(), Retro::Rw11Rdma::QueueWMem(), Retro::RlinkPort::RawRead(), Retro::RlinkPort::RawWrite(), Retro::Rw11CntlDEUNA::RcvCallback(), Retro::Rw11VirtEthTap::RcvPollHandler(), Retro::Rw11VirtTermPty::RcvPollHandler(), Retro::Rw11VirtTermTcp::RcvPollHandler(), Retro::Rw11Rdma::RdmaHandler(), Retro::Rw11VirtDiskFile::Read(), Retro::Rw11VirtDiskOver::Read(), Retro::Rw11VirtDiskRam::Read(), Retro::RlinkPort::Read(), Retro::Rw11VirtStream::Read(), Retro::Rw11VirtTapeTap::ReadRecord(), Retro::Rw11VirtTapeTap::Rewind(), Retro::RlinkServer::RlinkHandler(), Retro::Rw11CntlDZ11::RxProcess(), Retro::Rw11CntlDL11::RxProcessBuf(), Retro::Rw11CntlDEUNA::RxRingHandler(), Retro::Rw11VirtStream::Seek(), Retro::Rw11VirtEthTap::Snd(), Retro::Rw11UnitTerm::Snd(), Retro::Rw11VirtTermPty::Snd(), Retro::Rw11VirtTermTcp::Snd(), Retro::RlinkConnect::SndOob(), Retro::RlinkPacketBufSnd::SndPacket(), Retro::Rw11VirtTapeTap::SpaceBack(), Retro::Rw11VirtTapeTap::SpaceForw(), Retro::Rw11UnitTerm::StatIncRx(), Retro::Rw11UnitTerm::StatIncTx(), Retro::Rw11VirtStream::Tell(), Retro::Rw11CntlDZ11::TxProcess(), Retro::Rw11CntlDL11::TxProcessBuf(), Retro::Rw11CntlDEUNA::TxRingHandler(), Retro::Rw11CntlDEUNA::UpdateStat16(), Retro::Rw11CntlDEUNA::UpdateStat32(), Retro::RlinkPortCuff::USBReadDone(), Retro::RlinkPortCuff::USBWriteDone(), Retro::Rw11UnitStream::VirtRead(), Retro::Rw11UnitStream::VirtWrite(), Retro::RlinkServer::WakeupHandler(), Retro::RlinkPort::Write(), Retro::Rw11VirtStream::Write(), Retro::Rw11VirtDiskFile::Write(), Retro::Rw11VirtDiskOver::Write(), Retro::Rw11VirtDiskRam::Write(), Retro::Rw11CntlLP11::WriteChar(), Retro::Rw11RdmaDisk::WriteCheck(), Retro::Rw11VirtTapeTap::WriteEof(), and Retro::Rw11VirtTapeTap::WriteRecord().

◆ Reset()

void Retro::Rstats::Reset ( )

FIXME_docs.

Definition at line 105 of file Rstats.cpp.

References fValue.

Referenced by Retro::RtclStats::Exec().

◆ IncLogHist()

void Retro::Rstats::IncLogHist ( size_t  ind,
size_t  maskfirst,
size_t  masklast,
size_t  val 
)

FIXME_docs.

Definition at line 114 of file Rstats.cpp.

References fValue, and Inc().

◆ SetFormat()

void Retro::Rstats::SetFormat ( const char *  format,
int  width = 0,
int  prec = 0 
)

FIXME_docs.

Definition at line 134 of file Rstats.cpp.

References fFormat, fPrec, and fWidth.

◆ Size()

size_t Retro::Rstats::Size ( ) const
inline

FIXME_docs.

Definition at line 38 of file Rstats.ipp.

References fValue.

Referenced by Define(), Dump(), Retro::RtclStats::Exec(), NameMaxLength(), operator=(), and Print().

◆ Value()

double Retro::Rstats::Value ( size_t  ind) const
inline

FIXME_docs.

Definition at line 46 of file Rstats.ipp.

References fValue.

Referenced by Retro::RtclStats::Exec().

◆ Name()

const std::string & Retro::Rstats::Name ( size_t  ind) const
inline

FIXME_docs.

Definition at line 54 of file Rstats.ipp.

References fName.

Referenced by Retro::RtclStats::Exec().

◆ Text()

const std::string & Retro::Rstats::Text ( size_t  ind) const
inline

FIXME_docs.

Definition at line 62 of file Rstats.ipp.

References fText.

Referenced by Retro::RtclStats::Exec().

◆ NameMaxLength()

size_t Retro::Rstats::NameMaxLength ( ) const

FIXME_docs.

Definition at line 144 of file Rstats.cpp.

References fName, and Size().

Referenced by Print().

◆ Print()

void Retro::Rstats::Print ( std::ostream &  os,
const char *  format = 0,
int  width = 0,
int  prec = 0 
) const

FIXME_docs.

Definition at line 157 of file Rstats.cpp.

References fFormat, fName, fPrec, fText, fValue, fWidth, NameMaxLength(), Retro::RosPrintf(), and Size().

Referenced by Retro::RtclStats::Exec(), and operator<<().

◆ Dump()

void Retro::Rstats::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const

◆ operator[]()

double Retro::Rstats::operator[] ( size_t  ind) const
inline

FIXME_docs.

Definition at line 70 of file Rstats.ipp.

References fValue.

◆ operator=()

Rstats & Retro::Rstats::operator= ( const Rstats rhs)

FIXME_docs.

Definition at line 208 of file Rstats.cpp.

References fFormat, fHash, fName, fPrec, fText, fValue, fWidth, and Size().

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Rstats obj 
)
related

ostream insertion operator.

Definition at line 81 of file Rstats.ipp.

References Print().

Member Data Documentation

◆ fValue

std::vector<double> Retro::Rstats::fValue
private

counter value

Definition at line 63 of file Rstats.hpp.

Referenced by Define(), Dump(), Inc(), IncLogHist(), operator=(), operator[](), Print(), Reset(), Set(), Size(), and Value().

◆ fName

std::vector<std::string> Retro::Rstats::fName
private

counter name

Definition at line 64 of file Rstats.hpp.

Referenced by Define(), Dump(), Name(), NameMaxLength(), operator=(), and Print().

◆ fText

std::vector<std::string> Retro::Rstats::fText
private

counter text

Definition at line 65 of file Rstats.hpp.

Referenced by Define(), Dump(), operator=(), Print(), and Text().

◆ fHash

std::uint32_t Retro::Rstats::fHash
private

hash value for name+text

Definition at line 66 of file Rstats.hpp.

Referenced by Define(), Dump(), and operator=().

◆ fFormat

std::string Retro::Rstats::fFormat
private

default format for Print

Definition at line 67 of file Rstats.hpp.

Referenced by Dump(), operator=(), Print(), and SetFormat().

◆ fWidth

int Retro::Rstats::fWidth
private

default width for Print

Definition at line 68 of file Rstats.hpp.

Referenced by Dump(), operator=(), Print(), and SetFormat().

◆ fPrec

int Retro::Rstats::fPrec
private

default precision for Print

Definition at line 69 of file Rstats.hpp.

Referenced by Dump(), operator=(), Print(), and SetFormat().


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