VR-Forces 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 
54  virtual ~DtSimObjectStateRepositoryIterator() override {};
55 
58  virtual DtSimObjectStateRepository* first(bool reset = true) override
59  {
60  if (reset)
61  {
63  }
64 
66  };
67 
70  virtual DtSimObjectStateRepository* last(bool reset = true) override
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
const DtIteratorBase & operator=(const DtIteratorBase &orig)
Assignment Operator.
virtual DtSimObjectStateRepository * first(bool reset=true) override
Calls reset() if reset arg is true (useful for for() loops). Returns the first object on the list...
Definition: simObjectStateRepositoryIterator.h:58
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 ~DtSimObjectStateRepositoryIterator() override
Destructor.
Definition: simObjectStateRepositoryIterator.h:54
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
DtSimObjectStateRepositoryIterator(const DtList &list)
Constructor.
Definition: simObjectStateRepositoryIterator.h:50
virtual DtSimObjectStateRepository * last(bool reset=true) override
true (useful for iterating in reverse). Returns the last object on the list.
Definition: simObjectStateRepositoryIterator.h:70

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)