VMware GemFire Native C++ Reference  9.1
Delta.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_DELTA_H_
4 #define GEODE_DELTA_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 
27 #include "Cacheable.hpp"
28 #include "DataInput.hpp"
29 #include "DataOutput.hpp"
30 namespace apache {
31 namespace geode {
32 namespace client {
33 
46 class Delta {
47  public:
57  virtual bool hasDelta() = 0;
58 
66  virtual void toDelta(DataOutput& out) const = 0;
67 
79  virtual void fromDelta(DataInput& in) = 0;
80 
91  virtual DeltaPtr clone();
92 
93  virtual ~Delta() {}
94 };
95 } // namespace client
96 } // namespace geode
97 } // namespace apache
98 
99 #endif // GEODE_DELTA_H_
virtual void fromDelta(DataInput &in)=0
Reads in delta information to this object in a user-defined format.
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
This interface is used for delta propagation.
Definition: Delta.hpp:46
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
virtual bool hasDelta()=0
hasDelta( ) is invoked by Geode during Region::put( CacheableKeyPtr, CacheablePtr ) to determine if t...
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition: DataInput.hpp:56
virtual DeltaPtr clone()
Creates a copy of the object on which delta is to be applied via notification.
virtual void toDelta(DataOutput &out) const =0
Writes out delta information to out in a user-defined format.
This namespace contains all the Geode C++ API classes, enumerations and globals.

Pivotal GemFire C++ Cache API Documentation