Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
ui::AXUniqueId Class Reference

#include <ax_unique_id.h>

Inheritance diagram for ui::AXUniqueId:
ui::AXTestSmallBankUniqueId

Public Member Functions

 AXUniqueId ()
 
virtual ~AXUniqueId ()
 
int32_t Get () const
 
 operator int32_t () const
 
bool operator== (const AXUniqueId &other) const
 
bool operator!= (const AXUniqueId &other) const
 

Protected Member Functions

 AXUniqueId (const int32_t max_id)
 

Detailed Description

Definition at line 25 of file ax_unique_id.h.

Constructor & Destructor Documentation

◆ AXUniqueId() [1/2]

ui::AXUniqueId::AXUniqueId ( )

Definition at line 21 of file ax_unique_id.cc.

21: AXUniqueId(INT32_MAX) {}

◆ ~AXUniqueId()

ui::AXUniqueId::~AXUniqueId ( )
virtual

Definition at line 25 of file ax_unique_id.cc.

25 {
26 g_assigned_ids.erase(id_);
27}

◆ AXUniqueId() [2/2]

ui::AXUniqueId::AXUniqueId ( const int32_t  max_id)
explicitprotected

Definition at line 23 of file ax_unique_id.cc.

23: id_(GetNextAXUniqueId(max_id)) {}

Member Function Documentation

◆ Get()

int32_t ui::AXUniqueId::Get ( ) const
inline

Definition at line 30 of file ax_unique_id.h.

30{ return id_; }

◆ operator int32_t()

ui::AXUniqueId::operator int32_t ( ) const
inline

Definition at line 31 of file ax_unique_id.h.

31{ return id_; }

◆ operator!=()

bool ui::AXUniqueId::operator!= ( const AXUniqueId other) const

Definition at line 33 of file ax_unique_id.cc.

33 {
34 return !(*this == other);
35}

◆ operator==()

bool ui::AXUniqueId::operator== ( const AXUniqueId other) const

Definition at line 29 of file ax_unique_id.cc.

29 {
30 return Get() == other.Get();
31}
int32_t Get() const
Definition: ax_unique_id.h:30

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