VMware GemFire Native C++ Reference  9.1
RegionEntry.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_REGIONENTRY_H_
4 #define GEODE_REGIONENTRY_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 "CacheableKey.hpp"
26 #include "CacheStatistics.hpp"
27 
32 namespace apache {
33 namespace geode {
34 namespace client {
35 
36 class RegionInternal;
37 
52  public:
57  CacheableKeyPtr getKey();
58 
64  CacheablePtr getValue();
65 
70  void getRegion(RegionPtr& region);
71 
78  void getStatistics(CacheStatisticsPtr& csptr);
79 
87  bool isDestroyed() const;
91  virtual ~RegionEntry();
92 
93  private:
98  RegionEntry(const RegionPtr& region, const CacheableKeyPtr& key,
99  const CacheablePtr& value);
100  RegionPtr m_region;
101  CacheableKeyPtr m_key;
102  CacheablePtr m_value;
103  CacheStatisticsPtr m_statistics;
104  bool m_destroyed;
105  friend class RegionInternal;
106 };
107 } // namespace client
108 } // namespace geode
109 } // namespace apache
110 
111 #endif // GEODE_REGIONENTRY_H_
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
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:40
An object in a Region that represents an entry, i.e., a key-value pair.
Definition: RegionEntry.hpp:51
This namespace contains all the Geode C++ API classes, enumerations and globals.

Pivotal GemFire C++ Cache API Documentation