Orxonox
0.0.5 Codename: Arcturus
|
Functions to serialise pointers to objects that inherit from Synchronisable. More...
#include "network/NetworkPrereqs.h"
#include <loki/TypeTraits.h>
#include "util/Serialise.h"
#include "core/CorePrereqs.h"
Go to the source code of this file.
Namespaces | |
orxonox | |
Die Wagnis Klasse hat die folgenden Aufgaben: | |
Functions | |
template<class T > | |
bool | orxonox::checkEquality (T *&variable, uint8_t *mem) |
checks whether the objectID of the variable is the same as in the bytestream More... | |
template<class T > | |
bool | orxonox::checkEquality (const StrongPtr< T > &variable, uint8_t *mem) |
checks whether the objectID of the variable is the same as in the bytestream More... | |
template<class T > | |
bool | orxonox::checkEquality (const WeakPtr< T > &variable, uint8_t *mem) |
checks whether the objectID of the variable is the same as in the bytestream More... | |
template<class T > | |
void | orxonox::loadAndIncrease (T *&variable, uint8_t *&mem) |
reads the objectID of a pointer out of the bytestream and increases the mem pointer More... | |
template<class T > | |
void | orxonox::loadAndIncrease (const StrongPtr< T > &variable, uint8_t *&mem) |
reads the objectID of a pointer out of the bytestream and increases the mem pointer More... | |
template<class T > | |
void | orxonox::loadAndIncrease (const WeakPtr< T > &variable, uint8_t *&mem) |
reads the objectID of a pointer out of the bytestream and increases the mem pointer More... | |
template<class T > | |
uint32_t | orxonox::returnSize (T *&variable) |
returns the size of the objectID needed to synchronise the pointer More... | |
template<class T > | |
uint32_t | orxonox::returnSize (const StrongPtr< T > &) |
returns the size of the objectID needed to synchronise the pointer More... | |
template<class T > | |
uint32_t | orxonox::returnSize (const WeakPtr< T > &variable) |
returns the size of the objectID needed to synchronise the pointer More... | |
template<class T > | |
void | orxonox::saveAndIncrease (T *&variable, uint8_t *&mem) |
saves the objectID of a pointer into the bytestream and increases the mem pointer More... | |
template<class T > | |
void | orxonox::saveAndIncrease (const StrongPtr< T > &variable, uint8_t *&mem) |
saves the objectID of a pointer into the bytestream and increases the mem pointer More... | |
template<class T > | |
void | orxonox::saveAndIncrease (const WeakPtr< T > &variable, uint8_t *&mem) |
saves the objectID of a pointer into the bytestream and increases the mem pointer More... | |
Functions to serialise pointers to objects that inherit from Synchronisable.