VMware GemFire Native C++ Reference  9.1
CacheableUndefined.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_CACHEABLEUNDEFINED_H_
4 #define GEODE_CACHEABLEUNDEFINED_H_
5 
6 /*
7  * Licensed to the Apache Software Foundation (ASF) under one or more
8  * contributor license agreements. See the NOTICE file distributed with
9  * this work for additional information regarding copyright ownership.
10  * The ASF licenses this file to You under the Apache License, Version 2.0
11  * (the "License"); you may not use this file except in compliance with
12  * the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 
23 #include "geode_globals.hpp"
24 #include "geode_types.hpp"
25 #include "Cacheable.hpp"
26 
30 namespace apache {
31 namespace geode {
32 namespace client {
33 
38  public:
42  virtual void toData(DataOutput& output) const;
43 
47  virtual Serializable* fromData(DataInput& input);
48 
53  return new CacheableUndefined();
54  }
55 
61  virtual int32_t classId() const;
62 
68  virtual int8_t typeId() const;
69 
74  virtual int8_t DSFID() const;
75 
79  inline static CacheableUndefinedPtr create() {
81  }
82 
83  virtual uint32_t objectSize() const;
84 
85  protected:
87  inline CacheableUndefined() {}
88 
89  private:
90  // never implemented.
91  CacheableUndefined& operator=(const CacheableUndefined& other);
93 };
94 } // namespace client
95 } // namespace geode
96 } // namespace apache
97 
98 #endif // GEODE_CACHEABLEUNDEFINED_H_
Encapsulate an undefined query result.
Definition: CacheableUndefined.hpp:37
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
static Serializable * createDeserializable()
creation function for undefined query result
Definition: CacheableUndefined.hpp:52
Provide operations for writing primitive data values, byte arrays, strings, Serializable objects to a...
Definition: DataOutput.hpp:74
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:52
static CacheableUndefinedPtr create()
Factory method for creating the default instance of CacheableUndefined.
Definition: CacheableUndefined.hpp:79
This abstract base class is the superclass of all user objects in the cache that can be serialized...
Definition: Serializable.hpp:53
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition: DataInput.hpp:56
CacheableUndefined()
Constructor, used for deserialization.
Definition: CacheableUndefined.hpp:87
This namespace contains all the Geode C++ API classes, enumerations and globals.

Pivotal GemFire C++ Cache API Documentation