ChampSim
champsim::inf_istream< Tag, StreamType > Struct Template Reference

#include <inf_stream.h>

Classes

class  inf_streambuf
 

Public Member Functions

inf_istreamread (char *s, std::streamsize count)
 
bool eof () const
 
std::streamsize gcount () const
 
 inf_istream (std::string s)
 
 inf_istream (StreamType &&str)
 

Public Attributes

std::unique_ptr< StreamType > underlying
 
std::unique_ptr< inf_streambuf< StreamType > > buffer = std::make_unique<inf_streambuf<StreamType>>(underlying.get())
 
std::streamsize gcount_ = 0
 
bool eof_ = false
 

Constructor & Destructor Documentation

◆ inf_istream() [1/2]

template<typename Tag , typename StreamType = std::ifstream>
champsim::inf_istream< Tag, StreamType >::inf_istream ( std::string  s)
inlineexplicit

◆ inf_istream() [2/2]

template<typename Tag , typename StreamType = std::ifstream>
champsim::inf_istream< Tag, StreamType >::inf_istream ( StreamType &&  str)
inlineexplicit

Member Function Documentation

◆ eof()

template<typename Tag , typename StreamType = std::ifstream>
bool champsim::inf_istream< Tag, StreamType >::eof ( ) const
inline

◆ gcount()

template<typename Tag , typename StreamType = std::ifstream>
std::streamsize champsim::inf_istream< Tag, StreamType >::gcount ( ) const
inline

◆ read()

template<typename Tag , typename StreamType = std::ifstream>
inf_istream& champsim::inf_istream< Tag, StreamType >::read ( char *  s,
std::streamsize  count 
)
inline

Member Data Documentation

◆ buffer

template<typename Tag , typename StreamType = std::ifstream>
std::unique_ptr<inf_streambuf<StreamType> > champsim::inf_istream< Tag, StreamType >::buffer = std::make_unique<inf_streambuf<StreamType>>(underlying.get())

◆ eof_

template<typename Tag , typename StreamType = std::ifstream>
bool champsim::inf_istream< Tag, StreamType >::eof_ = false

◆ gcount_

template<typename Tag , typename StreamType = std::ifstream>
std::streamsize champsim::inf_istream< Tag, StreamType >::gcount_ = 0

◆ underlying

template<typename Tag , typename StreamType = std::ifstream>
std::unique_ptr<StreamType> champsim::inf_istream< Tag, StreamType >::underlying

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