Wolframe, 0.0.3

_Wolframe::utils::SourceLineInfo Class Reference

Line information for error messages for parser using STL string iterators as source scanners. More...

#include <sourceLineInfo.hpp>

Inheritance diagram for _Wolframe::utils::SourceLineInfo:
_Wolframe::utils::FileLineInfo

Public Member Functions

 SourceLineInfo ()
 Default constructor. More...
 
 SourceLineInfo (unsigned int line_, unsigned int column_)
 Constructor. More...
 
 SourceLineInfo (const SourceLineInfo &o)
 Copy constructor. More...
 
unsigned int line () const
 Get the current line. More...
 
unsigned int column () const
 Get the current column. More...
 
void incrementLine ()
 Increment the current line. More...
 
void incrementColumn ()
 Increment the current column. More...
 
void update (const std::string::const_iterator &lastpos, const std::string::const_iterator &pos)
 Update this line info by scanning the source parsed from 'lastpos' to 'pos', counting lines and characters inbetween. More...
 

Private Attributes

unsigned int m_line
 the current line More...
 
unsigned int m_column
 the current column More...
 

Detailed Description

Line information for error messages for parser using STL string iterators as source scanners.

Constructor & Destructor Documentation

_Wolframe::utils::SourceLineInfo::SourceLineInfo ( )
inline

Default constructor.

_Wolframe::utils::SourceLineInfo::SourceLineInfo ( unsigned int  line_,
unsigned int  column_ 
)
inline

Constructor.

_Wolframe::utils::SourceLineInfo::SourceLineInfo ( const SourceLineInfo o)
inline

Copy constructor.

Member Function Documentation

unsigned int _Wolframe::utils::SourceLineInfo::column ( ) const
inline

Get the current column.

void _Wolframe::utils::SourceLineInfo::incrementColumn ( )
inline

Increment the current column.

void _Wolframe::utils::SourceLineInfo::incrementLine ( )
inline

Increment the current line.

unsigned int _Wolframe::utils::SourceLineInfo::line ( ) const
inline

Get the current line.

void _Wolframe::utils::SourceLineInfo::update ( const std::string::const_iterator &  lastpos,
const std::string::const_iterator &  pos 
)

Update this line info by scanning the source parsed from 'lastpos' to 'pos', counting lines and characters inbetween.

Member Data Documentation

unsigned int _Wolframe::utils::SourceLineInfo::m_column
private

the current column

unsigned int _Wolframe::utils::SourceLineInfo::m_line
private

the current line


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