MongoDB C++ Driver  legacy-1.1.2
Public Member Functions | List of all members
mongo::WriteOperationBase Class Reference
+ Inheritance diagram for mongo::WriteOperationBase:

Public Member Functions

virtual void setBulkIndex (size_t index)
 Sets the index of this WriteOperation in the context of a larger bulk operation.
 
virtual size_t getBulkIndex () const
 The index of this WriteOperation in the context of a larger bulk operation.
 
- Public Member Functions inherited from mongo::WriteOperation
virtual WriteOpType operationType () const =0
 Returns the MongoDB wire protocol operation type represented by an instance of this particular write operation.
 
virtual const char * batchName () const =0
 Returns the name for a batch of this type of write operation.
 
virtual int incrementalSize () const =0
 Returns the incremental size (in bytes) required to add this write operation to a batch.
 
virtual void startRequest (const std::string &ns, bool ordered, BufBuilder *builder) const =0
 Appends the preamble for a wire protocol message into the supplied BufBuilder. More...
 
virtual void appendSelfToRequest (BufBuilder *builder) const =0
 Appends a document (or documents in the case of update) which describe the write operation represented by an instance of this class into the supplied BufBuilder. More...
 
virtual void startCommand (const std::string &ns, BSONObjBuilder *command) const =0
 Appends the preamble for a write command into the supplied BSONObjBuilder. More...
 
virtual void appendSelfToCommand (BSONArrayBuilder *batch) const =0
 Appends a single document that describes the write operation represented by an instance of this class into the supplied BSONArrayBuilder. More...
 
virtual void appendSelfToBSONObj (BSONObjBuilder *obj) const =0
 Appends the data represented by an instance of this class to a BSONObjBuilder.
 

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