6#ifndef __qdp_map_obj_h__
7#define __qdp_map_obj_h__
19 template<
typename K,
typename V>
33 bool exist(
const K& key)
const = 0;
37 int insert(
const K& key,
const V& val) = 0;
41 int get(
const K& key, V& val)
const = 0;
49 unsigned int size()
const = 0;
57 void keys(std::vector<K>& keys_)
const = 0;
virtual unsigned int size() const =0
Size of Map.
virtual void keys(std::vector< K > &keys_) const =0
virtual int insert(const K &key, const V &val)=0
Insert.
virtual int get(const K &key, V &val) const =0
Other accessor.
virtual ~MapObject()
Virtual Destructor.
virtual bool exist(const K &key) const =0
virtual void flush()=0
Flush out state of object.
virtual int insertUserdata(const std::string &user_data)=0
Insert user data into the metadata database.
virtual int getUserdata(std::string &user_data) const =0
Get user user data from the metadata database.
Yet another random number generator.
Primary include file for QDP.