Types

#include "types.tcc"

Get a struct formatted representation of the type of a value.

Type encoding examples.

type

encoding

description

bool

?

Boolean.

unsigned long int

L

Unsigned integer.

char const*

s

String.

Tuple<int, signed char, unsigned long>

ibL

Tuple (no internal structure).

Object<Object<char, int>, unsigned long>

((ci)L)

Object (internal structure is preserved).

Vector<int>

[i]

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.

  • tTuple.

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.

template<class T>
void rpcTypeOf(Stream &io, T*)

Type encoding.

Parameters
  • io – Stream.

  • - – Value.

inline void hardwareDefs(Stream &io)

Determine endianness and type of size_t.

Parameters

io – Stream.