载入中...
搜索中...
未找到
eve::event::Variant结构体 参考

#include <Event.h>

Public 类型

enum class  Type { Nil , Int , String , Ptr }
 

静态 Public 成员函数

static Variant makeNil ()
 Constructs a nil variant.
 
static Variant makeInt (int64_t v)
 Constructs an integer variant.
 
static Variant makeString (std::string v)
 Constructs a string variant (takes ownership of the value).
 
static Variant makePtr (void *v)
 Constructs a pointer variant (borrowed, not owned).
 

Public 属性

Type type = Type::Nil
 
int64_t i = 0
 
std::string s
 
void * p = nullptr
 

详细描述

在文件 Event.h19 行定义.

成员枚举类型说明

◆ Type

enum class eve::event::Variant::Type
strong
枚举值
Nil 
Int 
String 
Ptr 

在文件 Event.h20 行定义.

成员函数说明

◆ makeInt()

static Variant eve::event::Variant::makeInt ( int64_t  v)
inlinestatic

Constructs an integer variant.

在文件 Event.h29 行定义.

引用了 Int, type, v , 以及 x.

被这些函数引用 eve::physics::World3D::emitContactEvents(), eve::physics::World::onBeginContact() , 以及 eve::physics::World::onEndContact().

◆ makeNil()

static Variant eve::event::Variant::makeNil ( )
inlinestatic

Constructs a nil variant.

在文件 Event.h27 行定义.

◆ makePtr()

static Variant eve::event::Variant::makePtr ( void *  v)
inlinestatic

Constructs a pointer variant (borrowed, not owned).

在文件 Event.h43 行定义.

引用了 Ptr, type, v , 以及 x.

◆ makeString()

static Variant eve::event::Variant::makeString ( std::string  v)
inlinestatic

Constructs a string variant (takes ownership of the value).

在文件 Event.h36 行定义.

引用了 String, type, v , 以及 x.

被这些函数引用 eve::event::Event::pushData().

类成员变量说明

◆ i

int64_t eve::event::Variant::i = 0

在文件 Event.h22 行定义.

◆ p

void* eve::event::Variant::p = nullptr

在文件 Event.h24 行定义.

◆ s

std::string eve::event::Variant::s

在文件 Event.h23 行定义.

◆ type

Type eve::event::Variant::type = Type::Nil

在文件 Event.h21 行定义.

被这些函数引用 makeInt(), makePtr() , 以及 makeString().


该结构体的文档由以下文件生成: