Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JNullStream Class Reference

Streaming of input. More...

#include <JNullStream.hh>

Inheritance diagram for JLANG::JNullStream:
JLANG::JNullStreamBuffer

Public Member Functions

 JNullStream ()
 Default constructor.
 
void close ()
 Close stream.
 

Protected Types

typedef std::streambuf::traits_type traits
 
typedef traits::int_type int_type
 
typedef std::streamsize streamsize
 

Protected Member Functions

virtual int_type underflow ()
 Check underflow.
 
virtual int_type overflow (int_type c)
 Check overflow.
 

Static Protected Member Functions

static const JNullStreamBuffergetInstance ()
 Get reference to unique instance of this class object.
 

Detailed Description

Streaming of input.

Definition at line 23 of file JNullStream.hh.

Member Typedef Documentation

◆ traits

std::streambuf::traits_type JLANG::JNullStreamBuffer::traits
inherited

Definition at line 27 of file JNullStreamBuffer.hh.

◆ int_type

traits::int_type JLANG::JNullStreamBuffer::int_type
inherited

Definition at line 28 of file JNullStreamBuffer.hh.

◆ streamsize

std::streamsize JLANG::JNullStreamBuffer::streamsize
inherited

Definition at line 29 of file JNullStreamBuffer.hh.

Constructor & Destructor Documentation

◆ JNullStream()

JLANG::JNullStream::JNullStream ( )
inline

Default constructor.

Definition at line 32 of file JNullStream.hh.

32 :
34 std::istream(this),
35 std::ostream(this)
36 {}
JNullStreamBuffer()
Default constructor.

Member Function Documentation

◆ close()

void JLANG::JNullStream::close ( )
inline

Close stream.

This method does nothing.

Definition at line 43 of file JNullStream.hh.

44 {}

◆ getInstance()

static const JNullStreamBuffer & JLANG::JNullStreamBuffer::getInstance ( )
inlinestaticinherited

Get reference to unique instance of this class object.

Returns
reference to this class object

Definition at line 44 of file JNullStreamBuffer.hh.

45 {
46 static const JNullStreamBuffer null;
47
48 return null;
49 }
static JNullStream null
Null I/O stream.

◆ underflow()

virtual int_type JLANG::JNullStreamBuffer::underflow ( )
inlinevirtualinherited

Check underflow.

This method reads nothing.

Returns
0

Definition at line 58 of file JNullStreamBuffer.hh.

59 {
60 return EOF;
61 }

◆ overflow()

virtual int_type JLANG::JNullStreamBuffer::overflow ( int_type c)
inlinevirtualinherited

Check overflow.

This method writes nothing.

Parameters
ccharacter
Returns
c

Definition at line 71 of file JNullStreamBuffer.hh.

72 {
73 return c;
74 }

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