Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang::SourceRange Struct Reference

#include <lexer.h>

Public Member Functions

 SourceRange (const std::shared_ptr< std::string > &file_, size_t start_, size_t end_)
 
const std::string text () const
 
size_t size () const
 
void highlight (std::ostream &out) const
 
const std::string & file () const
 
const std::shared_ptr
< std::string > & 
file_ptr () const
 
size_t start () const
 
size_t end () const
 

Private Attributes

std::shared_ptr< std::string > file_
 
size_t start_
 
size_t end_
 

Constructor & Destructor Documentation

lang::SourceRange::SourceRange ( const std::shared_ptr< std::string > &  file_,
size_t  start_,
size_t  end_ 
)
inline

Member Function Documentation

size_t lang::SourceRange::end ( ) const
inline
const std::string& lang::SourceRange::file ( ) const
inline
const std::shared_ptr<std::string>& lang::SourceRange::file_ptr ( ) const
inline
void lang::SourceRange::highlight ( std::ostream &  out) const
inline
size_t lang::SourceRange::size ( ) const
inline
size_t lang::SourceRange::start ( ) const
inline
const std::string lang::SourceRange::text ( ) const
inline

Member Data Documentation

size_t lang::SourceRange::end_
private
std::shared_ptr<std::string> lang::SourceRange::file_
private
size_t lang::SourceRange::start_
private

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