GetStatement Struct Reference

A sed get statement, usually specified like this: More...

#include <muSED.h>

Inheritance diagram for GetStatement:
Inheritance graph
[legend]
Collaboration diagram for GetStatement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

LineRangeActivationState activationState ()
bool active (ScriptRuntimeContext *context, Statement *statement)
 return true if the patternBuffer, line number, and isLast_ flag in the specified context match the requirements of the filters.
void adoptChild (Statement *newbie)
 Take ownership of a new statement and schedule it for delete when *this is destructed.
void clear ()
std::string debugPrefix () const
virtual std::string debugString () const
virtual std::string debugStringPrefix () const
bool execute (ScriptRuntimeContext *context)
 Invoke context->Print().
 GetStatement (Statement *parent, int fc, Filter const &f1, Filter const &f2, bool filtersInverted, bool append=false)
void setActivationState (LineRangeActivationState newState)
virtual ~GetStatement ()

Static Public Member Functions

static void debugPrint (Statement *p)
template<class StringIterator1 , class StringIterator2 , class CompiledScript >
static Statementparse (Statement *parent, int filterCount, Filter const &f1, Filter const &f2, bool inverted, StringIterator1 &firstChar, StringIterator2 const &lastChar, size_t line, CompiledScript &script, bool append)

Public Attributes

bool append_
ActivationMap childStatementActivationMap_
std::list< Statement * > childStatements_
Filter filter1_
Filter filter2_
int filters_
bool inverted_
StatementparentStatement_

Detailed Description

A sed get statement, usually specified like this:

           g             -- replace mode
           G             -- append mode

Copy or append the current sed hold buffer into the pattern buffer. A constructor parameter, append, decides which.

Definition at line 1408 of file muSED.h.


Constructor & Destructor Documentation

virtual ~GetStatement (  )  [virtual]

Definition at line 1427 of file muSED.h.

GetStatement ( Statement parent,
int  fc,
Filter const &  f1,
Filter const &  f2,
bool  filtersInverted,
bool  append = false 
)

Definition at line 1429 of file muSED.h.

Here is the caller graph for this function:


Member Function Documentation

LineRangeActivationState activationState (  )  [inherited]

Definition at line 119 of file muSED.cxx.

Here is the caller graph for this function:

bool active ( ScriptRuntimeContext context,
Statement statement 
) [inherited]

return true if the patternBuffer, line number, and isLast_ flag in the specified context match the requirements of the filters.

Parameters:
[in] context The runtime context in which to determine if the current statement, as defined both by the statement pointer and by line number information in the context, is active.
[in] statement The statement about to be executed on the current line of input as defined by the line number and is last flag in the context.

Note that the runtime context keeps track of the activation status of statements, by the statement pointer, based on the filters in a filterable statement. Whenever you have a range filter, the activate function manages the activation state.

Definition at line 316 of file muSED.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void adoptChild ( Statement newbie  )  [inherited]

Take ownership of a new statement and schedule it for delete when *this is destructed.

Definition at line 444 of file muSED.h.

Here is the caller graph for this function:

void clear (  )  [inherited]

Definition at line 434 of file muSED.h.

Here is the caller graph for this function:

std::string debugPrefix (  )  const [inherited]

Definition at line 459 of file muSED.h.

Here is the caller graph for this function:

static void debugPrint ( Statement p  )  [static, inherited]

Definition at line 474 of file muSED.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string debugString (  )  const [virtual]

Reimplemented from Statement.

Definition at line 678 of file muSED.cxx.

Here is the call graph for this function:

std::string debugStringPrefix (  )  const [virtual, inherited]

Definition at line 545 of file muSED.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

bool execute ( ScriptRuntimeContext context  )  [virtual]

Invoke context->Print().

Implements Statement.

Definition at line 735 of file muSED.cxx.

Here is the call graph for this function:

static Statement* parse ( Statement parent,
int  filterCount,
Filter const &  f1,
Filter const &  f2,
bool  inverted,
StringIterator1 &  firstChar,
StringIterator2 const &  lastChar,
size_t  line,
CompiledScript script,
bool  append 
) [static]

Definition at line 1446 of file muSED.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void setActivationState ( LineRangeActivationState  newState  )  [inherited]

Definition at line 138 of file muSED.cxx.

Here is the caller graph for this function:


Member Data Documentation

bool append_

Definition at line 1425 of file muSED.h.

Definition at line 416 of file muSED.h.

std::list<Statement *> childStatements_ [inherited]

Definition at line 415 of file muSED.h.

Filter filter1_ [inherited]

Definition at line 550 of file muSED.h.

Filter filter2_ [inherited]

Definition at line 551 of file muSED.h.

int filters_ [inherited]

Definition at line 548 of file muSED.h.

bool inverted_ [inherited]

Definition at line 552 of file muSED.h.

Definition at line 418 of file muSED.h.


The documentation for this struct was generated from the following files:
Generated on Wed Feb 29 22:59:02 2012 for CXXUtilities by  doxygen 1.6.3