ChangeEdgeSegmentDelta.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2009, 2010 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 
00012 #ifndef CHANGE_EDGE_SEGMENT_DELTA_H_
00013 #define CHANGE_EDGE_SEGMENT_DELTA_H_
00014 
00015 #include <cstddef>
00016 
00017 #include "ChangePropertyDelta.h"
00018 
00019 namespace Document
00020 {
00021 
00024 class EdgeSegmentFinder : public PropertyDeltaIdentifier<std::size_t>
00025 {
00026 public:
00030     EdgeSegmentFinder(std::size_t edge_id);
00035     virtual void read(const Track::Track & track, std::size_t & segment_index);
00040     virtual void write(Track::Track & track, const std::size_t & new_segment_index);
00041 protected:
00043     std::size_t edge_id;
00044 };
00045 
00048 typedef ChangePropertyDelta<EdgeSegmentFinder, std::size_t> ChangeEdgeSegmentDelta;
00049 
00050 }
00051 
00052 #endif // CHANGE_EDGE_SEGMENT_DELTA_H_

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

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