VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfProcessStateRepositoryIterator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: procSRIter.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtVrfProcessStateRepositoryIterator_H_
19 #define DtVrfProcessStateRepositoryIterator_H_
20 
21 #include <vlutil/vlList.h>
22 #include "vrfutil/iteratorBase.h"
24 
26 
32 class DT_DLL_vrfobjcore DtVrfProcessStateRepositoryIterator : public DtIteratorBase<DtVrfProcessStateRepository>
33 {
34 
35 private:
38 
42 
43 public:
46 
50 
53 
56  DtVrfProcessStateRepository* first(bool reset = true)
57  {
58  if (reset)
59  {
61  }
62 
64  }
65 
69  DtVrfProcessStateRepository* last(bool reset = true)
70  {
71  if (reset)
72  {
74  }
75 
77  }
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
const DtIteratorBase & operator=(const DtIteratorBase &orig)
Assignment Operator.
Iterator for iterating over a DtList of process state repositories. Used by DtVrfProcessStateManager...
Definition: vrfProcessStateRepositoryIterator.h:32
virtual ~DtVrfProcessStateRepositoryIterator()
Destructor.
Definition: vrfProcessStateRepositoryIterator.h:52
DtVrfProcessStateRepositoryIterator(const DtList &list)
Constructor.
Definition: vrfProcessStateRepositoryIterator.h:45
DtVrfProcessStateRepository * first(bool reset=true)
Calls reset() if reset arg is true (useful for for() loops). Returns the first object on the list...
Definition: vrfProcessStateRepositoryIterator.h:56
DtVrfProcessStateRepository * last(bool reset=true)
Calls reset() if reset arg is true with reverse argument as true (useful for iterating in reverse)...
Definition: vrfProcessStateRepositoryIterator.h:69
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
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
DtVrfProcessStateRepositoryIterator(const DtVrfProcessStateRepositoryIterator &orig)
Copy Constructor.
Definition: vrfProcessStateRepositoryIterator.h:48

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)