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

Public Member Functions

 InsertBeforeOp (size_t index, const 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
 

Additional Inherited Members

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

Detailed Description

Definition at line 140 of file TokenStreamRewriteEngine.hpp.

Constructor & Destructor Documentation

◆ InsertBeforeOp()

antlr::TokenStreamRewriteEngine::InsertBeforeOp::InsertBeforeOp ( size_t index,
const std ::string & text )
inline

Definition at line 143 of file TokenStreamRewriteEngine.hpp.

◆ ~InsertBeforeOp()

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

Definition at line 147 of file TokenStreamRewriteEngine.hpp.

Member Function Documentation

◆ execute()

virtual size_t antlr::TokenStreamRewriteEngine::InsertBeforeOp::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 148 of file TokenStreamRewriteEngine.hpp.

◆ type()

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

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