VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simObjectStateRepositoryIterator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: srIterator.h,v $ $Revision: 1.7 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtSimObjectStateRepositoryIterator_H_
19 #define DtSimObjectStateRepositoryIterator_H_
20 
21 #include "vrfutil/iteratorBase.h"
22 
24 
34  public DtIteratorBase<DtSimObjectStateRepository>
35 {
36 private:
39 
43 
47 
48 public:
50  DtSimObjectStateRepositoryIterator(const DtList& list) :
52 
55 
58  DtSimObjectStateRepository* first(bool reset = true)
59  {
60  if (reset)
61  {
63  }
64 
66  };
67 
70  DtSimObjectStateRepository* last(bool reset = true)
71  {
72  if (reset)
73  {
75  }
76 
78  };
79 };
80 
81 #endif
virtual bool reset(bool reverse=false)
Sets the cursor and the direction of this iterator over the list. If reverse is false, DtIteratorBeginning and DtIteratorForward are used, otherwise, DtIteratorEnd and DtIteratorReverse are used. Returns true unless the list is empty.
Definition: iteratorBase.h:65
virtual T * last(bool move=true)
Definition: iteratorBase.h:334
DtSimObjectStateRepository * last(bool reset=true)
true (useful for iterating in reverse). Returns the last object on the list.
Definition: simObjectStateRepositoryIterator.h:70
const DtIteratorBase & operator=(const DtIteratorBase &orig)
Assignment Operator.
Definition: simObjectStateRepository.h:59
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual T * first(bool move=true)
Definition: iteratorBase.h:331
Iterator for iterating over a DtList of state repositories. Used by DtAttachmentManager. This iterator does not recurse; it iterates through the attached children of an SR, not all the attached descendants. (DtRecursiveStateRepositoryIterator is used for that purpose).
Definition: simObjectStateRepositoryIterator.h:33
DtSimObjectStateRepository * first(bool reset=true)
Calls reset() if reset arg is true (useful for for() loops). Returns the first object on the list...
Definition: simObjectStateRepositoryIterator.h:58
DtSimObjectStateRepositoryIterator(const DtList &list)
Constructor.
Definition: simObjectStateRepositoryIterator.h:50
virtual ~DtSimObjectStateRepositoryIterator()
Destructor.
Definition: simObjectStateRepositoryIterator.h:54

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)