VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Contains a set of (key, value) pair properties with key being the name of the property; value, the value of the property. More...
Inherits DataSerializablePrimitive.
Public Member Functions | |
void | addAll (const std::shared_ptr< Properties > &other) |
Add the contents of other to this instance, replacing any existing values with those from other. More... | |
std::shared_ptr< Cacheable > | find (const std::shared_ptr< CacheableKey > &key) |
Return the value for the given CacheableKey , or nullptr if not found. More... | |
std::shared_ptr< CacheableString > | find (const std::string &key) |
Return the value for the given key, or nullptr if not found. More... | |
void | foreach (Visitor &visitor) const |
Execute the Visitor's visit( const char* key, const char* value ) method for each entry in the collection. More... | |
size_t | getSize () const |
Return the number of entries in the collection. More... | |
void | insert (const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Cacheable > &value) |
Add or update Cacheable value for CacheableKey. More... | |
void | insert (std::string key, const int value) |
Add or update the int value for key. More... | |
void | insert (std::string key, std::string value) |
Add or update the string value for key. More... | |
void | load (const std::string &fileName) |
Read property values from a file, overriding what is currently in the properties object. More... | |
void | remove (const std::shared_ptr< CacheableKey > &key) |
Remove the CacheableKey from the collection. More... | |
void | remove (const std::string &key) |
Remove the key from the collection. More... | |
Static Public Member Functions | |
static std::shared_ptr< Properties > | create () |
Factory method, returns an empty collection. More... | |
static std::shared_ptr< Serializable > | createDeserializable () |
Return an empty instance for deserialization. More... | |
Contains a set of (key, value) pair properties with key being the name of the property; value, the value of the property.
void apache::geode::client::Properties::addAll | ( | const std::shared_ptr< Properties > & | other | ) |
Add the contents of other to this instance, replacing any existing values with those from other.
|
static |
Factory method, returns an empty collection.
|
static |
Return an empty instance for deserialization.
std::shared_ptr<Cacheable> apache::geode::client::Properties::find | ( | const std::shared_ptr< CacheableKey > & | key | ) |
Return the value for the given CacheableKey
, or nullptr if not found.
NullPointerException | if the key is nullptr |
std::shared_ptr<CacheableString> apache::geode::client::Properties::find | ( | const std::string & | key | ) |
Return the value for the given key, or nullptr if not found.
NullPointerException | if the key is null |
void apache::geode::client::Properties::foreach | ( | Visitor & | visitor | ) | const |
Execute the Visitor's visit( const char* key, const char* value )
method for each entry in the collection.
size_t apache::geode::client::Properties::getSize | ( | ) | const |
Return the number of entries in the collection.
void apache::geode::client::Properties::insert | ( | const std::shared_ptr< CacheableKey > & | key, |
const std::shared_ptr< Cacheable > & | value | ||
) |
Add or update Cacheable value for CacheableKey.
NullPointerException | if the key is nullptr |
void apache::geode::client::Properties::insert | ( | std::string | key, |
const int | value | ||
) |
Add or update the int value for key.
NullPointerException | if the key is null |
void apache::geode::client::Properties::insert | ( | std::string | key, |
std::string | value | ||
) |
Add or update the string value for key.
NullPointerException | if the key is null |
void apache::geode::client::Properties::load | ( | const std::string & | fileName | ) |
Read property values from a file, overriding what is currently in the properties object.
void apache::geode::client::Properties::remove | ( | const std::shared_ptr< CacheableKey > & | key | ) |
Remove the CacheableKey
from the collection.
NullPointerException | if the key is nullptr |
void apache::geode::client::Properties::remove | ( | const std::string & | key | ) |
Remove the key from the collection.
NullPointerException | if the key is null |