OpenStructure
Public Member Functions
QueryToken Class Reference

#include <query_impl.hh>

Public Member Functions

 QueryToken ()
 
 QueryToken (const Range &range, tok::Type type, const Range &value_range=Range())
 
tok::Type GetType () const
 
bool IsEOF () const
 
const RangeGetRange () const
 
const RangeGetValueRange () const
 

Detailed Description

Definition at line 76 of file query_impl.hh.

Constructor & Destructor Documentation

◆ QueryToken() [1/2]

◆ QueryToken() [2/2]

QueryToken ( const Range range,
tok::Type  type,
const Range value_range = Range() 
)

Member Function Documentation

◆ GetRange()

const Range& GetRange ( ) const

Get character range of this token.

◆ GetType()

tok::Type GetType ( ) const

◆ GetValueRange()

const Range& GetValueRange ( ) const

Get value range of this token. This is usually identical to GetRange() except when dealing with quoted strings.

◆ IsEOF()

bool IsEOF ( ) const

Returns true if token is end of file (or end of line) token.


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