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 >
bool OSIsType (Array< T > *, 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 >
bool OSReadData (IObjectStreamIn &ioStream, Array< T > &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 >
void OSWriteDataType (IObjectStreamOut &ioStream, Array< T > *)
 
template<class T >
void OSWriteData (IObjectStreamOut &ioStream, const Array< T > &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:227
bool OSIsType(Array< T > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
Definition: ObjectStream.h:123
void OSWriteData(IObjectStreamOut &ioStream, const Array< T > &inArray)
Definition: ObjectStream.h:241
bool OSReadData(IObjectStreamIn &ioStream, Array< T > &inArray)
Define serialization templates for dynamic arrays.
Definition: ObjectStream.h:154
void OSWriteDataType(IObjectStreamOut &ioStream, Array< T > *)
Definition: ObjectStream.h:234
EOSDataType
Data type.
Definition: SerializableAttribute.h:15
Interface class for reading from an object stream.
Definition: ObjectStream.h:40
Interface class for writing to an object stream.
Definition: ObjectStream.h:74

Function Documentation

◆ OSIsType() [1/5]

template<class T >
bool OSIsType ( Array< T > *  ,
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 >
bool OSReadData ( IObjectStreamIn ioStream,
Array< T > &  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 >
void OSWriteData ( IObjectStreamOut ioStream,
const Array< T > &  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 >
void OSWriteDataType ( IObjectStreamOut ioStream,
Array< T > *   
)

◆ 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.