Document::EdgeSegmentFinder Class Reference

Find/change the segment associated with a particular edge. More...

#include <ChangeEdgeSegmentDelta.h>

Inheritance diagram for Document::EdgeSegmentFinder:

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

Public Member Functions

 EdgeSegmentFinder (std::size_t edge_id)
 Create associating with an edge.
virtual void read (const Track::Track &track, std::size_t &segment_index)
 Read the segment_index of the associated edge.
virtual void write (Track::Track &track, const std::size_t &new_segment_index)
 Write a segment_index to the associated edge.

Protected Attributes

std::size_t edge_id
 The name of the associated edge.

Detailed Description

Find/change the segment associated with a particular edge.

Definition at line 24 of file ChangeEdgeSegmentDelta.h.


Constructor & Destructor Documentation

Document::EdgeSegmentFinder::EdgeSegmentFinder ( std::size_t  edge_id  ) 

Create associating with an edge.

Parameters:
edge_id The name of the edge to read and write the segment for.

Definition at line 18 of file ChangeEdgeSegmentDelta.cpp.


Member Function Documentation

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

Read the segment_index of the associated edge.

Parameters:
track The track containing the associated edge.
segment_index Variable to store the segment index in.

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

Definition at line 23 of file ChangeEdgeSegmentDelta.cpp.

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

Write a segment_index to the associated edge.

Parameters:
track The track containing the associated edge.
new_segment_index The new segment index to assign.

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

Definition at line 28 of file ChangeEdgeSegmentDelta.cpp.


Member Data Documentation

std::size_t Document::EdgeSegmentFinder::edge_id [protected]

The name of the associated edge.

Definition at line 43 of file ChangeEdgeSegmentDelta.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.