Types¶
#include "types.tcc"
Get a struct formatted representation of the type of a value.
type |
encoding |
description |
---|---|---|
|
|
Boolean. |
|
|
Unsigned integer. |
|
|
String. |
|
|
Tuple (no internal structure). |
|
|
Object (internal structure is preserved). |
|
|
Vector. |
Functions¶
-
inline void rpcTypeOf(Stream &io, bool)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, char)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, signed char)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, unsigned char)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, short int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, unsigned short int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, long int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, unsigned long int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, long long int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, unsigned long long int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, float)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, String&)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, char*)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, char const*)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, int)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void rpcTypeOf(Stream &io, double)¶
Type encoding.
- Parameters
io – Stream.
- – Value.
-
template<class ...Ts>
void rpcTypeOf_(Stream &io, Tuple<Ts...> &t)¶ Get the types of all members of a Tuple.
- Parameters
io – Stream.
t – Tuple.
-
template<class T>
void rpcTypeOf(Stream &io, Vector<T>&)¶ Type encoding.
- Parameters
io – Stream.
- – Value.
-
template<class T, size_t n>
void rpcTypeOf(Stream &io, Array<T, n>&)¶ Type encoding.
- Parameters
io – Stream.
- – Value.
-
inline void hardwareDefs(Stream &io)¶
Determine endianness and type of
size_t
.- Parameters
io – Stream.