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 instance of this class 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.

Generated on Sat Mar 20 15:08:31 2010 for KeyValue by  doxygen 1.6.1