ircproxy  The Ultimate Cyborg

Increment Class Reference

#include <Counter.h>

Inheritance diagram for Increment:

List of all members.


Detailed Description

Helper object for class Counter.

This class increments/decrements a Counter object.

Definition at line 56 of file Counter.h.


Public Member Functions

 Increment (Counter &counter)
 Constructor; increment reference counter counter.
 ~Increment ()
 Destructor: decrement reference counter.

Private Attributes

CounterM_counter
 A reference to the underlying counter.

Constructor & Destructor Documentation

Increment::Increment ( Counter counter  )  [inline]

Constructor; increment reference counter counter.

Definition at line 61 of file Counter.h.

References Counter::M_counter, and M_counter.

00061 : M_counter(counter) { ++M_counter.M_counter; }

Increment::~Increment (  )  [inline]

Destructor: decrement reference counter.

Definition at line 63 of file Counter.h.

References Counter::M_counter, and M_counter.

00063 { --M_counter.M_counter; }


Member Data Documentation

A reference to the underlying counter.

Definition at line 58 of file Counter.h.

Referenced by Increment(), and ~Increment().


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

Copyright © 2005-2007 Carlo Wood.  All rights reserved.