Mangrove
The C++ Object Document Mapper for MongoDB
Public Member Functions | List of all members
mangrove::isolated_expr< Expr > Class Template Reference

An expression that wraps another expression and adds an $isolated operator. More...

#include <query_builder.hpp>

Public Member Functions

void append_to_bson (bsoncxx::builder::core &builder, bool wrap=false) const
 Appends this query to a BSON core builder, with $isolated set as an extra field. More...
 
 operator bsoncxx::document::view_or_value () const
 Converts this query to BSON, in the form {$isolated: 1, <underlying expression="" bson>="">}.
 

Detailed Description

template<typename Expr>
class mangrove::isolated_expr< Expr >

An expression that wraps another expression and adds an $isolated operator.

Member Function Documentation

template<typename Expr >
void mangrove::isolated_expr< Expr >::append_to_bson ( bsoncxx::builder::core &  builder,
bool  wrap = false 
) const
inline

Appends this query to a BSON core builder, with $isolated set as an extra field.

Parameters
builderA basic BSON core builder.
Whetherto wrap this expression inside a document.

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