mmartell commented on a change in pull request #862:
URL: https://github.com/apache/geode-native/pull/862#discussion_r701168532
##########
File path: clicache/src/CacheableHashSet.hpp
##########
@@ -598,69 +604,11 @@ namespace Apache
};
}
-#define _GFCLI_CACHEABLEHASHSET_DEF_GENERIC(m, HSTYPE)
\
- public ref class m : public
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::m),
HSTYPE> \
- {
\
- public: \
- /** <summary>
- * Allocates a new empty instance.
- * </summary>
- */ \
- inline m() \
- :
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::m),
HSTYPE>() {} \
- \
- /** <summary>
- * Allocates a new instance with the given size.
- * </summary>
- * <param name="size">the initial size of the new instance</param>
- */ \
- inline m(System::Int32 size)
\
- :
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::m),
HSTYPE>(size) {} \
- \
- /** <summary>
- * Static function to create a new empty instance.
- * </summary>
- */ \
- inline static m^ Create() \
- { \
- return gcnew m(); \
- } \
- \
- /** <summary>
- * Static function to create a new instance with the given size.
- * </summary>
- */ \
- inline static m^ Create(System::Int32 size)
\
- { \
- return gcnew m(size); \
- } \
- \
- /* <summary>
- * Factory function to register this class.
- * </summary>
- */ \
- static ISerializable^ CreateDeserializable() \
- { \
- return gcnew m(); \
- } \
- \
- internal:
\
- static ISerializable^
Create(std::shared_ptr<apache::geode::client::Serializable> obj) \
- { \
- return gcnew m(obj); \
- } \
- \
- private:
\
- inline m(std::shared_ptr<apache::geode::client::Serializable>
nativeptr) \
- :
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::m),
HSTYPE>(nativeptr) { } \
- };
-
/// <summary>
/// A mutable <c>ICacheableKey</c> hash set wrapper that can serve as
/// a distributable object for caching.
/// </summary>
- _GFCLI_CACHEABLEHASHSET_DEF_GENERIC(CacheableHashSet,
-
apache::geode::client::CacheableHashSet);
+ public ref class CacheableHashSet : public
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::CacheableHashSet),
apache::geode::client::CacheableHashSet> { public: inline CacheableHashSet() :
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::CacheableHashSet),
apache::geode::client::CacheableHashSet>() {} inline
CacheableHashSet(System::Int32 size) :
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::CacheableHashSet),
apache::geode::client::CacheableHashSet>(size) {} inline static
CacheableHashSet^ Create() { return gcnew CacheableHashSet(); } inline static
CacheableHashSet^ Create(System::Int32 size) { return gcnew
CacheableHashSet(size); } static ISerializable^ CreateDeserializable() { return
gcnew CacheableHashSet(); } internal: static ISerializable^
Create(std::shared_ptr<apache::geode::client::Serializable> obj) { return gcnew
CacheableHashSet(obj); } private: inline CacheableHashSet(std::shar
ed_ptr<apache::geode::client::Serializable> nativeptr) :
Internal::CacheableHashSetType<static_cast<int8_t>(native::internal::DSCode::CacheableHashSet),
apache::geode::client::CacheableHashSet>(nativeptr) { } };;
Review comment:
Yup
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]