Document::VertexSegmentFinder Class Reference

Find/Change the segment associated with a particular vertex. More...

#include <ChangeVertexSegmentDelta.h>

Inheritance diagram for Document::VertexSegmentFinder:

Document::PropertyDeltaIdentifier< std::size_t > List of all members.

Public Member Functions

 VertexSegmentFinder (std::size_t node_id)
 Create associating with a vertex.
virtual void read (const Track::Track &track, std::size_t &segment_index)
 Read the segment index Reads the segment index of the associated vertex.
virtual void write (Track::Track &track, const std::size_t &new_segment_index)
 Change the associated vertex's segment.
std::size_t get_vertex_name () const
 Get the associated vertex's name passed to the constructor.

Protected Attributes

std::size_t node_id
 The name of the associated vertex.

Detailed Description

Find/Change the segment associated with a particular vertex.

Definition at line 25 of file ChangeVertexSegmentDelta.h.


Constructor & Destructor Documentation

Document::VertexSegmentFinder::VertexSegmentFinder ( std::size_t  node_id  ) 

Create associating with a vertex.

Parameters:
node_id The name of the vertex to associate with.

Definition at line 19 of file ChangeVertexSegmentDelta.cpp.


Member Function Documentation

std::size_t Document::VertexSegmentFinder::get_vertex_name (  )  const

Get the associated vertex's name passed to the constructor.

Definition at line 38 of file ChangeVertexSegmentDelta.cpp.

void Document::VertexSegmentFinder::read ( const Track::Track track,
std::size_t &  segment_index 
) [virtual]

Read the segment index Reads the segment index of the associated vertex.

Parameters:
track The track containing the associated vertex.
segment_index This will be set the assicated vertex's segment's index.

Implements Document::PropertyDeltaIdentifier< std::size_t >.

Definition at line 24 of file ChangeVertexSegmentDelta.cpp.

void Document::VertexSegmentFinder::write ( Track::Track track,
const std::size_t &  new_segment_index 
) [virtual]

Change the associated vertex's segment.

Parameters:
track The track containing the associated vertex.
new_segment_index The index of the segment to use.

Implements Document::PropertyDeltaIdentifier< std::size_t >.

Definition at line 29 of file ChangeVertexSegmentDelta.cpp.


Member Data Documentation

std::size_t Document::VertexSegmentFinder::node_id [protected]

The name of the associated vertex.

Definition at line 49 of file ChangeVertexSegmentDelta.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.