Namespaces | |
| namespace | ustl |
Defines | |
| #define | NOT_STREAMABLE(T) |
| Declares that T is not written to istream/ostream. | |
| #define | INTEGRAL_STREAMABLE(T) |
| Declares that T is to be written as is into binary streams. | |
| #define | STD_STREAMABLE(T) |
| Declares that T contains read, write, and stream_size methods. | |
| #define | CAST_STREAMABLE(T, TSUB) |
| Declares that T is to be cast into TSUB for streaming. | |
| #define | DECLARE_STD_STREAMABLE |
| Placed into a class it declares the methods required by STD_STREAMABLE. Syntactic sugar. | |
| #define | TEXT_STREAMABLE(T) |
| Declares T to be writable to text streams. Reading is not implemented because you should not do it. | |
Functions | |
| template<typename T> size_t | stream_size_of (T *) |
| Returns the size of the given object. Overloads for standard types are available. | |
| size_t | stream_size_of (int8_t) |
| size_t | stream_size_of (uint8_t) |
| size_t | stream_size_of (int16_t) |
| size_t | stream_size_of (uint16_t) |
| size_t | stream_size_of (int32_t) |
| size_t | stream_size_of (uint32_t) |
| size_t | stream_size_of (float) |
| size_t | stream_size_of (double) |
| size_t | stream_size_of (bool) |
| size_t | stream_size_of (wchar_t) |
| size_t | stream_size_of (long v) |
| size_t | stream_size_of (unsigned long v) |
|
|
Value: Declares that T is to be cast into TSUB for streaming.
|
|
|
Value: Placed into a class it declares the methods required by STD_STREAMABLE. Syntactic sugar.
|
|
|
Value: Declares that T is to be written as is into binary streams.
|
|
|
Value: Declares that T is not written to istream/ostream.
|
|
|
Value: Declares that T contains read, write, and stream_size methods.
|
|
|
Value: Declares T to be writable to text streams. Reading is not implemented because you should not do it.
|