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

#include <TokenStreamRewriteEngine.hpp>

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

Public Member Functions

 ReplaceOp (size_t from, size_t to, std ::string text)
virtual ~ReplaceOp ()
virtual size_t execute (std ::ostream &out)
virtual const char * type () const
- Public Member Functions inherited from antlr::TokenStreamRewriteEngine::RewriteOperation
virtual ~RewriteOperation ()
virtual size_t getIndex () const

Protected Attributes

size_t lastIndex
- Protected Attributes inherited from antlr::TokenStreamRewriteEngine::RewriteOperation
size_t index
std ::string text

Additional Inherited Members

- Protected Member Functions inherited from antlr::TokenStreamRewriteEngine::RewriteOperation
 RewriteOperation (size_t idx, const std ::string &txt)

Detailed Description

Definition at line 158 of file TokenStreamRewriteEngine.hpp.

Constructor & Destructor Documentation

◆ ReplaceOp()

antlr::TokenStreamRewriteEngine::ReplaceOp::ReplaceOp ( size_t  from,
size_t  to,
std ::string  text 

Definition at line 161 of file TokenStreamRewriteEngine.hpp.

◆ ~ReplaceOp()

virtual antlr::TokenStreamRewriteEngine::ReplaceOp::~ReplaceOp ( )

Definition at line 166 of file TokenStreamRewriteEngine.hpp.

Member Function Documentation

◆ execute()

virtual size_t antlr::TokenStreamRewriteEngine::ReplaceOp::execute ( std ::ostream &  )

Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.

Reimplemented from antlr::TokenStreamRewriteEngine::RewriteOperation.

Definition at line 167 of file TokenStreamRewriteEngine.hpp.

◆ type()

virtual const char* antlr::TokenStreamRewriteEngine::ReplaceOp::type ( ) const

Member Data Documentation

◆ lastIndex

size_t antlr::TokenStreamRewriteEngine::ReplaceOp::lastIndex

Definition at line 175 of file TokenStreamRewriteEngine.hpp.

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