Ostreamable< Derived, charT, traits > Class Template Reference

A base class that hooks up a derived class to the ostream i/o operation set. To give your class the ability to act like an ostream, derive from Ostreamble<Derived> and implement the ostreamable_helper(charT c) function that outputs a single character. More...

#include <streamable.h>

Inheritance diagram for Ostreamable< Derived, charT, traits >:
Inheritance graph
[legend]
Collaboration diagram for Ostreamable< Derived, charT, traits >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef OstreamableBuffer
< Derived, charT, traits > 
buf_type
typedef charT char_type
typedef traits_type::int_type int_type
typedef traits_type::off_type off_type
typedef traits_type::pos_type pos_type
typedef traits traits_type

Public Member Functions

 Ostreamable ()

Private Attributes

buf_type buf

Detailed Description

template<class Derived, class charT = char, class traits = std::char_traits<charT>>
class cxxtls::Ostreamable< Derived, charT, traits >

A base class that hooks up a derived class to the ostream i/o operation set. To give your class the ability to act like an ostream, derive from Ostreamble<Derived> and implement the ostreamable_helper(charT c) function that outputs a single character.

See also:
StreamableString

Definition at line 87 of file streamable.h.


Member Typedef Documentation

typedef OstreamableBuffer<Derived, charT, traits> buf_type

Definition at line 102 of file streamable.h.

typedef charT char_type

Definition at line 96 of file streamable.h.

typedef traits_type::int_type int_type

Definition at line 98 of file streamable.h.

typedef traits_type::off_type off_type

Definition at line 99 of file streamable.h.

typedef traits_type::pos_type pos_type

Definition at line 100 of file streamable.h.

typedef traits traits_type

Definition at line 97 of file streamable.h.


Constructor & Destructor Documentation

Ostreamable (  ) 

Definition at line 117 of file streamable.h.

Here is the call graph for this function:


Member Data Documentation

buf_type buf [private]

Definition at line 109 of file streamable.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 29 22:56:10 2012 for CXXUtilities by  doxygen 1.6.3