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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)