csp::SizedChannelBufferFactoryImpl< DATA_TYPE, BUFFER_TYPE > Class Template Reference
[Channel Buffers]

Inheritance diagram for csp::SizedChannelBufferFactoryImpl< DATA_TYPE, BUFFER_TYPE >:

csp::ChannelBufferFactory< DATA_TYPE > List of all members.

Detailed Description

template<typename DATA_TYPE, typename BUFFER_TYPE>
class csp::SizedChannelBufferFactoryImpl< DATA_TYPE, BUFFER_TYPE >

A default implementation of ChannelBufferFactory for use with buffers that have constructors that take a size argument.

See also:
FIFOBuffer::Factory


Public Member Functions

virtual ChannelBuffer< DATA_TYPE > * createBuffer () const
 Returns a new instance of BUFFER_TYPE using a constructor that takes an integer size argument.
 SizedChannelBufferFactoryImpl (unsigned _size)
 Creates a buffer factory that will create buffers of the specified size.


Constructor & Destructor Documentation

template<typename DATA_TYPE, typename BUFFER_TYPE>
csp::SizedChannelBufferFactoryImpl< DATA_TYPE, BUFFER_TYPE >::SizedChannelBufferFactoryImpl ( unsigned  _size  )  [inline]

Creates a buffer factory that will create buffers of the specified size.

Parameters:
_size The size argument to pass to the constructor of new instances of BUFFER_TYPE


Member Function Documentation

template<typename DATA_TYPE, typename BUFFER_TYPE>
virtual ChannelBuffer<DATA_TYPE>* csp::SizedChannelBufferFactoryImpl< DATA_TYPE, BUFFER_TYPE >::createBuffer (  )  const [inline, virtual]

Returns a new instance of BUFFER_TYPE using a constructor that takes an integer size argument.

Implements csp::ChannelBufferFactory< DATA_TYPE >.


Generated on Mon Aug 20 12:24:29 2007 for C++CSP2 by  doxygen 1.4.7