From: g0dil Date: Wed, 15 Apr 2009 22:32:31 +0000 (+0000) Subject: Utils: Implement SENF_FNP etc macros X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=97b74f74397997f7ea02eaa7f44689aa0eb99839;p=senf.git Utils: Implement SENF_FNP etc macros git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1191 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Utils/membind.hh b/Utils/membind.hh index c2baf86..0f03365 100644 --- a/Utils/membind.hh +++ b/Utils/membind.hh @@ -57,6 +57,15 @@ ///////////////////////////////hh.p//////////////////////////////////////// +#define SENF_FNP(ret, fn, args) \ + static_cast(& fn) + +#define SENF_MEMFNP(ret, cls, fn, args) \ + static_cast(& cls :: fn) + +#define SENF_MEMBINDFNP(ret, cls, fn, args) \ + senf::membind(SENF_MEMFNP(ret, cls, fn, args), this) + namespace senf { #define scOBTYPE T * diff --git a/senf.dict b/senf.dict index bb7d7e5..2059271 100644 --- a/senf.dict +++ b/senf.dict @@ -47,6 +47,8 @@ BaseParser berlios BerliOS bitfield +bitrate +bitrates bool boostfn broadcastEnabled @@ -102,6 +104,7 @@ CXXFLAGS daemonization DatagramSection DataPacket +datarate dd de DEBUGINFO @@ -136,6 +139,7 @@ EmulatedTransmitter EmulatedWLANInterface enableChecksum endcode +enddot endhtmlonly endif endl @@ -194,6 +198,8 @@ fixvariant flurgle fno fokus +fontname +fontsize foo fooCallback FooException @@ -218,6 +224,10 @@ GREPackeType GREParser hangup HangupException +HardwareInterface +HardwareWLANInterface +headport +Helvetica hh hideinitializer Hmm @@ -256,6 +266,8 @@ inputSocket Institut int InterfaceAPI +interfaceapi +InterfaceDecorator IntervalTimer IntField InvalidPacketChainException @@ -309,12 +321,16 @@ MACAddress MACAddressParser mainpage manualparse +maxTxPowerIndex +Mbit mcAddMembership mcAddr mcDropMembership mcLoop mem memberfn +Mhz +min mixin mkdir mld @@ -346,6 +362,7 @@ MyWLANInterface namespace nbar nc +nChannels netcat NetEmu NETwork @@ -363,6 +380,7 @@ noinit noop noroute nothrow +nParameters nrOfRecords nrOfSources nUsing @@ -408,6 +426,7 @@ PacketTypeBase PacketTypeMixin PacketTypeNotRegistered param +parameterIndex ParseArray parsecollection ParseCommandInfo @@ -436,9 +455,11 @@ PassiveQueue PassiveSink PassiveSocketWriter PassiveSource +pencolor png POPD POSIX +powerIndexValue ppi pre prev @@ -452,6 +473,8 @@ py QueryPacket QueueingDiscipline queueSize +rankdir +ranksep RateFilter rateFilter ratefilter @@ -461,6 +484,7 @@ RawINetProtocol RawV rdynamic ReadInfo +ReceiverDecorator refcount regex registerEvent @@ -473,8 +497,10 @@ repos rerference rfc RFCs +RL RO RP +RSSI SafePacketParser SatCom Satelitenkommunikation @@ -539,6 +565,7 @@ SimpleVectorSizer SiteScope SizeParser skipline +SNR SocketAddress SocketHandle SocketProtocol @@ -590,6 +617,7 @@ todo tokenizes TokensRange tr +TransmitterDecorator TruncatedPacketException tt ttl @@ -606,6 +634,7 @@ udpWriter UInt UIntField UIntFieldParser +un Unhandled unicast uniquified @@ -638,6 +667,7 @@ WirelessInterface WirelessReceiver WirelessTransmitter WLAN +WLANController Wno Woverloaded WrapException