CMS 3D CMS Logo

lat::IOBuffer Class Reference

Buffer for I/O operations. More...

#include <Iguana/Utilities/classlib/iobase/IOBuffer.h>

List of all members.

Public Member Functions

voiddata (void) const
 Return a pointer to the beginning of the buffer's data area.
 IOBuffer (const void *data, IOSize length)
 Construct a I/O buffer for writing.
 IOBuffer (void *data, IOSize length)
 Construct a I/O buffer for reading.
 IOBuffer (void)
 Construct a null I/O buffer.
IOSize size (void) const
 Return the buffer's size.

Private Attributes

voidm_data
IOSize m_length


Detailed Description

Buffer for I/O operations.

Definition at line 17 of file IOBuffer.h.


Constructor & Destructor Documentation

IOBuffer::IOBuffer ( void   )  [inline]

Construct a null I/O buffer.

Definition at line 38 of file IOBuffer.h.

00039     : m_data (0),
00040       m_length (0)
00041 {}

IOBuffer::IOBuffer ( void data,
IOSize  length 
) [inline]

Construct a I/O buffer for reading.

Definition at line 45 of file IOBuffer.h.

00046     : m_data (data),
00047       m_length (length)
00048 {}

IOBuffer::IOBuffer ( const void data,
IOSize  length 
) [inline]

Construct a I/O buffer for writing.

Definition at line 52 of file IOBuffer.h.

00053     : m_data (const_cast<void *> (data)),
00054       m_length (length)
00055 {}


Member Function Documentation

void * IOBuffer::data ( void   )  const [inline]

Return a pointer to the beginning of the buffer's data area.

Definition at line 59 of file IOBuffer.h.

References IOBuffer::m_data.

00060 { return m_data; }

IOSize IOBuffer::size ( void   )  const [inline]

Return the buffer's size.

Definition at line 64 of file IOBuffer.h.

References IOBuffer::m_length.

00065 { return m_length; }


Member Data Documentation

void* lat::IOBuffer::m_data [private]

Definition at line 28 of file IOBuffer.h.

IOSize lat::IOBuffer::m_length [private]

Definition at line 29 of file IOBuffer.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:26 2009 for CMSSW by  doxygen 1.5.4