Current Version: 1.0.10
Project Name: csspp
Public Types | Public Member Functions | Private Attributes | List of all members
csspp::position Class Reference

#include <position.h>

Public Types

typedef std::shared_ptr< positionpointer_t
 

Public Member Functions

 position (std::string const &filename, line_t page=1, line_t line=1)
 
std::string const & get_filename () const
 
line_t get_line () const
 
line_t get_page () const
 
line_t get_total_line () const
 
void next_line ()
 
void next_page ()
 
positionoperator= (position const &rhs)
 

Private Attributes

std::string f_filename
 
line_t f_line = 1
 
line_t f_page = 1
 
line_t f_total_line = 1
 

Detailed Description

Definition at line 29 of file position.h.

Member Typedef Documentation

typedef std::shared_ptr<position> csspp::position::pointer_t

Definition at line 32 of file position.h.

Constructor & Destructor Documentation

csspp::position::position ( std::string const &  filename,
line_t  page = 1,
line_t  line = 1 
)

Definition at line 23 of file position.cpp.

Member Function Documentation

std::string const & csspp::position::get_filename ( ) const

Definition at line 56 of file position.cpp.

References f_filename.

Referenced by csspp::error::operator<<().

line_t csspp::position::get_line ( ) const

Definition at line 66 of file position.cpp.

References f_line.

Referenced by csspp::error::operator<<().

line_t csspp::position::get_page ( ) const

Definition at line 61 of file position.cpp.

References f_page.

line_t csspp::position::get_total_line ( ) const

Definition at line 71 of file position.cpp.

References f_total_line.

void csspp::position::next_line ( )

Definition at line 44 of file position.cpp.

References f_line, and f_total_line.

Referenced by csspp::lexer::getc().

void csspp::position::next_page ( )

Definition at line 50 of file position.cpp.

References f_line, and f_page.

Referenced by csspp::lexer::getc().

position & csspp::position::operator= ( position const &  rhs)

Definition at line 31 of file position.cpp.

References f_filename, f_line, f_page, and f_total_line.

Member Data Documentation

std::string csspp::position::f_filename
private

Definition at line 46 of file position.h.

Referenced by get_filename(), and operator=().

line_t csspp::position::f_line = 1
private

Definition at line 48 of file position.h.

Referenced by get_line(), next_line(), next_page(), and operator=().

line_t csspp::position::f_page = 1
private

Definition at line 47 of file position.h.

Referenced by get_page(), next_page(), and operator=().

line_t csspp::position::f_total_line = 1
private

Definition at line 49 of file position.h.

Referenced by get_total_line(), next_line(), and operator=().


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

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.