VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
networkEdgeForwardSegmentConstIter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: networkEdgeForwardSegmentConstIter.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 #ifndef networkEdgeForwardSegmentConstIter_H_
9 #define networkEdgeForwardSegmentConstIter_H_
10 
11 #include "gdb/gdbDefines.h"
12 #include "gdb/networkEdge.h"
14 
15 class DtNetworkSegment;
16 class DtString;
17 
18 //
19 // DtNetworkEdgeForwardSegmentConstIter is a bidirectional const iterator over the segments
20 // representing a DtNetworkEdge, traversing in the FORWARD direction,
21 // where forward is defined as the direction the segments comprise the edge in memory.
22 // INVARIANT: At all times, this iterator must point to a *valid* DtNetworkEdge.
24 {
25 public:
26  // constructor
27  // \param edge The DtNetworkEdge to iterate over
29 
30  // Constructs a forward segment iterator starting at the specified
31  // segment along the edge
32  // \param edge The DtNetworkEdge to iterate over
33  // \param segmentIter A segmentIter associated with the specified edge to initialize to.
35  const DtNetworkEdge::DtSegmentConstIter& segmentConstIter);
36 
37  // destructor
39 
40  // assignment operator
42 
43  // copy constructor
45 
46  // \return The start or end points of the current segment as defined by the direction
47  // of traversal. (i.e., this is a forward segment iter, so the actual segments start point
48  // will also be returned as the start point, etc.)
49  DtPoint startPoint() const;
50  DtPoint endPoint() const;
51 
52  void operator++();
53  void operator--();
54  const DtNetworkSegment& operator*() const;
55  const DtNetworkSegment& operator->() const;
56 
57  bool operator==(const DtNetworkEdgeSegmentConstIter& other) const;
58  bool operator==(const DtNetworkEdgeForwardSegmentConstIter& other) const;
59 
60  bool operator!=(const DtNetworkEdgeSegmentConstIter& other) const;
61  bool operator!=(const DtNetworkEdgeForwardSegmentConstIter& other) const;
62 
63  virtual const DtString type() const;
64 
65 protected:
67 
68 private:
69  // default constructor
71 };
72 
73 
74 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)