library of assembled shared sources

http://lass.cocamware.com

lass::io::ProxyOStream::Lock Class Reference

#include <proxy_o_stream.h>

Collaboration diagram for lass::io::ProxyOStream::Lock:

Collaboration graph
[legend]

Public Member Functions

 Lock (ProxyOStream *iProxy, TMask iMessage)
 Lock (or don't lock if iProxy == 0) a proxy.
 Lock (const ProxyOStream::Lock &iOther)
 The copy constructor passes the lock on the proxy to the copy.
 ~Lock ()
 On the end of the lock, flush the proxy.
template<typename T >
Lockoperator<< (const T &iIn)
 distribute input over all destination streams.
Lockoperator<< (std::ostream &(*iIn)(std::ostream &))
 distribute std manipulators over all destination streams.

Private Member Functions

Lockoperator= (const Lock &)

Private Attributes

ProxyOStreamproxy_
TMask messageMask_

Detailed Description

Definition at line 103 of file proxy_o_stream.h.


Constructor & Destructor Documentation

lass::io::ProxyOStream::Lock::Lock ( ProxyOStream iProxy,
TMask  iMessage 
) [inline]

Lock (or don't lock if iProxy == 0) a proxy.

Definition at line 108 of file proxy_o_stream.h.

lass::io::ProxyOStream::Lock::Lock ( const ProxyOStream::Lock iOther  )  [inline]

The copy constructor passes the lock on the proxy to the copy.

The pointer is passed to the copy, so that this copy can continue the job of the original. Since the original looses it's proxy pointer, it won't flush it on destruction.

Warning:
DO NOT COPY LOCKS YOURSELF. It's no good, well, unless you know what you're doing. But be warned: it might not do what you expect.

Definition at line 117 of file proxy_o_stream.h.

References messageMask_, and proxy_.

lass::io::ProxyOStream::Lock::~Lock (  )  [inline]

On the end of the lock, flush the proxy.

Definition at line 125 of file proxy_o_stream.h.


Member Function Documentation

template<typename T >
Lock& lass::io::ProxyOStream::Lock::operator<< ( const T &  iIn  )  [inline]

distribute input over all destination streams.

Only distribute input if it's still locking a proxy (i.e. if proxy_ != Null).

Definition at line 137 of file proxy_o_stream.h.

References lass::util::checkMaskedSome(), and LASS_ENFORCE_STREAM.

Lock& lass::io::ProxyOStream::Lock::operator<< ( std::ostream &(*)(std::ostream &)  iIn  )  [inline]

distribute std manipulators over all destination streams.

Only distribute input if it's still locking a proxy (i.e. if proxy_ != Null).

Definition at line 156 of file proxy_o_stream.h.

References lass::util::checkMaskedSome(), and LASS_ENFORCE_STREAM.

Lock& lass::io::ProxyOStream::Lock::operator= ( const Lock  )  [inline, private]

Definition at line 173 of file proxy_o_stream.h.

References LASS_ASSERT.


Field Documentation

Definition at line 174 of file proxy_o_stream.h.

Referenced by Lock().

Definition at line 175 of file proxy_o_stream.h.

Referenced by Lock().


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

Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo