NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CLinePreBuffer Class Reference

Search Toolkit Book for CLinePreBuffer

+ Collaboration diagram for CLinePreBuffer:

Public Types

using LinePreIt = deque< string >::const_iterator
 

Public Member Functions

 CLinePreBuffer (ILineReader &lineReader)
 
virtual ~CLinePreBuffer ()
 
bool FillBuffer (size_t numLines)
 
virtual bool IsCommentLine (const CTempString &line)
 
bool GetLine (string &line)
 
bool UngetLine (const string &line)
 
int LineNumber () const
 
LinePreIt begin ()
 
LinePreIt end ()
 
void AssignReader (ILineReader &lineReader)
 

Static Public Member Functions

static void StripSpaceCharsInPlace (string &str)
 

Protected Attributes

ILineReadermLineReader
 
deque< stringmBuffer
 
int mLineNumber
 

Detailed Description

Definition at line 58 of file bed_reader.cpp.

Member Typedef Documentation

◆ LinePreIt

using CLinePreBuffer::LinePreIt = deque<string>::const_iterator

Definition at line 62 of file bed_reader.cpp.

Constructor & Destructor Documentation

◆ CLinePreBuffer()

CLinePreBuffer::CLinePreBuffer ( ILineReader lineReader)
inline

Definition at line 64 of file bed_reader.cpp.

◆ ~CLinePreBuffer()

virtual CLinePreBuffer::~CLinePreBuffer ( )
inlinevirtual

Definition at line 70 of file bed_reader.cpp.

Member Function Documentation

◆ AssignReader()

void CLinePreBuffer::AssignReader ( ILineReader lineReader)
inline

Definition at line 145 of file bed_reader.cpp.

References mBuffer, mLineNumber, and mLineReader.

◆ begin()

LinePreIt CLinePreBuffer::begin ( void  )
inline

Definition at line 134 of file bed_reader.cpp.

References mBuffer.

Referenced by CBedReader::xDetermineLikelyColumnCount().

◆ end()

LinePreIt CLinePreBuffer::end ( void  )
inline

Definition at line 139 of file bed_reader.cpp.

References mBuffer.

Referenced by CBedReader::xDetermineLikelyColumnCount().

◆ FillBuffer()

bool CLinePreBuffer::FillBuffer ( size_t  numLines)
inline

◆ GetLine()

bool CLinePreBuffer::GetLine ( string line)
inline

◆ IsCommentLine()

virtual bool CLinePreBuffer::IsCommentLine ( const CTempString line)
inlinevirtual

Definition at line 87 of file bed_reader.cpp.

References NStr::IsBlank(), and NStr::StartsWith().

Referenced by FillBuffer(), GetLine(), and CBedReader::xDetermineLikelyColumnCount().

◆ LineNumber()

int CLinePreBuffer::LineNumber ( void  ) const
inline

Definition at line 129 of file bed_reader.cpp.

References mLineNumber.

◆ StripSpaceCharsInPlace()

static void CLinePreBuffer::StripSpaceCharsInPlace ( string str)
inlinestatic

Definition at line 155 of file bed_reader.cpp.

References str().

Referenced by FillBuffer(), and GetLine().

◆ UngetLine()

bool CLinePreBuffer::UngetLine ( const string line)
inline

Definition at line 121 of file bed_reader.cpp.

References mBuffer, and mLineNumber.

Member Data Documentation

◆ mBuffer

deque<string> CLinePreBuffer::mBuffer
protected

Definition at line 174 of file bed_reader.cpp.

Referenced by AssignReader(), begin(), end(), FillBuffer(), GetLine(), and UngetLine().

◆ mLineNumber

int CLinePreBuffer::mLineNumber
protected

Definition at line 175 of file bed_reader.cpp.

Referenced by AssignReader(), GetLine(), LineNumber(), and UngetLine().

◆ mLineReader

ILineReader& CLinePreBuffer::mLineReader
protected

Definition at line 173 of file bed_reader.cpp.

Referenced by AssignReader(), FillBuffer(), and GetLine().


The documentation for this class was generated from the following file:
Modified on Tue Jul 23 17:52:07 2024 by modify_doxy.py rev. 669887