OpenMD  2.5
Molecular Dynamics in the Open
antlr::TokenStreamRewriteEngine::RewriteOperation Class Reference

#include <TokenStreamRewriteEngine.hpp>

Inheritance diagram for antlr::TokenStreamRewriteEngine::RewriteOperation:
antlr::TokenStreamRewriteEngine::InsertBeforeOp antlr::TokenStreamRewriteEngine::ReplaceOp antlr::TokenStreamRewriteEngine::DeleteOp

Public Member Functions

virtual ~RewriteOperation ()
 
virtual size_t execute (std ::ostream &)
 
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::ReplaceOp, and antlr::TokenStreamRewriteEngine::InsertBeforeOp.

Definition at line 113 of file TokenStreamRewriteEngine.hpp.

References antlr::TokenStreamRewriteEngine::index.

Referenced by antlr::TokenStreamRewriteEngine::executeOperation::operator()().

◆ getIndex()

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

◆ type()

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

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: