VR-Forces 4.10 Class Documentation
 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.
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).
Definition: simObjectStateRepositoryIterator.h:70
const DtIteratorBase & operator=(const DtIteratorBase &orig)
Assignment Operator.
The DtSimObjectStateRepository is an abstract base class (ABC) for all state repositories.
Definition: simObjectStateRepository.h:46
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.
Definition: simObjectStateRepositoryIterator.h:33
DtSimObjectStateRepository * first(bool reset=true)
Calls reset() if reset arg is true (useful for for() loops).
Definition: simObjectStateRepositoryIterator.h:58
DtSimObjectStateRepositoryIterator(const DtList &list)
Constructor.
Definition: simObjectStateRepositoryIterator.h:50
virtual ~DtSimObjectStateRepositoryIterator()
Destructor.
Definition: simObjectStateRepositoryIterator.h:54

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)