Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

iomanip.hh File Reference

Declarations of the iomanip class and related functions. More...

Include dependency graph for iomanip.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  vcsn
namespace  vcsn::misc

Classes

struct  iomanip
 Base class for IO manipulators. More...

Functions

template<class T>
void pword_delete (std::ios_base::event ev, std::ios_base &io, int idx)
 Delete memory associated with a stream upon its destruction.


Detailed Description

Declarations of the iomanip class and related functions.

See also:
vcsn::misc::iomanip.
Author:
Thomas Claveirole <thomas.claveirole@lrde.epita.fr>

Definition in file iomanip.hh.


Function Documentation

void pword_delete std::ios_base::event  ev,
std::ios_base &  io,
int  idx
 

Delete memory associated with a stream upon its destruction.

Some manipulators allocate memory and use the internal extensible array to store pointers to the allocated zone. Upon the stream's destruction, the memory must be freed to avoid memory leaks.

This function is a generic callback that will perform such a destruction. idx is used as an index in the internal extensible array to an element of type T*. When an erase_event is received, the element idx refers to in the stream is deleted.

Parameters:
T Type of the pointed element.
  • ev IO event.
  • io Related stream.
  • idx Index in the internal extensible array of a pointer to delete.
See also:
iomanip
Author:
Thomas Claveirole <thomas.claveirole@lrde.epita.fr>

Definition at line 59 of file iomanip.hxx.


Generated on Sun Jul 30 21:11:25 2006 for Vaucanson by  doxygen 1.3.9.1