Current Version: 1.0.33
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 ()
 

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 33 of file position.h.

Member Typedef Documentation

◆ pointer_t

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

Definition at line 36 of file position.h.

Constructor & Destructor Documentation

◆ position()

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

Definition at line 22 of file position.cpp.

Member Function Documentation

◆ get_filename()

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

Definition at line 42 of file position.cpp.

References f_filename.

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

◆ get_line()

line_t csspp::position::get_line ( ) const

Definition at line 52 of file position.cpp.

References f_line.

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

◆ get_page()

line_t csspp::position::get_page ( ) const

Definition at line 47 of file position.cpp.

References f_page.

◆ get_total_line()

line_t csspp::position::get_total_line ( ) const

Definition at line 57 of file position.cpp.

References f_total_line.

◆ next_line()

void csspp::position::next_line ( )

Definition at line 30 of file position.cpp.

References f_line, and f_total_line.

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

◆ next_page()

void csspp::position::next_page ( )

Definition at line 36 of file position.cpp.

References f_line, and f_page.

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

Member Data Documentation

◆ f_filename

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

Definition at line 49 of file position.h.

Referenced by get_filename().

◆ f_line

line_t csspp::position::f_line = 1
private

Definition at line 51 of file position.h.

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

◆ f_page

line_t csspp::position::f_page = 1
private

Definition at line 50 of file position.h.

Referenced by get_page(), and next_page().

◆ f_total_line

line_t csspp::position::f_total_line = 1
private

Definition at line 52 of file position.h.

Referenced by get_total_line(), and next_line().


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.