H:/gfcppsancout/product/include/gfcpp/Cacheable.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CACHEABLE_H__
00002 #define __GEMFIRE_CACHEABLE_H__
00003 /*=========================================================================
00004  * (c) Copyright 2002-2007, GemStone Systems, Inc. All Rights Reserved.
00005  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00006  *========================================================================
00007  */
00008 
00013 #include "gfcpp_globals.hpp"
00014 #include "Serializable.hpp"
00015 #include "VectorT.hpp"
00016 
00017 namespace gemfire {
00018 
00019 typedef SerializablePtr CacheablePtr;
00020 typedef Serializable Cacheable;
00021 
00022 typedef VectorT < CacheablePtr > VectorOfCacheable;
00023 
00024 template <typename TVALUE>
00025 inline CacheablePtr createValue( const SharedPtr< TVALUE >& value )
00026 {
00027   return CacheablePtr( value );
00028 }
00029 
00030 template <typename TVALUE>
00031 inline CacheablePtr createValue( const TVALUE* value )
00032 {
00033   return createValueArr( value );
00034 }
00035 
00036 } //namespace gemfire
00037 
00038 #endif //ifndef __GEMFIRE_CACHEABLE_H__

GemFire C++ Cache API Documentation