QDP++
QDP::MapObjectNull< K, V > Class Template Reference

A wrapper over maps. More...

#include <qdp_map_obj_null.h>

Inheritance diagram for QDP::MapObjectNull< K, V >:
QDP::MapObject< K, V >

Public Member Functions

 MapObjectNull ()
 Default constructor.
 ~MapObjectNull ()
 Destructor.
int insert (const K &key, const V &val)
 Insert.
int get (const K &key, V &val) const
 Accessor.
void flush ()
 Flush out state of object.
bool exist (const K &key) const
 Exists?
unsigned int size () const
 The number of elements.
void keys (std::vector< K > &_keys) const
 Dump keys.
int insertUserdata (const std::string &user_data)
 Insert user data into the metadata database.
int getUserdata (std::string &user_data) const
 Get user user data from the metadata database.
Public Member Functions inherited from QDP::MapObject< K, V >
virtual ~MapObject ()
 Virtual Destructor.

Detailed Description

template<typename K, typename V>
class QDP::MapObjectNull< K, V >

A wrapper over maps.

Definition at line 18 of file qdp_map_obj_null.h.

Constructor & Destructor Documentation

◆ MapObjectNull()

template<typename K, typename V>
QDP::MapObjectNull< K, V >::MapObjectNull ( )
inline

Default constructor.

Definition at line 22 of file qdp_map_obj_null.h.

◆ ~MapObjectNull()

template<typename K, typename V>
QDP::MapObjectNull< K, V >::~MapObjectNull ( )
inline

Destructor.

Definition at line 25 of file qdp_map_obj_null.h.

Member Function Documentation

◆ exist()

template<typename K, typename V>
bool QDP::MapObjectNull< K, V >::exist ( const K & key) const
inlinevirtual

Exists?

Implements QDP::MapObject< K, V >.

Definition at line 37 of file qdp_map_obj_null.h.

◆ flush()

template<typename K, typename V>
void QDP::MapObjectNull< K, V >::flush ( )
inlinevirtual

Flush out state of object.

Implements QDP::MapObject< K, V >.

Definition at line 34 of file qdp_map_obj_null.h.

◆ get()

template<typename K, typename V>
int QDP::MapObjectNull< K, V >::get ( const K & key,
V & val ) const
inlinevirtual

Accessor.

Implements QDP::MapObject< K, V >.

Definition at line 31 of file qdp_map_obj_null.h.

◆ getUserdata()

template<typename K, typename V>
int QDP::MapObjectNull< K, V >::getUserdata ( std::string & user_data) const
inlinevirtual

Get user user data from the metadata database.

Implements QDP::MapObject< K, V >.

Definition at line 49 of file qdp_map_obj_null.h.

◆ insert()

template<typename K, typename V>
int QDP::MapObjectNull< K, V >::insert ( const K & key,
const V & val )
inlinevirtual

Insert.

Implements QDP::MapObject< K, V >.

Definition at line 28 of file qdp_map_obj_null.h.

◆ insertUserdata()

template<typename K, typename V>
int QDP::MapObjectNull< K, V >::insertUserdata ( const std::string & user_data)
inlinevirtual

Insert user data into the metadata database.

Implements QDP::MapObject< K, V >.

Definition at line 46 of file qdp_map_obj_null.h.

◆ keys()

template<typename K, typename V>
void QDP::MapObjectNull< K, V >::keys ( std::vector< K > & _keys) const
inlinevirtual

Dump keys.

Implements QDP::MapObject< K, V >.

Definition at line 43 of file qdp_map_obj_null.h.

◆ size()

template<typename K, typename V>
unsigned int QDP::MapObjectNull< K, V >::size ( ) const
inlinevirtual

The number of elements.

Implements QDP::MapObject< K, V >.

Definition at line 40 of file qdp_map_obj_null.h.


The documentation for this class was generated from the following file: