diagnose.hxx (565d668c) | diagnose.hxx (22076bf1) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 9 unchanged lines hidden (view full) --- 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#if ! defined(OSL_DIAGNOSE_HXX_INCLUDED) 24#define OSL_DIAGNOSE_HXX_INCLUDED 25 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 9 unchanged lines hidden (view full) --- 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#if ! defined(OSL_DIAGNOSE_HXX_INCLUDED) 24#define OSL_DIAGNOSE_HXX_INCLUDED 25 |
26#if ! defined(_OSL_DIAGNOSE_H_) | |
27#include "osl/diagnose.h" | 26#include "osl/diagnose.h" |
28#endif 29#if ! defined(_OSL_INTERLOCK_H_) | |
30#include "osl/interlck.h" | 27#include "osl/interlck.h" |
31#endif 32#if ! defined(_OSL_MUTEX_HXX_) | |
33#include "osl/mutex.hxx" | 28#include "osl/mutex.hxx" |
34#endif 35#if ! defined(INCLUDED_RTL_ALLOCATOR_HXX) 36#include "rtl/allocator.hxx" 37#endif 38#if ! defined(_RTL_INSTANCE_HXX_) | |
39#include "rtl/instance.hxx" | 29#include "rtl/instance.hxx" |
40#endif | |
41#include <hash_set> 42#include <functional> 43#include <typeinfo> 44 45namespace osl { 46/// @internal 47namespace detail { 48 --- 37 unchanged lines hidden (view full) --- 86struct VoidPtrHash : ::std::unary_function<void const*, ::std::size_t> { 87 ::std::size_t operator()( void const* p ) const { 88 ::std::size_t const d = static_cast< ::std::size_t >( 89 reinterpret_cast< ::std::ptrdiff_t >(p) ); 90 return d + (d >> 3); 91 } 92}; 93 | 30#include <hash_set> 31#include <functional> 32#include <typeinfo> 33 34namespace osl { 35/// @internal 36namespace detail { 37 --- 37 unchanged lines hidden (view full) --- 75struct VoidPtrHash : ::std::unary_function<void const*, ::std::size_t> { 76 ::std::size_t operator()( void const* p ) const { 77 ::std::size_t const d = static_cast< ::std::size_t >( 78 reinterpret_cast< ::std::ptrdiff_t >(p) ); 79 return d + (d >> 3); 80 } 81}; 82 |
94typedef ::std::hash_set<void const*, VoidPtrHash, ::std::equal_to<void const*>, 95 ::rtl::Allocator<void const*> > VoidPointerSet; | 83typedef ::std::hash_set<void const*, VoidPtrHash, ::std::equal_to<void const*> > VoidPointerSet; |
96 97struct ObjectRegistryData { 98 ObjectRegistryData( ::std::type_info const& rTypeInfo ) 99 : m_pName(rTypeInfo.name()), m_nCount(0), m_addresses(), 100 m_bStoreAddresses(osl_detail_ObjectRegistry_storeAddresses(m_pName)){} 101 102 char const* const m_pName; 103 oslInterlockedCount m_nCount; --- 98 unchanged lines hidden --- | 84 85struct ObjectRegistryData { 86 ObjectRegistryData( ::std::type_info const& rTypeInfo ) 87 : m_pName(rTypeInfo.name()), m_nCount(0), m_addresses(), 88 m_bStoreAddresses(osl_detail_ObjectRegistry_storeAddresses(m_pName)){} 89 90 char const* const m_pName; 91 oslInterlockedCount m_nCount; --- 98 unchanged lines hidden --- |