From 4abce7baa2d855cbe21f51cd4df8c8946a1cd907 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Sun, 3 Feb 2019 15:40:50 +0100 Subject: Adjust forward declarations in storageframework. --- .../storageframework/defaultimplementation/thread/threadimpl.h | 2 +- .../src/vespa/storageframework/generic/clock/time.h | 6 +++--- .../src/vespa/storageframework/generic/component/component.h | 2 +- .../storageframework/generic/component/componentregister.h | 2 +- .../storageframework/generic/component/managedcomponent.h | 10 +++++----- .../vespa/storageframework/generic/metric/metricregistrator.h | 2 +- .../vespa/storageframework/generic/status/statusreportermap.h | 2 +- .../src/vespa/storageframework/generic/thread/tickingthread.h | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) (limited to 'storageframework') diff --git a/storageframework/src/vespa/storageframework/defaultimplementation/thread/threadimpl.h b/storageframework/src/vespa/storageframework/defaultimplementation/thread/threadimpl.h index bb89c9167a3..17967c66bdf 100644 --- a/storageframework/src/vespa/storageframework/defaultimplementation/thread/threadimpl.h +++ b/storageframework/src/vespa/storageframework/defaultimplementation/thread/threadimpl.h @@ -9,7 +9,7 @@ namespace storage::framework::defaultimplementation { -class ThreadPoolImpl; +struct ThreadPoolImpl; class ThreadImpl : public Thread { diff --git a/storageframework/src/vespa/storageframework/generic/clock/time.h b/storageframework/src/vespa/storageframework/generic/clock/time.h index d7977bdba5c..4c578f9b33d 100644 --- a/storageframework/src/vespa/storageframework/generic/clock/time.h +++ b/storageframework/src/vespa/storageframework/generic/clock/time.h @@ -14,7 +14,7 @@ namespace storage::framework { using MonotonicTimePoint = std::chrono::steady_clock::time_point; using MonotonicDuration = std::chrono::steady_clock::duration; -class Clock; +struct Clock; enum TimeFormat { DATETIME = 0x01, // 2010-04-26 19:23:03 @@ -98,8 +98,8 @@ std::ostream& operator<<(std::ostream& out, const Time& t); template vespalib::asciistream& operator<<(vespalib::asciistream& out, const Time& t); -class MicroSecTime; -class MilliSecTime; +struct MicroSecTime; +struct MilliSecTime; /** * \class storage::framework::SecondTime diff --git a/storageframework/src/vespa/storageframework/generic/component/component.h b/storageframework/src/vespa/storageframework/generic/component/component.h index d8f303ca2d9..165d9c47d6e 100644 --- a/storageframework/src/vespa/storageframework/generic/component/component.h +++ b/storageframework/src/vespa/storageframework/generic/component/component.h @@ -76,7 +76,7 @@ namespace storage::framework { -class ComponentRegister; +struct ComponentRegister; struct ComponentStateListener { virtual ~ComponentStateListener() = default; diff --git a/storageframework/src/vespa/storageframework/generic/component/componentregister.h b/storageframework/src/vespa/storageframework/generic/component/componentregister.h index 3babd8b29bc..06d5c19866f 100644 --- a/storageframework/src/vespa/storageframework/generic/component/componentregister.h +++ b/storageframework/src/vespa/storageframework/generic/component/componentregister.h @@ -15,7 +15,7 @@ namespace storage::framework { -class ManagedComponent; +struct ManagedComponent; struct ComponentRegister { virtual ~ComponentRegister() {} diff --git a/storageframework/src/vespa/storageframework/generic/component/managedcomponent.h b/storageframework/src/vespa/storageframework/generic/component/managedcomponent.h index a3e6a7bfb47..94a44e1b2e8 100644 --- a/storageframework/src/vespa/storageframework/generic/component/managedcomponent.h +++ b/storageframework/src/vespa/storageframework/generic/component/managedcomponent.h @@ -21,11 +21,11 @@ namespace metrics { namespace storage::framework { -class StatusReporter; -class MetricRegistrator; -class MetricUpdateHook; -class ThreadPool; -class Clock; +struct StatusReporter; +struct MetricRegistrator; +struct MetricUpdateHook; +struct ThreadPool; +struct Clock; /** * The upgrade flags can be used to add forward/backward compatability. In most diff --git a/storageframework/src/vespa/storageframework/generic/metric/metricregistrator.h b/storageframework/src/vespa/storageframework/generic/metric/metricregistrator.h index 7b05bbe8040..f8ab6699d3c 100644 --- a/storageframework/src/vespa/storageframework/generic/metric/metricregistrator.h +++ b/storageframework/src/vespa/storageframework/generic/metric/metricregistrator.h @@ -19,7 +19,7 @@ namespace metrics { namespace storage::framework { -class MetricUpdateHook; +struct MetricUpdateHook; struct MetricRegistrator { virtual ~MetricRegistrator() {} diff --git a/storageframework/src/vespa/storageframework/generic/status/statusreportermap.h b/storageframework/src/vespa/storageframework/generic/status/statusreportermap.h index 8582f8c2aed..a92a3b86954 100644 --- a/storageframework/src/vespa/storageframework/generic/status/statusreportermap.h +++ b/storageframework/src/vespa/storageframework/generic/status/statusreportermap.h @@ -11,7 +11,7 @@ namespace storage::framework { -class StatusReporter; +struct StatusReporter; struct StatusReporterMap { virtual ~StatusReporterMap() {} diff --git a/storageframework/src/vespa/storageframework/generic/thread/tickingthread.h b/storageframework/src/vespa/storageframework/generic/thread/tickingthread.h index d550e78d2f7..b03385da50e 100644 --- a/storageframework/src/vespa/storageframework/generic/thread/tickingthread.h +++ b/storageframework/src/vespa/storageframework/generic/thread/tickingthread.h @@ -25,7 +25,7 @@ namespace storage::framework { -class ThreadPool; +struct ThreadPool; typedef uint32_t ThreadIndex; /** -- cgit v1.2.3