PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::ManipulatorSequence Class Reference

#include <Manipulators.h>

+ Inheritance diagram for Puma::ManipulatorSequence:

Public Member Functions

 ManipulatorSequence ()
 
Array< Token * > & args ()
 
void args (Array< Token * > &empty)
 
const char * op () const
 
ListElementduplicate ()
 Duplicate this list element.
 
ManipError valid (ManipMode mode) const
 
void manipulate ()
 
void append (Manipulator *manip)
 
- 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.
 
virtual ~ListElement ()
 Destructor.
 
Listbelonging_to () const
 Get the list this element belongs to.
 
- Public Member Functions inherited from Puma::List
 List ()
 Constructor.
 
 List (const List &copy)
 Copy-constructor.
 
 ~List ()
 Destructor.
 
Listoperator= (const List &copy)
 Assignment operator.
 
Listoperator+= (const List &list)
 Append the given list.
 
List operator+ (const List &list)
 Create a new list containing the elements of this list followed by the elements of the given list.
 
void clear ()
 Destroy the list elements.
 
void append (ListElement &element)
 Append an element to the list.
 
void prepend (ListElement &element)
 Prepend an element to the list.
 
void insert (ListElement *at, ListElement &element)
 Insert an element at the given list position.
 
void remove (ListElement *element)
 Remove the given element from the list.
 
void kill (ListElement *from, ListElement *to=(ListElement *) 0)
 Remove and destroy all elements between the given list elements.
 
void cut (List &out, ListElement *from, ListElement *to=(ListElement *) 0)
 Cut all elements between the given list elements.
 
Listcopy (ListElement *from=(ListElement *) 0, ListElement *to=(ListElement *) 0)
 Copy all elements between the given list elements.
 
void paste (ListElement *at, const List &l)
 Insert copies of the elements of the given list at the given list position.
 
void paste_before (ListElement *at, const List &l)
 Insert copies of the elements of the given list before the given list position.
 
void move (ListElement *at, List &l)
 Insert the elements of the given list at the given list position.
 
void move_before (ListElement *at, List &l)
 Insert the elements of the given list before the given list position.
 
bool empty () const
 Check if the list is empty.
 
const ListElementfirst () const
 Get the first element in the list.
 
const ListElementlast () const
 Get the last element in the list.
 
const ListElementnext (const ListElement *element) const
 Get the next element of the given element.
 
const ListElementprev (const ListElement *element) const
 Get the previous element of the given element.
 

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

◆ ManipulatorSequence()

Puma::ManipulatorSequence::ManipulatorSequence ( )
inline

Member Function Documentation

◆ append()

void Puma::ManipulatorSequence::append ( Manipulator * manip)
inline

◆ args() [1/2]

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

Implements Puma::Manipulator.

◆ args() [2/2]

void Puma::ManipulatorSequence::args ( Array< Token * > & empty)
inlinevirtual

Implements Puma::Manipulator.

◆ duplicate()

ListElement * Puma::ManipulatorSequence::duplicate ( )
virtual

Duplicate this list element.

To be implemented by concrete list element implementations.

Returns
A pointer to the new list element.

Implements Puma::Manipulator.

◆ manipulate()

void Puma::ManipulatorSequence::manipulate ( )
virtual

Implements Puma::Manipulator.

◆ op()

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

Implements Puma::Manipulator.

◆ valid()

ManipError Puma::ManipulatorSequence::valid ( ManipMode mode) const
virtual

Implements Puma::Manipulator.