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 
32 
34 
35  virtual ~DtOrderedKeyList();
36 
37  void clear();
38  void copyList(const DtOrderedKeyList&);
39 
41  void addEntry(T, bool replace = false);
42  T removeEntry(const DtEntityMapperKey& key);
43  T find(const DtEntityMapperKey& key) const;
44 
45  const ContainerVector& items() const
46  {
47  return this->myContainer;
48  }
49 
50  protected:
52  };
53 }
54 
55 #include <vrfGuiCore/orderedKeyList.inl>
Definition: entityMapperKey.h:23
T find(const DtEntityMapperKey &key) const
Definition: orderedKeyList.h:25
ContainerVector myContainer
Definition: orderedKeyList.h:51
const ContainerVector & items() const
Definition: orderedKeyList.h:45
T removeEntry(const DtEntityMapperKey &key)
DtOrderedKeyList & operator=(const DtOrderedKeyList &)
void addEntry(T, bool replace=false)
Adds a new entry, ordering it by key type.
std::vector< T > ContainerVector
Definition: orderedKeyList.h:28
void copyList(const DtOrderedKeyList &)

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)