Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Phx::BitVector::OutputStream Class Reference

A wrapper to BitVector that provides stream-style output (writing) semantics. More...

#include <PhxBitVector.h>

List of all members.

Public Member Functions

 OutputStream (BitVector *bitVector)
 Construct the OutputStream on top of the given bit vector.
BitVectorbitVector (void)
 Returns a reference to the bit vector that this stream was constructed on top of.
Bits writeIndex (void) const
 Gets the position in the bit vector to which the next field will be written.
void writeIndex (Bits writeIndex)
 Sets the position in the bit vector to which the next field will be written.
OutputStreamoperator<< (const String &s)
OutputStreamoperator<< (double s)
OutputStreamoperator<< (float s)
OutputStreamoperator<< (uint64_t s)
OutputStreamoperator<< (uint32_t s)
OutputStreamoperator<< (uint16_t s)
OutputStreamoperator<< (uint8_t s)
OutputStreamoperator<< (int64_t s)
OutputStreamoperator<< (int32_t s)
OutputStreamoperator<< (int16_t s)
OutputStreamoperator<< (int8_t s)
OutputStreamoperator<< (bool s)


Detailed Description

A wrapper to BitVector that provides stream-style output (writing) semantics.

Note that this stream is only valid for as long as the pointer to the bit vector supplied to its constructor is valid. The responsibility for the memory pointed to is the client's.


Constructor & Destructor Documentation

Phx::BitVector::OutputStream::OutputStream BitVector bitVector  )  [inline]
 

Construct the OutputStream on top of the given bit vector.

Parameters:
bitVector The BitVector to write data to.
Exceptions:
RangeException thrown if bitVector is 0.


Member Function Documentation

void Phx::BitVector::OutputStream::writeIndex Bits  writeIndex  )  [inline]
 

Sets the position in the bit vector to which the next field will be written.

Parameters:
writeIndex The new write index. Note that setting a write index which is beyond the end of the bit vector is legal -- all of the intervening bits will simply be set to 0.


The documentation for this class was generated from the following file:
Generated on Mon Jul 10 19:45:30 2006 for Phoenix OSFS by  doxygen 1.4.2