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

#include <TokenStreamRewriteEngine.hpp>

Inheritance diagram for antlr::TokenStreamRewriteEngine::InsertBeforeOp:

Public Member Functions

 InsertBeforeOp (size_t index, const std ::string &text)
virtual ~InsertBeforeOp ()
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

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 

Definition at line 143 of file TokenStreamRewriteEngine.hpp.

◆ ~InsertBeforeOp()

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

Definition at line 147 of file TokenStreamRewriteEngine.hpp.

Member Function Documentation

◆ execute()

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

References antlr::TokenStreamRewriteEngine::index.

◆ type()

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

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