Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

Comma: comma::SourceLocation Class Reference

comma::SourceLocation Class Reference

Provides explicit line/column information. More...

#include <Location.h>

Collaboration diagram for comma::SourceLocation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SourceLocation (unsigned line, unsigned column, const TextProvider *provider)
 Constructs a SourceLocation object.
 SourceLocation ()
 Constructs an uninitialized SourceLocation object.
unsigned getLine () const
 Accesses the line coordinate.
unsigned getColumn () const
 Accesses the column coordinate.
const TextProvidergetTextProvider () const
 Accesses the associcated TextProvider.

Detailed Description

Provides explicit line/column information.

This class encapsulates explicit line/column information associated with a particular TextProvider.

SourceLocation objects are typically created via a call to TextProvider::getSourceLocation.

See also:
Location
TextProvider

Definition at line 73 of file Location.h.


Constructor & Destructor Documentation

comma::SourceLocation::SourceLocation ( unsigned  line,
unsigned  column,
const TextProvider provider 
) [inline]

Constructs a SourceLocation object.

Parameters:
line The line coordinate.
column The column coordinate.
provider The TextProvider object this SourceLocation describes.

Definition at line 83 of file Location.h.

comma::SourceLocation::SourceLocation (  )  [inline]

Constructs an uninitialized SourceLocation object.

Definition at line 87 of file Location.h.


Member Function Documentation

unsigned comma::SourceLocation::getColumn (  )  const [inline]

Accesses the column coordinate.

Definition at line 93 of file Location.h.

unsigned comma::SourceLocation::getLine (  )  const [inline]

Accesses the line coordinate.

Definition at line 90 of file Location.h.

const TextProvider* comma::SourceLocation::getTextProvider (  )  const [inline]

Accesses the associcated TextProvider.

Definition at line 96 of file Location.h.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1