Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Types | Public Member Functions | Data Fields | Static Public Attributes
test_streambuf< charT > Struct Template Reference
Inheritance diagram for test_streambuf< charT >:
Inheritance graph
[legend]
Collaboration diagram for test_streambuf< charT >:
Collaboration graph
[legend]

Public Types

typedef charT char_type
 
typedef std::char_traits< charT > traits_type
 
typedef std::basic_streambuf< char_type, traits_type > Streambuf
 
typedef Streambuf::int_type int_type
 
typedef Streambuf::off_type off_type
 
typedef Streambuf::pos_type pos_type
 

Public Member Functions

 test_streambuf (std::basic_ios< char_type, traits_type > *pstrm)
 
 test_streambuf (charT *buf, std::streamsize bufsize)
 
bool test (streambuf_failure) const
 
virtual Streambuf * setbuf (char_type *, std::streamsize)
 
virtual pos_type seekoff (off_type, std::ios_base::seekdir, std::ios_base::openmode)
 
virtual pos_type seekpos (pos_type, std::ios_base::openmode)
 
virtual std::streamsize showmanyc ()
 
virtual std::streamsize xsgetn (char_type *, std::streamsize)
 
virtual int_type underflow ()
 
virtual int_type uflow ()
 
virtual int_type overflow (int_type=traits_type::eof())
 
virtual int_type pbackfail (int_type=traits_type::eof())
 
virtual std::streamsize xsputn (const char_type *buf, std::streamsize bufsize)
 
virtual int sync ()
 

Data Fields

char_type * buf_
 
std::streamsize bufsize_
 
int ncalls_ [Sync+1]
 
streambuf_failure throws_
 
streambuf_failure fails_
 
std::basic_ios< char_type, traits_type > * pstrm_
 

Static Public Attributes

static int fail_when_ = 1
 

Detailed Description

template<class charT>
struct test_streambuf< charT >

Definition at line 56 of file 27.ostream.cpp.

Member Typedef Documentation

◆ char_type

template<class charT >
typedef charT test_streambuf< charT >::char_type

Definition at line 58 of file 27.ostream.cpp.

◆ int_type

template<class charT >
typedef Streambuf::int_type test_streambuf< charT >::int_type

Definition at line 61 of file 27.ostream.cpp.

◆ off_type

template<class charT >
typedef Streambuf::off_type test_streambuf< charT >::off_type

Definition at line 62 of file 27.ostream.cpp.

◆ pos_type

template<class charT >
typedef Streambuf::pos_type test_streambuf< charT >::pos_type

Definition at line 63 of file 27.ostream.cpp.

◆ Streambuf

template<class charT >
typedef std::basic_streambuf<char_type, traits_type> test_streambuf< charT >::Streambuf

Definition at line 60 of file 27.ostream.cpp.

◆ traits_type

template<class charT >
typedef std::char_traits<charT> test_streambuf< charT >::traits_type

Definition at line 59 of file 27.ostream.cpp.

Constructor & Destructor Documentation

◆ test_streambuf() [1/2]

template<class charT >
test_streambuf< charT >::test_streambuf ( std::basic_ios< char_type, traits_type > *  pstrm)
inline

Definition at line 65 of file 27.ostream.cpp.

◆ test_streambuf() [2/2]

template<class charT >
test_streambuf< charT >::test_streambuf ( charT *  buf,
std::streamsize  bufsize 
)
inline

Definition at line 73 of file 27.ostream.cpp.

Member Function Documentation

◆ overflow()

template<class charT >
test_streambuf< charT >::int_type test_streambuf< charT >::overflow ( int_type  c = traits_type::eof ())
virtual

Definition at line 177 of file 27.ostream.cpp.

◆ pbackfail()

template<class charT >
virtual int_type test_streambuf< charT >::pbackfail ( int_type  = traits_type::eof ())
inlinevirtual

Definition at line 122 of file 27.ostream.cpp.

◆ seekoff()

template<class charT >
virtual pos_type test_streambuf< charT >::seekoff ( off_type  ,
std::ios_base::seekdir  ,
std::ios_base::openmode   
)
inlinevirtual

Definition at line 87 of file 27.ostream.cpp.

◆ seekpos()

template<class charT >
virtual pos_type test_streambuf< charT >::seekpos ( pos_type  ,
std::ios_base::openmode   
)
inlinevirtual

Definition at line 93 of file 27.ostream.cpp.

◆ setbuf()

template<class charT >
virtual Streambuf * test_streambuf< charT >::setbuf ( char_type *  ,
std::streamsize   
)
inlinevirtual

Definition at line 82 of file 27.ostream.cpp.

◆ showmanyc()

template<class charT >
virtual std::streamsize test_streambuf< charT >::showmanyc ( )
inlinevirtual

Definition at line 98 of file 27.ostream.cpp.

◆ sync()

template<class charT >
virtual int test_streambuf< charT >::sync ( )
inlinevirtual

Definition at line 134 of file 27.ostream.cpp.

◆ test()

template<class charT >
bool test_streambuf< charT >::test ( streambuf_failure  which) const

Definition at line 164 of file 27.ostream.cpp.

◆ uflow()

template<class charT >
virtual int_type test_streambuf< charT >::uflow ( )
inlinevirtual

Definition at line 113 of file 27.ostream.cpp.

◆ underflow()

template<class charT >
virtual int_type test_streambuf< charT >::underflow ( )
inlinevirtual

Definition at line 108 of file 27.ostream.cpp.

◆ xsgetn()

template<class charT >
virtual std::streamsize test_streambuf< charT >::xsgetn ( char_type *  ,
std::streamsize   
)
inlinevirtual

Definition at line 103 of file 27.ostream.cpp.

◆ xsputn()

template<class charT >
virtual std::streamsize test_streambuf< charT >::xsputn ( const char_type *  buf,
std::streamsize  bufsize 
)
inlinevirtual

Definition at line 128 of file 27.ostream.cpp.

Field Documentation

◆ buf_

template<class charT >
char_type* test_streambuf< charT >::buf_

Definition at line 144 of file 27.ostream.cpp.

◆ bufsize_

template<class charT >
std::streamsize test_streambuf< charT >::bufsize_

Definition at line 145 of file 27.ostream.cpp.

◆ fail_when_

template<class charT >
int test_streambuf< charT >::fail_when_ = 1
static

Definition at line 154 of file 27.ostream.cpp.

◆ fails_

template<class charT >
streambuf_failure test_streambuf< charT >::fails_

Definition at line 150 of file 27.ostream.cpp.

◆ ncalls_

template<class charT >
int test_streambuf< charT >::ncalls_[Sync+1]

Definition at line 147 of file 27.ostream.cpp.

◆ pstrm_

template<class charT >
std::basic_ios<char_type, traits_type>* test_streambuf< charT >::pstrm_

Definition at line 152 of file 27.ostream.cpp.

◆ throws_

template<class charT >
streambuf_failure test_streambuf< charT >::throws_

Definition at line 149 of file 27.ostream.cpp.


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