Aegis  4.25.D505
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
rpt_position Class Reference

#include <pos.h>

Public Types

typedef aegis_shared_ptr
< rpt_position
pointer

Public Member Functions

virtual ~rpt_position ()
void print_error (sub_context_ty &sc, const char *text) const
nstring get_file_name () const
long get_line_number () const
nstring representation () const

Static Public Member Functions

static rpt_position::pointer create (const nstring &file_name)
static rpt_position::pointer create (const nstring &file_name, long linum)
static rpt_position::pointer create (const nstring &file_name, long linum1, long linum2)
static rpt_position::pointer join (const rpt_position::pointer &lhs, const rpt_position::pointer &rhs)

Private Member Functions

 rpt_position (const nstring &file_name, long linum1, long linum2)

Private Attributes

nstring file_name
long line_number [2]

Detailed Description

The rpt_position class is used to represent a source file location, by name and line number.

Definition at line 34 of file pos.h.


Member Typedef Documentation

Definition at line 37 of file pos.h.


Constructor & Destructor Documentation

virtual rpt_position::~rpt_position ( ) [virtual]
rpt_position::rpt_position ( const nstring file_name,
long  linum1,
long  linum2 
) [private]

Member Function Documentation

static rpt_position::pointer rpt_position::create ( const nstring file_name) [static]
static rpt_position::pointer rpt_position::create ( const nstring file_name,
long  linum 
) [static]
static rpt_position::pointer rpt_position::create ( const nstring file_name,
long  linum1,
long  linum2 
) [static]

Definition at line 57 of file pos.h.

long rpt_position::get_line_number ( ) const [inline]

Definition at line 59 of file pos.h.

static rpt_position::pointer rpt_position::join ( const rpt_position::pointer lhs,
const rpt_position::pointer rhs 
) [static]
void rpt_position::print_error ( sub_context_ty sc,
const char *  text 
) const

Field Documentation

Definition at line 64 of file pos.h.

long rpt_position::line_number[2] [private]

Definition at line 65 of file pos.h.


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