SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
resource
query
Cache.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
#ifndef smtk_resource_query_Cache_h
12
#define smtk_resource_query_Cache_h
13
14
#include "smtk/CoreExports.h"
15
16
#include "smtk/common/UUID.h"
17
18
#include <memory>
19
#include <typeindex>
20
#include <unordered_map>
21
22
namespace
smtk
23
{
24
namespace
resource
25
{
26
namespace
query
27
{
31
struct
SMTKCORE_EXPORT
Cache
32
{
33
virtual
~
Cache
() =
default
;
34
virtual
std::size_t index()
const
{
return
std::type_index(
typeid
(*
this
)).hash_code(); }
35
};
36
}
// namespace query
37
}
// namespace resource
38
}
// namespace smtk
39
40
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::resource::query::Cache
A base class for persistent data used in conjunction with Query types.
Definition:
Cache.h:31
Generated by
1.8.17