VR-Forces 4.0.4 Class Documentation
include/vrfobjcore/srIterator.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: srIterator.h,v $ $Revision: 1.7 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtSimObjectStateRepositoryIterator_H_
00019 #define DtSimObjectStateRepositoryIterator_H_
00020 
00021 #include "vrfutil/iteratorBase.h"
00022 
00023 class DtSimObjectStateRepository;
00024 
00032 class DtSimObjectStateRepositoryIterator : public DtIteratorBase<DtSimObjectStateRepository>
00033 {
00034 private:
00036    DtSimObjectStateRepositoryIterator();
00037 
00039    DtSimObjectStateRepositoryIterator(
00040       const DtSimObjectStateRepositoryIterator& orig);
00041 
00043    const DtSimObjectStateRepositoryIterator& operator=(
00044       const DtSimObjectStateRepositoryIterator& orig);
00045 
00046 public:
00048    DtSimObjectStateRepositoryIterator(const DtList& list) :
00049       DtIteratorBase<DtSimObjectStateRepository>(list) {};
00050 
00052    virtual ~DtSimObjectStateRepositoryIterator() {};
00053 
00056    DtSimObjectStateRepository* first(bool reset = true)
00057       {
00058          if (reset)
00059          {
00060             DtIteratorBase<DtSimObjectStateRepository>::reset();
00061          }
00062    
00063          return DtIteratorBase<DtSimObjectStateRepository>::first();
00064       };
00065 
00068    DtSimObjectStateRepository* last(bool reset = true)
00069       {
00070          if (reset)
00071          {
00072             DtIteratorBase<DtSimObjectStateRepository>::reset();
00073          }
00074    
00075          return DtIteratorBase<DtSimObjectStateRepository>::last();
00076       };
00077 };
00078 
00079 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)