All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Public Member Functions
mongo_ros::Query Class Reference

Represents a query to the db. More...

#include <metadata.h>

Inheritance diagram for mongo_ros::Query:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<class T >
Queryappend (const std::string &name, const T &val)
template<class T , class S >
Queryappend (const std::string &name, const T &rel, const S &val)
 Query ()
 Query (const Query &other)
template<class T >
 Query (const std::string &name, const T &val)
template<class T , class S >
 Query (const std::string &name, const S &rel, const T &val)

Detailed Description

Represents a query to the db.

Usage: Query q("foo", 42); Query q2("bar", LT, 24); // bar less than 24 Templated so you can have different types of values

Or: q = Query().append("foo", 42).append("bar", LT, 24);

Definition at line 102 of file metadata.h.


Constructor & Destructor Documentation

Definition at line 105 of file metadata.h.

mongo_ros::Query::Query ( const Query other) [inline]

Definition at line 108 of file metadata.h.

template<class T >
mongo_ros::Query::Query ( const std::string &  name,
const T &  val 
) [inline]

Definition at line 113 of file metadata.h.

template<class T , class S >
mongo_ros::Query::Query ( const std::string &  name,
const S &  rel,
const T &  val 
) [inline]

Definition at line 120 of file metadata.h.


Member Function Documentation

template<class T >
Query& mongo_ros::Query::append ( const std::string &  name,
const T &  val 
) [inline]

Definition at line 127 of file metadata.h.

template<class T , class S >
Query& mongo_ros::Query::append ( const std::string &  name,
const T &  rel,
const S &  val 
) [inline]

Definition at line 136 of file metadata.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


mongo_ros
Author(s): Bhaskara Marthi
autogenerated on Tue Sep 3 2013 13:20:12