PuzzleSDK
SchedulerIssue17149类 参考

#include <SchedulerTest.h>

+ 类 SchedulerIssue17149 继承关系图:
+ SchedulerIssue17149 的协作图:

class  ClassA
 
class  ClassB
 

Public 成员函数

 CREATE_FUNC (SchedulerIssue17149)
 
 SchedulerIssue17149 ()
 
 ~SchedulerIssue17149 ()
 
virtual std::string title () const override
 
virtual std::string subtitle () const override
 
virtual void onEnter () override
 
virtual void update (float dt) override
 
- Public 成员函数 继承自 TestCase
 TestCase ()
 
 ~TestCase ()
 
virtual Type getTestType () const
 
virtual float getDuration () const
 
virtual std::string getExpectedOutput () const
 
virtual std::string getActualOutput () const
 
virtual void restartTestCallback (cocos2d::Ref *sender)
 
virtual void nextTestCallback (cocos2d::Ref *sender)
 
virtual void priorTestCallback (cocos2d::Ref *sender)
 
virtual void onBackCallback (cocos2d::Ref *sender)
 
void setTestSuite (TestSuite *testSuite)
 
TestSuitegetTestSuite () const
 
float getRunTime () const
 
void setTestCaseName (const std::string &name)
 
std::string getTestCaseName () const
 
const cocos2d::Label * getSubtitleLable () const
 
const cocos2d::MenuItemImage * getRestartTestItem () const
 

Private 属性

void * _memoryPool
 

额外继承的成员函数

- Public 类型 继承自 TestCase
enum class  Type { ROBUSTNESS , UNIT , GRAPHICAL_STATIC , MANUAL }
 
- Public 属性 继承自 TestCase
CC_CONSTRUCTOR_ACCESS __pad0__: virtual bool init() override
 
- Protected 属性 继承自 TestCase
cocos2d::MenuItemImage * _priorTestItem
 
cocos2d::MenuItemImage * _restartTestItem
 
cocos2d::MenuItemImage * _nextTestItem
 
cocos2d::Label * _titleLabel
 
cocos2d::Label * _subtitleLabel
 

详细描述

在文件 SchedulerTest.h378 行定义.

构造及析构函数说明

◆ SchedulerIssue17149()

SchedulerIssue17149::SchedulerIssue17149 ( )

在文件 SchedulerTest.cpp1317 行定义.

1318{
1319 _memoryPool = malloc(2018);
1320}

引用了 _memoryPool.

◆ ~SchedulerIssue17149()

SchedulerIssue17149::~SchedulerIssue17149 ( )

在文件 SchedulerTest.cpp1322 行定义.

1323{
1324 free(_memoryPool);
1325}

引用了 _memoryPool.

成员函数说明

◆ CREATE_FUNC()

SchedulerIssue17149::CREATE_FUNC ( SchedulerIssue17149  )

◆ onEnter()

void SchedulerIssue17149::onEnter ( )
overridevirtual

重载 TestCase .

在文件 SchedulerTest.cpp1337 行定义.

1338{
1340 scheduleUpdate();
1341}
virtual void onEnter() override
Definition: BaseTest.cpp:430

引用了 TestCase::onEnter().

+ 函数调用图:

◆ subtitle()

std::string SchedulerIssue17149::subtitle ( ) const
overridevirtual

重载 TestCase .

在文件 SchedulerTest.cpp1332 行定义.

1333{
1334 return "see console, result should be 'i'm ClassB: 456'";
1335}

◆ title()

std::string SchedulerIssue17149::title ( ) const
overridevirtual

重载 TestCase .

在文件 SchedulerTest.cpp1327 行定义.

1328{
1329 return "Issue #17149";
1330}

◆ update()

void SchedulerIssue17149::update ( float  dt)
overridevirtual

在文件 SchedulerTest.cpp1343 行定义.

1344{
1345 auto classa = new (_memoryPool) ClassA();
1346 CCLOG("Address one: %p", classa);
1347 Director::getInstance()->getScheduler()->scheduleUpdate(classa, 1, false);
1348 Director::getInstance()->getScheduler()->unscheduleUpdate(classa);
1349
1350 auto classb = new (_memoryPool) ClassB();
1351 CCLOG("Address one: %p", classb);
1352 Director::getInstance()->getScheduler()->scheduleUpdate(classb, 1, false);
1353
1354 unscheduleUpdate();
1355}

引用了 _memoryPool.

类成员变量说明

◆ _memoryPool

void* SchedulerIssue17149::_memoryPool
private

在文件 SchedulerTest.h414 行定义.

被这些函数引用 SchedulerIssue17149(), update() , 以及 ~SchedulerIssue17149().


该类的文档由以下文件生成: