OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
antlr::TokenStreamRewriteEngine::RewriteOperation Class Reference
+ Inheritance diagram for antlr::TokenStreamRewriteEngine::RewriteOperation:

Public Member Functions

virtual size_t execute (std ::ostream &)
 Execute the rewrite operation by possibly adding to the buffer.
 
virtual size_t getIndex () const
 
virtual const char * type () const
 

Protected Member Functions

 RewriteOperation (size_t idx, const std ::string &txt)
 

Protected Attributes

size_t index
 
std::string text
 

Detailed Description

Definition at line 100 of file TokenStreamRewriteEngine.hpp.

Constructor & Destructor Documentation

◆ RewriteOperation()

antlr::TokenStreamRewriteEngine::RewriteOperation::RewriteOperation ( size_t idx,
const std ::string & txt )
inlineprotected

Definition at line 102 of file TokenStreamRewriteEngine.hpp.

◆ ~RewriteOperation()

virtual antlr::TokenStreamRewriteEngine::RewriteOperation::~RewriteOperation ( )
inlinevirtual

Definition at line 107 of file TokenStreamRewriteEngine.hpp.

Member Function Documentation

◆ execute()

virtual size_t antlr::TokenStreamRewriteEngine::RewriteOperation::execute ( std ::ostream & )
inlinevirtual

Execute the rewrite operation by possibly adding to the buffer.

Return the index of the next token to operate on.

Reimplemented in antlr::TokenStreamRewriteEngine::InsertBeforeOp, and antlr::TokenStreamRewriteEngine::ReplaceOp.

Definition at line 113 of file TokenStreamRewriteEngine.hpp.

◆ getIndex()

virtual size_t antlr::TokenStreamRewriteEngine::RewriteOperation::getIndex ( ) const
inlinevirtual

Definition at line 116 of file TokenStreamRewriteEngine.hpp.

◆ type()

virtual const char * antlr::TokenStreamRewriteEngine::RewriteOperation::type ( ) const
inlinevirtual

Definition at line 119 of file TokenStreamRewriteEngine.hpp.

Member Data Documentation

◆ index

size_t antlr::TokenStreamRewriteEngine::RewriteOperation::index
protected

Definition at line 123 of file TokenStreamRewriteEngine.hpp.

◆ text

std::string antlr::TokenStreamRewriteEngine::RewriteOperation::text
protected

Definition at line 124 of file TokenStreamRewriteEngine.hpp.


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