/usr/include/mummy-1.0.3/MummyRuntime.h is in libkitware-mummy-runtime1.0-cil 1.0.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | //----------------------------------------------------------------------------
// MummyRuntime.h
//
// Author(s) : David Cole
//
// Copyright (C) 2007 Kitware, Inc.
//----------------------------------------------------------------------------
#ifndef mummy_MummyRuntime_h
#define mummy_MummyRuntime_h
#include <typeinfo>
#ifdef _WIN32
#ifdef Kitware_mummy_Runtime_Unmanaged_EXPORTS
#define MUMMY_RUNTIME_EXPORT __declspec(dllexport)
#else
#define MUMMY_RUNTIME_EXPORT __declspec(dllimport)
#endif
#define MUMMY_RUNTIME_CC __stdcall
#endif
#ifndef MUMMY_RUNTIME_EXPORT
#define MUMMY_RUNTIME_EXPORT
#endif
#ifndef MUMMY_RUNTIME_CC
#define MUMMY_RUNTIME_CC
#endif
namespace Kitware
{
namespace mummy
{
class Runtime;
class RuntimeInternals;
class TypeEntry;
class TypeEntryInternals;
class MUMMY_RUNTIME_EXPORT Runtime
{
public:
typedef unsigned int TypeEntryIndex;
static TypeEntry* GetTypeEntry(void* obj, const char* classNameKey);
static TypeEntry* LookupInstanceTypeEntry(void* obj);
static TypeEntry* LookupClassTypeEntry(const char* classNameKey);
static TypeEntry* GetTypeEntryByIndex(TypeEntryIndex index);
static TypeEntryIndex GetTypeEntryCount();
static const char* GetTypeEntryClassNameKey(TypeEntryIndex index);
typedef void (MUMMY_RUNTIME_CC *ObjectRefCountChangedCallback)(void* obj, unsigned int oldCount, unsigned int newCount);
static unsigned int AddObjectRefCountChangedCallback(ObjectRefCountChangedCallback cb);
static void RemoveObjectRefCountChangedCallback(unsigned int cbid);
static void MUMMY_RUNTIME_CC ObjectRefCountChanged(void* obj, unsigned int oldCount, unsigned int newCount);
static const char* Print();
static bool Verify();
private:
static Runtime Instance;
Runtime();
virtual ~Runtime();
RuntimeInternals* Internals;
Runtime(const Runtime&);
const Runtime& operator=(const Runtime&);
};
class MUMMY_RUNTIME_EXPORT TypeEntry
{
public:
TypeEntry(const char* classNameKey, const Runtime::TypeEntryIndex& index);
virtual ~TypeEntry();
const char* GetClassNameKey() const;
Runtime::TypeEntryIndex GetIndex() const;
Runtime::ObjectRefCountChangedCallback GetObjectRefCountChangedCallback() const;
const char* Print() const;
private:
TypeEntryInternals* Internals;
TypeEntry();
TypeEntry(const TypeEntry&);
const TypeEntry& operator=(const TypeEntry&);
};
}
}
#endif
|