VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
orderedKeyList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: orderedKeyList.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #pragma once
13 
17 
19 
20 #include <vector>
21 
22 namespace makVrf
23 {
24  template <typename T>
26  {
27  public:
28  typedef std::vector<T> ContainerVector;
29  typedef typename ContainerVector::const_iterator const_iterator;
30  typedef typename ContainerVector::iterator iterator;
31 
34 
36 
37  virtual ~DtOrderedKeyList();
38 
39  void clear();
40  void copyList(const DtOrderedKeyList&);
41 
43  void addEntry(T, bool replace = false);
44  T removeEntry(const DtEntityMapperKey& key);
45  T find(const DtEntityMapperKey& key) const;
46 
47  const ContainerVector& items() const
48  {
49  return this->myContainer;
50  }
51 
53  {
54  return this->myContainer;
55  }
56 
57  protected:
59  };
60 }
61 
62 #include <vrfGuiCore/orderedKeyList.inl>
Definition: entityMapperKey.h:19
T find(const DtEntityMapperKey &key) const
Definition: orderedKeyList.h:25
ContainerVector & items()
Definition: orderedKeyList.h:52
ContainerVector myContainer
Definition: orderedKeyList.h:58
const ContainerVector & items() const
Definition: orderedKeyList.h:47
T removeEntry(const DtEntityMapperKey &key)
DtOrderedKeyList & operator=(const DtOrderedKeyList &)
void addEntry(T, bool replace=false)
Adds a new entry, ordering it by key type.
ContainerVector::const_iterator const_iterator
Definition: orderedKeyList.h:29
std::vector< T > ContainerVector
Definition: orderedKeyList.h:28
void copyList(const DtOrderedKeyList &)
ContainerVector::iterator iterator
Definition: orderedKeyList.h:30

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)