Document::RemoveVertexDelta Class Reference

DocumentDelta which removes a vertex with all associated edges. More...

#include <InsertVertexDelta.h>

Inheritance diagram for Document::RemoveVertexDelta:

Document::StackableDelta Document::DocumentDelta List of all members.

Public Member Functions

 RemoveVertexDelta (std::size_t vertex_index)
 Create associated to a vertex.
virtual void apply (Track::Track &track)
 Create a stack of DocumentDeltas.

Protected Attributes

std::size_t vertex_index

Detailed Description

DocumentDelta which removes a vertex with all associated edges.

Definition at line 51 of file InsertVertexDelta.h.


Constructor & Destructor Documentation

Document::RemoveVertexDelta::RemoveVertexDelta ( std::size_t  vertex_index  ) 

Create associated to a vertex.

Parameters:
vertex_index The name of the vertex the command should remove.

Definition at line 56 of file InsertVertexDelta.cpp.


Member Function Documentation

void Document::RemoveVertexDelta::apply ( Track::Track track  )  [virtual]

Create a stack of DocumentDeltas.

Use only add_to_stack() to change the track, so that changes can be reversed.

Parameters:
track The track to apply the changes to.

Implements Document::StackableDelta.

Definition at line 61 of file InsertVertexDelta.cpp.


Member Data Documentation

std::size_t Document::RemoveVertexDelta::vertex_index [protected]

Definition at line 61 of file InsertVertexDelta.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:16 2010 by Doxygen version 1.4.7 for Racer version svn335.