Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ObjectStream.h File Reference

Go to the source code of this file.

Classes

class  ObjectStream
 Base class for object stream input and output streams. More...
 
class  IObjectStreamIn
 Interface class for reading from an object stream. More...
 
class  IObjectStreamOut
 Interface class for writing to an object stream. More...
 

Macros

#define JPH_DECLARE_PRIMITIVE(name)
 

Functions

template<class T , class A >
bool OSIsType (Array< T, A > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
 
template<class T , uint N>
bool OSIsType (StaticArray< T, N > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
 
template<class T , uint N>
bool OSIsType (T(*)[N], int inArrayDepth, EOSDataType inDataType, const char *inClassName)
 
template<class T >
bool OSIsType (Ref< T > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
 
template<class T >
bool OSIsType (RefConst< T > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
 
template<class T , class A >
bool OSReadData (IObjectStreamIn &ioStream, Array< T, A > &inArray)
 Define serialization templates for dynamic arrays. More...
 
template<class T , uint N>
bool OSReadData (IObjectStreamIn &ioStream, StaticArray< T, N > &inArray)
 Define serialization templates for static arrays. More...
 
template<class T , uint N>
bool OSReadData (IObjectStreamIn &ioStream, T(&inArray)[N])
 Define serialization templates for C style arrays. More...
 
template<class T >
bool OSReadData (IObjectStreamIn &ioStream, Ref< T > &inRef)
 Define serialization templates for references. More...
 
template<class T >
bool OSReadData (IObjectStreamIn &ioStream, RefConst< T > &inRef)
 
template<class T , class A >
void OSWriteDataType (IObjectStreamOut &ioStream, Array< T, A > *)
 
template<class T , class A >
void OSWriteData (IObjectStreamOut &ioStream, const Array< T, A > &inArray)
 
template<class T , uint N>
void OSWriteDataType (IObjectStreamOut &ioStream, StaticArray< T, N > *)
 Define serialization templates for static arrays. More...
 
template<class T , uint N>
void OSWriteData (IObjectStreamOut &ioStream, const StaticArray< T, N > &inArray)
 
template<class T , uint N>
void OSWriteDataType (IObjectStreamOut &ioStream, T(*)[N])
 Define serialization templates for C style arrays. More...
 
template<class T , uint N>
void OSWriteData (IObjectStreamOut &ioStream, const T(&inArray)[N])
 
template<class T >
void OSWriteDataType (IObjectStreamOut &ioStream, Ref< T > *)
 Define serialization templates for references. More...
 
template<class T >
void OSWriteData (IObjectStreamOut &ioStream, const Ref< T > &inRef)
 
template<class T >
void OSWriteDataType (IObjectStreamOut &ioStream, RefConst< T > *)
 
template<class T >
void OSWriteData (IObjectStreamOut &ioStream, const RefConst< T > &inRef)
 

Macro Definition Documentation

◆ JPH_DECLARE_PRIMITIVE

#define JPH_DECLARE_PRIMITIVE (   name)
Value:
JPH_EXPORT bool OSIsType(name *, int inArrayDepth, EOSDataType inDataType, const char *inClassName); \
JPH_EXPORT bool OSReadData(IObjectStreamIn &ioStream, name &outPrimitive); \
JPH_EXPORT void OSWriteDataType(IObjectStreamOut &ioStream, name *); \
JPH_EXPORT void OSWriteData(IObjectStreamOut &ioStream, const name &inPrimitive);
#define JPH_EXPORT
Definition: Core.h:236
bool OSIsType(Array< T, A > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
Definition: ObjectStream.h:125
bool OSReadData(IObjectStreamIn &ioStream, Array< T, A > &inArray)
Define serialization templates for dynamic arrays.
Definition: ObjectStream.h:156
void OSWriteData(IObjectStreamOut &ioStream, const Array< T, A > &inArray)
Definition: ObjectStream.h:243
void OSWriteDataType(IObjectStreamOut &ioStream, Array< T, A > *)
Definition: ObjectStream.h:236
EOSDataType
Data type.
Definition: SerializableAttribute.h:17
Interface class for reading from an object stream.
Definition: ObjectStream.h:42
Interface class for writing to an object stream.
Definition: ObjectStream.h:76

Function Documentation

◆ OSIsType() [1/5]

template<class T , class A >
bool OSIsType ( Array< T, A > *  ,
int  inArrayDepth,
EOSDataType  inDataType,
const char *  inClassName 
)

◆ OSIsType() [2/5]

template<class T >
bool OSIsType ( Ref< T > *  ,
int  inArrayDepth,
EOSDataType  inDataType,
const char *  inClassName 
)

◆ OSIsType() [3/5]

template<class T >
bool OSIsType ( RefConst< T > *  ,
int  inArrayDepth,
EOSDataType  inDataType,
const char *  inClassName 
)

◆ OSIsType() [4/5]

template<class T , uint N>
bool OSIsType ( StaticArray< T, N > *  ,
int  inArrayDepth,
EOSDataType  inDataType,
const char *  inClassName 
)

◆ OSIsType() [5/5]

template<class T , uint N>
bool OSIsType ( T(*)  [N],
int  inArrayDepth,
EOSDataType  inDataType,
const char *  inClassName 
)

◆ OSReadData() [1/5]

template<class T , class A >
bool OSReadData ( IObjectStreamIn ioStream,
Array< T, A > &  inArray 
)

Define serialization templates for dynamic arrays.

◆ OSReadData() [2/5]

template<class T >
bool OSReadData ( IObjectStreamIn ioStream,
Ref< T > &  inRef 
)

Define serialization templates for references.

◆ OSReadData() [3/5]

template<class T >
bool OSReadData ( IObjectStreamIn ioStream,
RefConst< T > &  inRef 
)

◆ OSReadData() [4/5]

template<class T , uint N>
bool OSReadData ( IObjectStreamIn ioStream,
StaticArray< T, N > &  inArray 
)

Define serialization templates for static arrays.

◆ OSReadData() [5/5]

template<class T , uint N>
bool OSReadData ( IObjectStreamIn ioStream,
T(&)  inArray[N] 
)

Define serialization templates for C style arrays.

◆ OSWriteData() [1/5]

template<class T , class A >
void OSWriteData ( IObjectStreamOut ioStream,
const Array< T, A > &  inArray 
)

◆ OSWriteData() [2/5]

template<class T >
void OSWriteData ( IObjectStreamOut ioStream,
const Ref< T > &  inRef 
)

◆ OSWriteData() [3/5]

template<class T >
void OSWriteData ( IObjectStreamOut ioStream,
const RefConst< T > &  inRef 
)

◆ OSWriteData() [4/5]

template<class T , uint N>
void OSWriteData ( IObjectStreamOut ioStream,
const StaticArray< T, N > &  inArray 
)

◆ OSWriteData() [5/5]

template<class T , uint N>
void OSWriteData ( IObjectStreamOut ioStream,
const T(&)  inArray[N] 
)

◆ OSWriteDataType() [1/5]

template<class T , class A >
void OSWriteDataType ( IObjectStreamOut ioStream,
Array< T, A > *   
)

◆ OSWriteDataType() [2/5]

template<class T >
void OSWriteDataType ( IObjectStreamOut ioStream,
Ref< T > *   
)

Define serialization templates for references.

◆ OSWriteDataType() [3/5]

template<class T >
void OSWriteDataType ( IObjectStreamOut ioStream,
RefConst< T > *   
)

◆ OSWriteDataType() [4/5]

template<class T , uint N>
void OSWriteDataType ( IObjectStreamOut ioStream,
StaticArray< T, N > *   
)

Define serialization templates for static arrays.

◆ OSWriteDataType() [5/5]

template<class T , uint N>
void OSWriteDataType ( IObjectStreamOut ioStream,
T(*)  [N] 
)

Define serialization templates for C style arrays.