/export/rook1/users/build/gfcppsancout64/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 
00016 namespace gemfire {
00017 
00018 typedef SerializablePtr CacheablePtr;
00019 typedef Serializable Cacheable;
00020 
00021 template <typename TVALUE>
00022 inline CacheablePtr createValue( const SharedPtr< TVALUE >& value )
00023 {
00024   return CacheablePtr( value );
00025 }
00026 
00027 template <typename TVALUE>
00028 inline CacheablePtr createValue( const TVALUE* value )
00029 {
00030   return createValueArr( value );
00031 }
00032 
00033 } //namespace gemfire
00034 
00035 #endif //ifndef __GEMFIRE_CACHEABLE_H__

GemFire C++ Cache API Documentation