build-artifacts/win/product/include/gfcpp/RegionEvent.hpp

Go to the documentation of this file.
00001 #ifndef _GEMFIRE_REGIONEVENT_HPP_
00002 #define _GEMFIRE_REGIONEVENT_HPP_
00003 /*=========================================================================
00004  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
00005  * This product is protected by U.S. and international copyright
00006  * and intellectual property laws. Pivotal products are covered by
00007  * more patents listed at http://www.pivotal.io/patents.
00008  *=========================================================================
00009  */
00010 #include "gfcpp_globals.hpp"
00011 #include "gf_types.hpp"
00012 #include "Region.hpp"
00013 #include "CacheableKey.hpp"
00014 #include "UserData.hpp"
00015 
00019 namespace gemfire {
00020 
00024 class CPPCACHE_EXPORT RegionEvent
00025 {
00026   protected:
00027     const RegionPtr m_region;  
00028     const UserDataPtr m_callbackArgument; 
00029     const bool m_remoteOrigin; 
00031   public:
00032 
00034   RegionEvent();
00036   RegionEvent( const RegionPtr& region,
00037                const UserDataPtr& aCallbackArgument,
00038                const bool remoteOrigin );
00039 
00041   ~RegionEvent( );
00042 
00044   inline RegionPtr getRegion() const
00045   {
00046     return m_region;
00047   }
00048 
00054   inline UserDataPtr getCallbackArgument() const
00055   {
00056     return m_callbackArgument;
00057   }
00058 
00060   inline bool remoteOrigin() const
00061   {
00062     return m_remoteOrigin;
00063   }
00064 
00065 
00066   private:
00067 
00068   // never implemented.
00069   RegionEvent( const RegionEvent& other );
00070   void operator = ( const RegionEvent& other );
00071 
00072 
00073 };
00074 
00075 }
00076 
00077 
00078 #endif

GemFire C++ Cache API Documentation