Nebula
Loading...
Searching...
No Matches
message.h File Reference
#include "ids/id.h"
#include "ids/idgenerationpool.h"
#include "util/delegate.h"
#include "util/hashtable.h"
#include "util/arrayallocator.h"
#include "util/string.h"
#include "util/stringatom.h"
#include "util/fourcc.h"

Go to the source code of this file.

Classes

struct  Game::MessageListenerId
 
struct  Game::MessageListener
 
class  Game::Message< MSG, TYPES >
 
struct  Game::Message< MSG, TYPES >::MessageQueueId
 

Namespaces

namespace  Game
 Game::EditorState.
 

Macros

#define __DeclareMsg(NAME, FOURCC, ...)
 
#define __RegisterMsg(MSGTYPE, FUNCTION)
 
#define __this_RegisterMsg(MSGTYPE, METHOD)
 

Typedefs

template<class T >
using UnqualifiedType = typename std::remove_const<typename std::remove_reference<T>::type>::type
 Removes const reference from T.
 

Macro Definition Documentation

◆ __DeclareMsg

#define __DeclareMsg ( NAME,
FOURCC,
... )
Value:
class NAME : public Game::Message<NAME, __VA_ARGS__> \
{ \
public: \
NAME() = delete; \
~NAME() = delete; \
\
constexpr static const char* GetName() \
{ \
return #NAME; \
}; \
\
constexpr static const uint GetFourCC() \
{ \
return FOURCC; \
}; \
};
Definition message.h:82
unsigned int uint
Definition types.h:31

◆ __RegisterMsg

#define __RegisterMsg ( MSGTYPE,
FUNCTION )
Value:
MSGTYPE::Register(MSGTYPE::Delegate::FromFunction<FUNCTION>())

◆ __this_RegisterMsg

#define __this_RegisterMsg ( MSGTYPE,
METHOD )
Value:
MSGTYPE::Register(MSGTYPE::Delegate::FromMethod<std::remove_pointer<decltype(this)>::type, &std::remove_pointer<decltype(this)>::type::METHOD>(this))

Typedef Documentation

◆ UnqualifiedType

template<class T >
using UnqualifiedType = typename std::remove_const<typename std::remove_reference<T>::type>::type

Removes const reference from T.