ALPSCore reference
|
#include <format.hpp>
Static Public Member Functions | |
static T & | get (std::ios_base &stream, T init=T()) |
static void | remove (std::ios_base &stream) |
Static Protected Member Functions | |
static void | callback (std::ios::event event, std::ios_base &stream, int xindex) |
static T *& | get_format (std::ios_base &stream) |
static int | get_xindex () |
Allows the addition of custom formatting state to I/O stream objects.
This class allows to store one instance of type T
with each std::ios_base
instance via the get()
method. This in turn can be used to implement user-defined I/O manipulators that modify these format flags and are then used by stream operations with user-defined objects.
Definition at line 14 of file format.hpp.
|
inlinestaticprotected |
Manages lifecycle using the std::ios_base call-back mechanism
Definition at line 130 of file format.hpp.
|
inlinestatic |
Returns reference to format object for stream, creating it if needed.
Definition at line 110 of file format.hpp.
|
inlinestaticprotected |
Definition at line 158 of file format.hpp.
|
inlinestaticprotected |
Definition at line 163 of file format.hpp.
|
inlinestatic |
Removes format object from stream
Definition at line 123 of file format.hpp.