Skip to content

Commit cb31e66

Browse files
cngzhnpOzanCansel
andauthored
Forward declaration was done starting from hazelcast_client.h (#1053)
Co-authored-by: Ozan Cansel <[email protected]>
1 parent 07f2693 commit cb31e66

File tree

17 files changed

+52
-34
lines changed

17 files changed

+52
-34
lines changed

hazelcast/include/hazelcast/client/hazelcast_client.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
#include <boost/utility/string_view.hpp>
1919

2020
#include "hazelcast/client/impl/hazelcast_client_instance_impl.h"
21+
#include "hazelcast/client/flake_id_generator.h"
22+
#include "hazelcast/client/iexecutor_service.h"
23+
#include "hazelcast/client/itopic.h"
24+
#include "hazelcast/client/pn_counter.h"
25+
#include "hazelcast/client/reliable_topic.h"
26+
#include "hazelcast/client/replicated_map.h"
2127

2228
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
2329
#pragma warning(push)

hazelcast/include/hazelcast/client/impl/hazelcast_client_instance_impl.h

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,20 @@
1616
#pragma once
1717

1818
#include <atomic>
19-
#include <memory>
20-
#include <cstdint>
21-
#include <vector>
2219
#include <random>
2320
#include <boost/uuid/uuid.hpp>
2421

25-
#include "hazelcast/client/map/NearCachedClientMapProxy.h"
26-
#include "hazelcast/client/spi/impl/sequence/CallIdSequence.h"
27-
#include "hazelcast/client/internal/nearcache/NearCacheManager.h"
28-
#include "hazelcast/client/proxy/RingbufferImpl.h"
29-
#include "hazelcast/client/imap.h"
30-
#include "hazelcast/client/multi_map.h"
31-
#include "hazelcast/client/replicated_map.h"
32-
#include "hazelcast/client/iqueue.h"
33-
#include "hazelcast/client/iset.h"
34-
#include "hazelcast/client/ilist.h"
35-
#include "hazelcast/client/itopic.h"
36-
#include "hazelcast/client/pn_counter.h"
37-
#include "hazelcast/client/transaction_options.h"
3822
#include "hazelcast/client/transaction_context.h"
3923
#include "hazelcast/client/cluster.h"
4024
#include "hazelcast/client/client_config.h"
4125
#include "hazelcast/client/client_properties.h"
4226
#include "hazelcast/client/spi/lifecycle_service.h"
4327
#include "hazelcast/client/spi/ProxyManager.h"
44-
#include "hazelcast/client/ringbuffer.h"
45-
#include "hazelcast/client/reliable_topic.h"
4628
#include "hazelcast/client/protocol/ClientExceptionFactory.h"
4729
#include "hazelcast/client/spi/impl/ClientClusterServiceImpl.h"
4830
#include "hazelcast/client/spi/impl/ClientTransactionManagerServiceImpl.h"
49-
#include "hazelcast/client/spi/impl/listener/cluster_view_listener.h"
50-
#include "hazelcast/client/spi/impl/ClientInvocationServiceImpl.h"
51-
#include "hazelcast/client/impl/statistics/Statistics.h"
52-
#include "hazelcast/client/flake_id_generator.h"
53-
#include "hazelcast/client/iexecutor_service.h"
5431
#include "hazelcast/client/local_endpoint.h"
55-
#include "hazelcast/cp/cp.h"
5632
#include "hazelcast/cp/cp_impl.h"
57-
#include "hazelcast/logger.h"
5833
#include "hazelcast/client/sql/sql_service.h"
5934
#include "hazelcast/client/serialization/pimpl/compact/compact.h"
6035

@@ -64,37 +39,50 @@
6439
#endif
6540

6641
namespace hazelcast {
42+
class logger;
6743
namespace client {
6844
class hazelcast_client;
45+
class imap;
6946
namespace connection {
7047
class ClientConnectionManagerImpl;
7148
class AddressProvider;
7249
} // namespace connection
7350

51+
namespace internal {
52+
namespace nearcache {
53+
class NearCacheManager;
54+
} // namespace nearcache
55+
} // namespace internal
56+
7457
namespace serialization {
7558
namespace pimpl {
7659
class SerializationService;
77-
}
60+
} // namespace pimpl
7861
} // namespace serialization
7962
namespace spi {
8063
class ClientContext;
8164
class lifecycle_service;
8265

8366
namespace impl {
8467
class ClientExecutionServiceImpl;
68+
class ClientInvocationServiceImpl;
8569
class ClientPartitionServiceImpl;
70+
class Statistics;
8671
namespace listener {
8772
class listener_service_impl;
88-
}
73+
} // namespace listener
74+
namespace sequence {
75+
class CallIdSequence;
76+
} // namespace sequence
8977
} // namespace impl
9078
} // namespace spi
9179

92-
class transaction_context;
93-
9480
class transaction_options;
9581

9682
class cluster;
9783

84+
class cluster_view_listener;
85+
9886
namespace impl {
9987
class ClientLockReferenceIdGenerator;
10088

hazelcast/include/hazelcast/client/iqueue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "hazelcast/client/proxy/IQueueImpl.h"
2020
#include "hazelcast/client/impl/ItemEventHandler.h"
2121
#include "hazelcast/client/protocol/codec/codecs.h"
22+
#include "hazelcast/client/spi/ClientContext.h"
2223

2324
namespace hazelcast {
2425
namespace client {

hazelcast/include/hazelcast/client/proxy/PNCounterImpl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
*/
1616
#pragma once
1717

18-
#include <ostream>
18+
#include <iosfwd>
1919
#include <unordered_set>
2020
#include <memory>
2121
#include <atomic>
2222
#include <boost/smart_ptr/atomic_shared_ptr.hpp>
2323

24-
#include <hazelcast/client/impl/vector_clock.h>
2524
#include "hazelcast/client/proxy/ProxyImpl.h"
2625
#include "hazelcast/util/Sync.h"
2726
#include "hazelcast/client/impl/vector_clock.h"

hazelcast/include/hazelcast/client/proxy/PartitionSpecificClientProxy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#pragma once
1717

1818
#include "hazelcast/client/proxy/ProxyImpl.h"
19-
#include "hazelcast/util/exception_util.h"
2019

2120
namespace hazelcast {
2221
namespace client {

hazelcast/include/hazelcast/client/proxy/ReplicatedMapImpl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "hazelcast/client/client_config.h"
2222
#include "hazelcast/client/serialization/pimpl/data.h"
2323
#include "hazelcast/client/internal/nearcache/NearCache.h"
24+
#include "hazelcast/client/internal/nearcache/NearCacheManager.h"
25+
#include "hazelcast/client/protocol/codec/codecs.h"
2426

2527
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
2628
#pragma warning(push)

hazelcast/include/hazelcast/client/proxy/RingbufferImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616
#pragma once
1717

18-
#include "hazelcast/client/ringbuffer/read_result_set.h"
1918
#include "hazelcast/client/protocol/codec/codecs.h"
2019
#include "hazelcast/client/proxy/PartitionSpecificClientProxy.h"
20+
#include "hazelcast/util/Preconditions.h"
2121

2222
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
2323
#pragma warning(push)

hazelcast/include/hazelcast/client/replicated_map.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <memory>
2020

2121
#include "hazelcast/client/proxy/ReplicatedMapImpl.h"
22+
#include "hazelcast/client/spi/impl/ClientClusterServiceImpl.h"
2223
#include "hazelcast/client/entry_listener.h"
2324
#include "hazelcast/client/entry_event.h"
2425
#include "hazelcast/client/map_event.h"

hazelcast/include/hazelcast/client/ringbuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#pragma once
1717

1818
#include "hazelcast/client/proxy/RingbufferImpl.h"
19+
#include "hazelcast/client/ringbuffer/read_result_set.h"
1920

2021
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
2122
#pragma warning(push)

hazelcast/include/hazelcast/client/ringbuffer/read_result_set.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
#include <vector>
1919

20+
#include <boost/optional.hpp>
21+
22+
#include "hazelcast/client/serialization/pimpl/data.h"
23+
2024
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
2125
#pragma warning(push)
2226
#pragma warning(disable : 4251) // for dll export

0 commit comments

Comments
 (0)