CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
CLRX::FastOutputBuffer Class Reference

fast and direct output buffer More...

#include <InputOutput.h>

Inheritance diagram for CLRX::FastOutputBuffer:
CLRX::NonCopyableAndNonMovable

Public Member Functions

 FastOutputBuffer (cxuint _bufSize, std::ostream &output)
 constructor with inBufSize and output More...
 
 ~FastOutputBuffer ()
 destructor
 
uint64_t getWritten () const
 get written bytes number
 
void flush ()
 write output buffer
 
char * reserve (cxuint toReserve)
 reserve and write out buffer if too few free bytes in buffer
 
void forward (cxuint toWrite)
 finish reservation and go forward
 
void write (size_t length, const char *string)
 write sequence of characters
 
void writeString (const char *string)
 write string
 
template<typename T >
void writeObject (const T &t)
 write object of type T
 
template<typename T >
void writeArray (size_t size, const T *t)
 write array of objects
 
void put (char c)
 put single character
 
void fill (size_t num, char c)
 fill (put num c character)
 
const std::ostream & getOStream () const
 get output stream
 
std::ostream & getOStream ()
 get output stream
 
- Public Member Functions inherited from CLRX::NonCopyableAndNonMovable
 NonCopyableAndNonMovable ()
 constructor
 
 NonCopyableAndNonMovable (const NonCopyableAndNonMovable &)=delete
 copy-constructor
 
 NonCopyableAndNonMovable (NonCopyableAndNonMovable &&)=delete
 move-constructor
 
NonCopyableAndNonMovableoperator= (const NonCopyableAndNonMovable &)=delete
 copy-assignment
 
NonCopyableAndNonMovableoperator= (NonCopyableAndNonMovable &&)=delete
 move-asignment
 

Detailed Description

fast and direct output buffer

Constructor & Destructor Documentation

CLRX::FastOutputBuffer::FastOutputBuffer ( cxuint  _bufSize,
std::ostream &  output 
)
inline

constructor with inBufSize and output

Parameters
_bufSizemax buffer size
outputoutput stream

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