PUMA Library Reference Manual
Puma::CReplaceManipulator Class Reference

#include <Manipulators.h>

+ Inheritance diagram for Puma::CReplaceManipulator:

Public Member Functions

 CReplaceManipulator (CTree *what, CTree *with)
 
 CReplaceManipulator (Token *, Token *, Token *, Token *)
 
 ~CReplaceManipulator ()
 
const char * op () const
 
ListElementduplicate ()
 Duplicate this list element. More...
 
Array< Token * > & args ()
 
void args (Array< Token * > &)
 
ManipError valid (ManipMode) const
 
void manipulate ()
 
void manipulate (CTree *what, CTree *with)
 
void manipulate (Token *wf, Token *wt, Token *tf, Token *tt)
 
- Public Member Functions inherited from Puma::Manipulator
virtual ~Manipulator ()
 
void ignore_mask (ManipIgnoreMask mim)
 
ManipIgnoreMask ignore_mask () const
 
- Public Member Functions inherited from Puma::ListElement
 ListElement ()
 Constructor. More...
 
virtual ~ListElement ()
 Destructor. More...
 
Listbelonging_to () const
 Get the list this element belongs to. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Puma::Manipulator
static const char * copy_op
 
static const char * cut_op
 
static const char * paste_op
 
static const char * paste_before_op
 
static const char * move_op
 
static const char * move_before_op
 
static const char * kill_op
 
static const char * cpp_copy_op
 
static const char * cpp_copy_before_op
 
static const char * cpp_kill_op
 
static const char * cpp_move_op
 
static const char * cpp_move_before_op
 
static const char * sequence_op
 
static const char * cpp_replace_op
 
static const char * cpp_swap_op
 
- Protected Member Functions inherited from Puma::Manipulator
 Manipulator ()
 
int valid (Token *, Token *, ManipMode) const
 

Constructor & Destructor Documentation

◆ CReplaceManipulator() [1/2]

Puma::CReplaceManipulator::CReplaceManipulator ( CTree what,
CTree with 
)

◆ CReplaceManipulator() [2/2]

Puma::CReplaceManipulator::CReplaceManipulator ( Token ,
Token ,
Token ,
Token  
)

◆ ~CReplaceManipulator()

Puma::CReplaceManipulator::~CReplaceManipulator ( )
inline

Member Function Documentation

◆ args() [1/2]

Array<Token*>& Puma::CReplaceManipulator::args ( )
inlinevirtual

Implements Puma::Manipulator.

◆ args() [2/2]

void Puma::CReplaceManipulator::args ( Array< Token * > &  )
virtual

Implements Puma::Manipulator.

◆ duplicate()

ListElement* Puma::CReplaceManipulator::duplicate ( )
inlinevirtual

Duplicate this list element.

To be implemented by concrete list element implementations.

Returns
A pointer to the new list element.

Implements Puma::Manipulator.

◆ manipulate() [1/3]

void Puma::CReplaceManipulator::manipulate ( )
virtual

Implements Puma::Manipulator.

◆ manipulate() [2/3]

void Puma::CReplaceManipulator::manipulate ( CTree what,
CTree with 
)
inline

◆ manipulate() [3/3]

void Puma::CReplaceManipulator::manipulate ( Token wf,
Token wt,
Token tf,
Token tt 
)
inline

◆ op()

const char* Puma::CReplaceManipulator::op ( ) const
inlinevirtual

Implements Puma::Manipulator.

◆ valid()

ManipError Puma::CReplaceManipulator::valid ( ManipMode  ) const
virtual

Implements Puma::Manipulator.