17INLINE StreamWrapperBase::
82INLINE IStreamWrapper::
83IStreamWrapper(std::istream *stream,
bool owns_pointer) :
85 _owns_pointer(owns_pointer)
92INLINE IStreamWrapper::
93IStreamWrapper(std::istream &stream) :
114 result = _istream->get();
123INLINE OStreamWrapper::
124OStreamWrapper(std::ostream *stream,
bool owns_pointer,
bool stringstream_hack) :
126 _owns_pointer(owns_pointer)
128, _stringstream_hack(stringstream_hack)
136INLINE OStreamWrapper::
137OStreamWrapper(std::ostream &stream) :
141, _stringstream_hack(false)
163 success = !_ostream->bad();
171INLINE StreamWrapper::
172StreamWrapper(std::iostream *stream,
bool owns_pointer,
bool stringstream_hack) :
176 _owns_pointer(owns_pointer)
183INLINE StreamWrapper::
184StreamWrapper(std::iostream &stream) :
static bool dec(Integer &var)
Atomically decrements the indicated variable and returns true if the new value is nonzero,...
static void inc(Integer &var)
Atomically increments the indicated variable.
This class provides a locking wrapper around an arbitrary istream pointer.
get_istream
Returns the istream this object is wrapping.
int get()
Atomically reads a single character from the stream.
This class provides a locking wrapper around an arbitrary ostream pointer.
get_ostream
Returns the ostream this object is wrapping.
bool put(char c)
Atomically writes a single character to the stream.
bool unref() const
Decrements the reference count.
void release()
Releases the internal lock.
void acquire()
Acquires the internal lock.
void ref() const
Increments the reference count.
get_iostream
Returns the iostream this object is wrapping.