VR-Forces 4.0.4 Class Documentation
include/vrfutil/entIdIntAssocLst.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: entIdIntAssocLst.h,v $ $Revision: 1.7 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00015 
00016 
00017 #ifndef DtEntityIdIntAssociationList_H_
00018 #define DtEntityIdIntAssociationList_H_
00019 
00020 #include <vlutil/vlHashlist.h>
00021 #include <vl/hostStructs.h>
00022 
00023 class DtEntityIdentifier;
00024 
00027 
00030 
00031 #include "vrfutil/vrfutilDefines.h"
00032 class DT_DLL_vrfutil DtEntityIdIntAssociationList
00033 {
00034 public:
00035    DtEntityIdIntAssociationList();
00036    virtual ~DtEntityIdIntAssociationList();
00037 
00038    DtEntityIdIntAssociationList(const DtEntityIdIntAssociationList& orig);
00039 
00040    DtEntityIdIntAssociationList& operator=(
00041       const DtEntityIdIntAssociationList& orig);
00042 
00043 public:
00045    virtual void add(int integer, const DtEntityIdentifier& entityId);
00046 
00048    virtual bool remove(int integer);
00050    virtual bool remove(const DtEntityIdentifier& entityId);
00051 
00053    virtual DtEntityIdentifier lookup(int integer, bool* found = NULL) const;
00055    virtual int lookup(const DtEntityIdentifier& entityId, bool* found = NULL) const;
00056 
00058    virtual bool contains(int integer) const;
00060    virtual bool contains(const DtEntityIdentifier& entityId) const;
00061 
00063    virtual const DtList* listOfIntegers() const;
00065    virtual const DtList* listOfEntityIds() const;
00066 
00068    virtual int count() const;
00069 
00072    void empty();
00073 
00075    void copyDataFrom(const DtEntityIdIntAssociationList& source);
00076 
00077 protected:
00078    DtHashList myEntIdToIntHashList;
00079    DtHashList myIntToEntIdHashList;
00080 };
00081 #endif
00082 

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)