![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Wrapper around std::ostream. More...
#include <StreamWrapper.h>
Public Member Functions | |
| StreamOutWrapper (ostream &ioWrapped) | |
| Constructor. | |
| virtual void | WriteBytes (const void *inData, size_t inNumBytes) override |
| Write a string of bytes to the binary stream. | |
| virtual bool | IsFailed () const override |
| Returns true if there was an IO failure. | |
Public Member Functions inherited from StreamOut | |
| virtual | ~StreamOut ()=default |
| Virtual destructor. | |
| template<class T , std::enable_if_t< std::is_trivially_copyable_v< T >, bool > = true> | |
| void | Write (const T &inT) |
| Write a primitive (e.g. float, int, etc.) to the binary stream. | |
| template<class T , class A , std::enable_if_t< std::is_trivially_copyable_v< T >, bool > = true> | |
| void | Write (const Array< T, A > &inT) |
| Write a vector of primitives to the binary stream. | |
| template<class Type , class Traits , class Allocator > | |
| void | Write (const std::basic_string< Type, Traits, Allocator > &inString) |
| Write a string to the binary stream (writes the number of characters and then the characters) | |
| template<class T , class A , typename F > | |
| void | Write (const Array< T, A > &inT, const F &inWriteElement) |
| Write a vector of primitives to the binary stream using a custom write function. | |
| void | Write (const Vec3 &inVec) |
| Write a Vec3 (don't write W) | |
| void | Write (const DVec3 &inVec) |
| Write a DVec3 (don't write W) | |
| void | Write (const DMat44 &inVec) |
| Write a DMat44 (don't write W component of translation) | |
Public Member Functions inherited from NonCopyable | |
| NonCopyable ()=default | |
| NonCopyable (const NonCopyable &)=delete | |
| void | operator= (const NonCopyable &)=delete |
Wrapper around std::ostream.
|
inline |
Constructor.
|
inlineoverridevirtual |
Returns true if there was an IO failure.
Implements StreamOut.
|
inlineoverridevirtual |
Write a string of bytes to the binary stream.
Implements StreamOut.