Backproject
Public Member Functions | List of all members
RemoveAllPointsOperation Class Reference

An operation that removes all the points on a context. More...

#include <RemoveAllPointsOperation.h>

Inheritance diagram for RemoveAllPointsOperation:
ContextOperation

Public Member Functions

virtual bool IsPossible (const Context &context) const
 Indicates whether the operation can be performed given the current state of affairs. More...
 
virtual std::string getDescription () const
 Gives a short (infinitive verb) indication of what the operation does. More...
 
virtual std::string Perform (Context &context) const
 Performs the operation on the context. More...
 

Detailed Description

An operation that removes all the points on a context.

Member Function Documentation

§ getDescription()

std::string RemoveAllPointsOperation::getDescription ( ) const
virtual

Gives a short (infinitive verb) indication of what the operation does.

Returns
e.g. "use the context to do something"

Implements ContextOperation.

§ IsPossible()

bool RemoveAllPointsOperation::IsPossible ( const Context context) const
virtual

Indicates whether the operation can be performed given the current state of affairs.

Parameters
contextthe context for which the operation may be runnable
Returns
true when the operation may be performed

Implements ContextOperation.

§ Perform()

std::string RemoveAllPointsOperation::Perform ( Context context) const
virtual

Performs the operation on the context.

Parameters
contextthe context onto which to perform the operatoin
Returns
a string detailing the results of the operation

Implements ContextOperation.


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