29 #ifndef _NetworkFunction_H__ 30 #define _NetworkFunction_H__ 46 #if defined(ORXONOX_COMPILER_GCC) && defined(ORXONOX_ARCH_32) 49 static constexpr
unsigned int MAX_FUNCTION_POINTER_SIZE = 16;
50 #endif //ORXONOX_COMPILER_GCC 57 #if defined(ORXONOX_COMPILER_GCC) && defined(ORXONOX_ARCH_32) 59 return pointer[0] < b.
pointer[0];
60 else if (pointer[1] != b.
pointer[1])
61 return pointer[1] < b.
pointer[1];
66 return pointer[0] < b.
pointer[0];
67 else if (pointer[1] != b.
pointer[1])
68 return pointer[1] < b.
pointer[1];
69 else if (pointer[2] != b.
pointer[2])
70 return pointer[2] < b.
pointer[2];
71 else if (pointer[3] != b.
pointer[3])
72 return pointer[3] < b.
pointer[3];
88 void setNetworkID(uint32_t
id);
93 virtual bool call(uint32_t objectID)=0;
94 virtual bool call(uint32_t objectID,
const MultiType& mt1)=0;
116 virtual bool call(uint32_t objectID)
override{ (*this->functor_)();
return true; }
117 virtual bool call(uint32_t objectID,
const MultiType& mt1)
override{ (*this->functor_)(mt1);
return true; }
118 virtual bool call(uint32_t objectID,
const MultiType& mt1,
const MultiType& mt2)
override{ (*this->functor_)(mt1, mt2);
return true; }
144 virtual inline bool call(uint32_t objectID)
override Definition: NetworkFunction.h:83
virtual bool call(uint32_t objectID, const MultiType &mt1) override
Definition: NetworkFunction.h:154
const NetworkFunctionPointer & getPointer() const
Definition: NetworkFunction.h:91
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2) override
Definition: NetworkFunction.h:118
Shared library macros, enums, constants and forward declarations for the network library ...
uint32_t pointer[MAX_FUNCTION_POINTER_INTS]
Definition: NetworkFunction.h:54
static Synchronisable * getSynchronisable(uint32_t objectID_)
This function looks up the objectID_ in the objectMap_ and returns a pointer to the right Synchronisa...
Definition: Synchronisable.cc:218
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3, const MultiType &mt4, const MultiType &mt5) override
Definition: NetworkFunction.h:194
std::string name_
Definition: NetworkFunction.h:102
Definition of orxonox::Functor and its specialized subclasses, as well as the createFunctor() functio...
NetworkFunctionStatic(const FunctorStaticPtr &functor, const std::string &name, const NetworkFunctionPointer &p)
Definition: NetworkFunction.h:110
NetworkMemberFunctionBase(const std::string &name, const NetworkFunctionPointer &p)
Definition: NetworkFunction.h:131
Definition: NetworkFunction.h:53
::std::string string
Definition: gtest-port.h:756
virtual bool call(uint32_t objectID, const MultiType &mt1) override
Definition: NetworkFunction.h:117
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3, const MultiType &mt4) override
Definition: NetworkFunction.h:120
virtual bool call(uint32_t objectID) override
Definition: NetworkFunction.h:144
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3) override
Definition: NetworkFunction.h:119
NetworkFunctionPointer pointer_
Definition: NetworkFunction.h:103
uint32_t getNetworkID() const
Definition: NetworkFunction.h:89
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3, const MultiType &mt4, const MultiType &mt5) override
Definition: NetworkFunction.h:121
virtual bool call(uint32_t objectID) override
Definition: NetworkFunction.h:116
bool operator<(const NetworkFunctionPointer &b) const
Definition: NetworkFunction.h:55
Definition: NetworkFunction.h:108
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3, const MultiType &mt4) override
Definition: NetworkFunction.h:184
static constexpr unsigned int MAX_FUNCTION_POINTER_SIZE
Definition: NetworkFunction.h:49
const std::string & getName() const
Definition: NetworkFunction.h:90
uint32_t networkID_
Definition: NetworkFunction.h:101
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _NetworkExport
Definition: NetworkPrereqs.h:59
FunctorMemberPtr< T > functor_
Definition: NetworkFunction.h:206
virtual ~NetworkFunctionBase()
Definition: NetworkFunction.h:86
The MultiType can hold a value of many possible types and convert them to other types.
Definition: MultiType.h:130
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3) override
Definition: NetworkFunction.h:174
Definition: NetworkFunction.h:129
std::shared_ptr< FunctorMember< void >> FunctorStaticPtr
Definition: FunctorPtr.h:60
std::shared_ptr< FunctorMember< T >> FunctorMemberPtr
Definition: FunctorPtr.h:59
virtual bool call(uint32_t objectID, const MultiType &mt1, const MultiType &mt2) override
Definition: NetworkFunction.h:164
static constexpr unsigned int MAX_FUNCTION_POINTER_INTS
Definition: NetworkFunction.h:51
NetworkMemberFunction(const FunctorMemberPtr< T > &functor, const std::string &name, const NetworkFunctionPointer &p)
Definition: NetworkFunction.h:139
Definition: NetworkFunction.h:137
internal::String name_
Definition: gtest.cc:2289
FunctorStaticPtr functor_
Definition: NetworkFunction.h:124