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

Expression that updates field using the $bit operator, which does bitwise operations using a mask. 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 as an expression '$bit: { <field>: { <and|or|xor>: <int> } }'. More...
 

Detailed Description

template<typename NvpT, typename Integer>
class mangrove::bit_update_expr< NvpT, Integer >

Expression that updates field using the $bit operator, which does bitwise operations using a mask.

Template Parameters
NvpTThe name-value-pair type corresponding to a field
IntegerThe integral type used as a bit mask

Member Function Documentation

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

Appends this query to a BSON core builder as an expression '$bit: { <field>: { <and|or|xor>: <int> } }'.

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

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