载入中...
搜索中...
未找到
eve::growth::GrowthEventLog类 参考

Append-only event log cleared explicitly (economy-style). 更多...

#include <GrowthEvents.h>

Public 成员函数

void push (GrowthEvent event)
 
void clear ()
 
int count () const
 
const GrowthEvent * at (int index) const
 Borrowed event at index, or nullptr when out of range. @ownership Borrowed from this log; caller must not free it. @lifetime Valid until the next mutating call on this log (push/clear). @nullable Yes when index is out of range.
 

静态 Public 成员函数

static const char * kindName (GrowthEventKind kind) noexcept
 Stable English spelling for an event kind.
 

详细描述

Append-only event log cleared explicitly (economy-style).

在文件 GrowthEvents.h 第 35 行定义.

成员函数说明

◆ at()

const GrowthEvent * eve::growth::GrowthEventLog::at ( int  index) const

Borrowed event at index, or nullptr when out of range. @ownership Borrowed from this log; caller must not free it. @lifetime Valid until the next mutating call on this log (push/clear). @nullable Yes when index is out of range.

在文件 GrowthEvents.cpp 第 11 行定义.

引用了 count() , 以及 index.

被这些函数引用 eve::growth::Growth::eventDetail(), eve::growth::Growth::eventKind(), eve::growth::Growth::eventOrganismId() , 以及 eve::growth::Growth::eventSpeciesId().

◆ clear()

void eve::growth::GrowthEventLog::clear ( )

在文件 GrowthEvents.cpp 第 7 行定义.

被这些函数引用 eve::growth::Growth::clearEvents() , 以及 eve::growth::GrowthWorld::resetForTests().

◆ count()

int eve::growth::GrowthEventLog::count ( ) const

在文件 GrowthEvents.cpp 第 9 行定义.

被这些函数引用 at() , 以及 eve::growth::Growth::eventCount().

◆ kindName()

const char * eve::growth::GrowthEventLog::kindName ( GrowthEventKind  kind)
staticnoexcept

Stable English spelling for an event kind.

返回
Non-owning pointer to a static string literal; never null. @ownership Caller does not own the pointer and must not free it. @lifetime Valid for the process lifetime (static storage).

在文件 GrowthEvents.cpp 第 16 行定义.

引用了 eve::growth::Bred, eve::growth::Cured, eve::growth::Died, eve::growth::Diseased, eve::growth::Fed, eve::growth::Fertilized, eve::growth::Harvested, kind, eve::growth::Matured, eve::growth::Offspring, eve::growth::Produced, eve::growth::StageChanged , 以及 eve::growth::Watered.

被这些函数引用 eve::growth::Growth::eventKind().

◆ push()

void eve::growth::GrowthEventLog::push ( GrowthEvent  event)

在文件 GrowthEvents.cpp 第 5 行定义.


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