Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::MessageQueue::Iterator Class Reference

#include <message.h>

Inheritance diagram for dart::MessageQueue::Iterator:
dart::ValueObject

Public Member Functions

 Iterator (const MessageQueue *queue)
 
virtual ~Iterator ()
 
void Reset (const MessageQueue *queue)
 
bool HasNext ()
 
MessageNext ()
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 176 of file message.h.

Constructor & Destructor Documentation

◆ Iterator()

dart::MessageQueue::Iterator::Iterator ( const MessageQueue queue)
explicit

Definition at line 168 of file message.cc.

168 : next_(nullptr) {
169 Reset(queue);
170}
void Reset(const MessageQueue *queue)
Definition: message.cc:174
VkQueue queue
Definition: main.cc:55

◆ ~Iterator()

dart::MessageQueue::Iterator::~Iterator ( )
virtual

Definition at line 172 of file message.cc.

172{}

Member Function Documentation

◆ HasNext()

bool dart::MessageQueue::Iterator::HasNext ( )

Definition at line 180 of file message.cc.

180 {
181 return next_ != nullptr;
182}

◆ Next()

Message * dart::MessageQueue::Iterator::Next ( )

Definition at line 185 of file message.cc.

185 {
186 Message* current = next_;
187 next_ = next_->next_;
188 return current;
189}

◆ Reset()

void dart::MessageQueue::Iterator::Reset ( const MessageQueue queue)

Definition at line 174 of file message.cc.

174 {
175 ASSERT(queue != nullptr);
176 next_ = queue->head_;
177}
#define ASSERT(E)

The documentation for this class was generated from the following files: