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

Public Member Functions

 ReplaceOp (size_t from, size_t to, std ::string text)
 
virtual size_t execute (std ::ostream &out)
 Execute the rewrite operation by possibly adding to the buffer.
 
virtual const char * type () const
 
- Public Member Functions inherited from antlr::TokenStreamRewriteEngine::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 )
inline

Definition at line 161 of file TokenStreamRewriteEngine.hpp.

◆ ~ReplaceOp()

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

Definition at line 166 of file TokenStreamRewriteEngine.hpp.

Member Function Documentation

◆ execute()

virtual size_t antlr::TokenStreamRewriteEngine::ReplaceOp::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 from antlr::TokenStreamRewriteEngine::RewriteOperation.

Definition at line 167 of file TokenStreamRewriteEngine.hpp.

◆ type()

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

Member Data Documentation

◆ lastIndex

size_t antlr::TokenStreamRewriteEngine::ReplaceOp::lastIndex
protected

Definition at line 175 of file TokenStreamRewriteEngine.hpp.


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