Public Member Functions | Private Attributes

Pattern::QueueRaii Class Reference

This class implements RAII for a frontend::Queue. More...

#include <keyvalue/pattern/Pattern.h>

List of all members.

Public Member Functions

 QueueRaii (frontend::Queue &queue)
 Acquires resource (frontend::Queue).

Private Attributes

frontend::Queuequeue_

Detailed Description

This class implements RAII for a frontend::Queue.

By constructing an object type at the beginning of parse() we assure a commit-or-roolback semantics for the Queue and, thus, a strong exception safety guarantee for the parse() method.


Constructor & Destructor Documentation

QueueRaii ( frontend::Queue queue  ) 

Acquires resource (frontend::Queue).

Parameters:
queue : frontend::Queue which will have the commit-or-rollback semantics.