Orxonox  0.0.5 Codename: Arcturus
Classes | Namespaces | Macros | Typedefs | Functions
NetworkFunctionIncludes.h File Reference
#include "NetworkPrereqs.h"
#include <boost/preprocessor/cat.hpp>
#include "NetworkFunction.h"
#include "core/module/StaticallyInitializedInstance.h"

Go to the source code of this file.

Classes

class  orxonox::StaticallyInitializedNetworkFunction
 

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Macros

#define registerMemberNetworkFunction(class, function)
 
#define registerStaticNetworkFunction(functionPointer)
 

Typedefs

typedef StaticallyInitializedNetworkFunction orxonox::SI_NF
 

Functions

template<class PT >
void orxonox::callMemberNetworkFunction (PT ptr, uint32_t objectID, uint32_t clientID, const MultiType &mt1=MultiType::Null, const MultiType &mt2=MultiType::Null, const MultiType &mt3=MultiType::Null, const MultiType &mt4=MultiType::Null, const MultiType &mt5=MultiType::Null)
 
template<class PT >
void orxonox::callStaticNetworkFunction (PT ptr, uint32_t clientID, const MultiType &mt1=MultiType::Null, const MultiType &mt2=MultiType::Null, const MultiType &mt3=MultiType::Null, const MultiType &mt4=MultiType::Null, const MultiType &mt5=MultiType::Null)
 
template<class PT >
void orxonox::copyPtr (PT ptr, NetworkFunctionPointer &destptr)
 
uint32_t orxonox::getNetworkIdForPointer (const NetworkFunctionPointer &pointer)
 
template<class T , class PT >
NetworkFunctionBase * orxonox::registerMemberNetworkFunctionFct (PT ptr, const std::string &name)
 
template<class PT >
NetworkFunctionBase * orxonox::registerStaticNetworkFunctionFct (PT ptr, const std::string &name)
 

Macro Definition Documentation

#define registerMemberNetworkFunction (   class,
  function 
)
Value:
static orxonox::NetworkFunctionBase& BOOST_PP_CAT( NETWORK_FUNCTION_##class, __UNIQUE_NUMBER__ ) \
= (new orxonox::SI_NF(orxonox::registerMemberNetworkFunctionFct<class>( &class::function, #class "_" #function)))->getFunction()
Definition: NetworkFunction.h:83
#define __UNIQUE_NUMBER__
Definition: OrxonoxConfig.h:129
StaticallyInitializedNetworkFunction SI_NF
Definition: NetworkFunctionIncludes.h:68
#define registerStaticNetworkFunction (   functionPointer)
Value:
static orxonox::NetworkFunctionBase& BOOST_PP_CAT( NETWORK_FUNCTION_, __UNIQUE_NUMBER__ ) \
= (new orxonox::SI_NF(orxonox::registerStaticNetworkFunctionFct( functionPointer, #functionPointer )))->getFunction()
Definition: NetworkFunction.h:83
#define __UNIQUE_NUMBER__
Definition: OrxonoxConfig.h:129
StaticallyInitializedNetworkFunction SI_NF
Definition: NetworkFunctionIncludes.h:68
NetworkFunctionBase * registerStaticNetworkFunctionFct(PT ptr, const std::string &name)
Definition: NetworkFunctionIncludes.h:71