Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | List of all members
dart::VariableIndex Class Reference

#include <scopes.h>

Public Member Functions

 VariableIndex (int value=kInvalidIndex)
 
bool operator== (const VariableIndex &other) const
 
bool IsValid () const
 
int value () const
 

Static Public Attributes

static constexpr int kInvalidIndex = std::numeric_limits<int>::min()
 

Detailed Description

Definition at line 57 of file scopes.h.

Constructor & Destructor Documentation

◆ VariableIndex()

dart::VariableIndex::VariableIndex ( int  value = kInvalidIndex)
inlineexplicit

Definition at line 61 of file scopes.h.

61: value_(value) {}
int value() const
Definition: scopes.h:69

Member Function Documentation

◆ IsValid()

bool dart::VariableIndex::IsValid ( ) const
inline

Definition at line 67 of file scopes.h.

67{ return value_ != kInvalidIndex; }
static constexpr int kInvalidIndex
Definition: scopes.h:59

◆ operator==()

bool dart::VariableIndex::operator== ( const VariableIndex other) const
inline

Definition at line 63 of file scopes.h.

63 {
64 return value_ == other.value_;
65 }

◆ value()

int dart::VariableIndex::value ( ) const
inline

Definition at line 69 of file scopes.h.

69{ return value_; }

Member Data Documentation

◆ kInvalidIndex

constexpr int dart::VariableIndex::kInvalidIndex = std::numeric_limits<int>::min()
staticconstexpr

Definition at line 59 of file scopes.h.


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