Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
dart::CidRangeValue Struct Reference

#include <il.h>

Public Member Functions

 CidRangeValue (intptr_t cid_start_arg, intptr_t cid_end_arg)
 
 CidRangeValue (const CidRange &other)
 
bool IsSingleCid () const
 
bool Contains (intptr_t cid) const
 
int32_t Extent () const
 
intptr_t size () const
 
bool IsIllegalRange () const
 
bool Equals (const CidRangeValue &other) const
 

Public Attributes

intptr_t cid_start
 
intptr_t cid_end
 

Detailed Description

Definition at line 226 of file il.h.

Constructor & Destructor Documentation

◆ CidRangeValue() [1/2]

dart::CidRangeValue::CidRangeValue ( intptr_t  cid_start_arg,
intptr_t  cid_end_arg 
)
inline

Definition at line 227 of file il.h.

228 : cid_start(cid_start_arg), cid_end(cid_end_arg) {}
intptr_t cid_end
Definition: il.h:250
intptr_t cid_start
Definition: il.h:249

◆ CidRangeValue() [2/2]

dart::CidRangeValue::CidRangeValue ( const CidRange other)
inline

Definition at line 229 of file il.h.

230 : cid_start(other.cid_start), cid_end(other.cid_end) {}

Member Function Documentation

◆ Contains()

bool dart::CidRangeValue::Contains ( intptr_t  cid) const
inline

Definition at line 233 of file il.h.

233 {
234 return cid_start <= cid && cid <= cid_end;
235 }
const intptr_t cid

◆ Equals()

bool dart::CidRangeValue::Equals ( const CidRangeValue other) const
inline

Definition at line 245 of file il.h.

245 {
246 return cid_start == other.cid_start && cid_end == other.cid_end;
247 }

◆ Extent()

int32_t dart::CidRangeValue::Extent ( ) const
inline

Definition at line 236 of file il.h.

236{ return cid_end - cid_start; }

◆ IsIllegalRange()

bool dart::CidRangeValue::IsIllegalRange ( ) const
inline

Definition at line 241 of file il.h.

241 {
243 }
@ kIllegalCid
Definition: class_id.h:214

◆ IsSingleCid()

bool dart::CidRangeValue::IsSingleCid ( ) const
inline

Definition at line 232 of file il.h.

232{ return cid_start == cid_end; }

◆ size()

intptr_t dart::CidRangeValue::size ( ) const
inline

Definition at line 239 of file il.h.

239{ return cid_end - cid_start + 1; }

Member Data Documentation

◆ cid_end

intptr_t dart::CidRangeValue::cid_end

Definition at line 250 of file il.h.

◆ cid_start

intptr_t dart::CidRangeValue::cid_start

Definition at line 249 of file il.h.


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