ztsdb
Public Member Functions | Public Attributes | List of all members
yy::position Class Reference

Abstract a position. More...

#include <position.hpp>

Public Member Functions

 position (const std::string &filename_p=std::string(), unsigned int l=1u, unsigned int c=1u, std::shared_ptr< const std::string > s_p=std::make_shared< const std::string >())
 Construct a position.
 
void initialize (const std::string &filename_p, unsigned int l, unsigned int c, std::shared_ptr< const std::string > s_p)
 Initialization.
 
Line and Column related manipulators
void lines (int count=1)
 (line related) Advance to the COUNT next lines.
 
void columns (int count=1)
 (column related) Advance to the COUNT next columns.
 

Public Attributes

std::string filename
 File name to which this location refers.
 
unsigned int line
 Current line number.
 
unsigned int column
 Current column number.
 
std::shared_ptr< const std::string > s
 Shared pointer to the buffer being parsed;.
 

Detailed Description

Abstract a position.


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