VMware GemFire Native Client Cache Reference  9.0.6
CacheableObjectArray.hpp
Go to the documentation of this file.
1 #ifndef _GEMFIRE_CACHEABLEOBJECTARRAY_HPP_
2 #define _GEMFIRE_CACHEABLEOBJECTARRAY_HPP_
3 
4 
5 /*=========================================================================
6  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
7  * This product is protected by U.S. and international copyright
8  * and intellectual property laws. Pivotal products are covered by
9  * more patents listed at http://www.pivotal.io/patents.
10  *=========================================================================
11  */
12 
13 #include "gfcpp_globals.hpp"
14 #include "gf_types.hpp"
15 #include "VectorT.hpp"
16 
17 
21 namespace gemfire
22 {
23 
29  : public Cacheable, public _VectorOfCacheable
30  {
31  public:
32 
34 
38  virtual void toData( DataOutput& output ) const;
39 
43  virtual Serializable* fromData( DataInput& input );
44 
49  {
50  return new CacheableObjectArray( );
51  }
52 
58  virtual int32_t classId( ) const;
59 
65  virtual int8_t typeId( ) const;
66 
71  {
73  }
74 
79  inline static CacheableObjectArrayPtr create( int32_t n )
80  {
82  }
83 
84  virtual uint32_t objectSize( ) const;
85 
86 
87  protected:
88 
91  : _VectorOfCacheable( ) { }
93  inline CacheableObjectArray( int32_t n )
94  : _VectorOfCacheable( n ) { }
95 
96 
97  private:
98 
99  // never implemented.
100  CacheableObjectArray& operator = ( const CacheableObjectArray& other );
102  };
103 
104 }
105 
106 
107 #endif // _GEMFIRE_CACHEABLEOBJECTARRAY_HPP_
CacheableObjectArray(int32_t n)
Create a vector with n elements allocated.
Definition: CacheableObjectArray.hpp:93
Vector template type class.
Definition: VectorT.hpp:24
Provide operations for writing primitive data values, byte arrays, strings, Serializable objects to a...
Definition: DataOutput.hpp:62
static CacheableObjectArrayPtr create()
Factory method for creating the default instance of CacheableObjectArray.
Definition: CacheableObjectArray.hpp:70
static Serializable * createDeserializable()
creation function for java Object[]
Definition: CacheableObjectArray.hpp:48
static CacheableObjectArrayPtr create(int32_t n)
Factory method for creating an instance of CacheableObjectArray with given size.
Definition: CacheableObjectArray.hpp:79
CacheableObjectArray()
Constructor, used for deserialization.
Definition: CacheableObjectArray.hpp:90
Implement an immutable Vector of Cacheable objects that can serve as a distributable object for cachi...
Definition: CacheableObjectArray.hpp:28
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
This abstract base class is the superclass of all user objects in the cache that can be serialized...
Definition: Serializable.hpp:39
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition: DataInput.hpp:44
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
Interface of an iterator for VectorT.
Definition: VectorT.hpp:32
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35

GemFire C++ Cache API Documentation