6#ifndef __qdp_map_obj_null_h__
7#define __qdp_map_obj_null_h__
17 template<
typename K,
typename V>
28 int insert(
const K& key,
const V& val) {
return 1;}
31 int get(
const K& key, V& val)
const {
return 1;}
37 bool exist(
const K& key)
const {
return false;}
40 unsigned int size()
const {
return 0;}
43 void keys(std::vector<K>& _keys)
const {}
void flush()
Flush out state of object.
int insertUserdata(const std::string &user_data)
Insert user data into the metadata database.
int get(const K &key, V &val) const
Accessor.
~MapObjectNull()
Destructor.
int getUserdata(std::string &user_data) const
Get user user data from the metadata database.
bool exist(const K &key) const
Exists?
MapObjectNull()
Default constructor.
void keys(std::vector< K > &_keys) const
Dump keys.
unsigned int size() const
The number of elements.
int insert(const K &key, const V &val)
Insert.
Yet another random number generator.