Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::AlternativeGenerationList Class Reference

Public Member Functions

 AlternativeGenerationList (intptr_t count)
 
AlternativeGenerationat (intptr_t i)
 

Detailed Description

Definition at line 2735 of file regexp.cc.

Constructor & Destructor Documentation

◆ AlternativeGenerationList()

dart::AlternativeGenerationList::AlternativeGenerationList ( intptr_t  count)
inlineexplicit

Definition at line 2737 of file regexp.cc.

2737 : count_(count) {
2738 ASSERT(count >= 0);
2739 if (count > kAFew) {
2740 excess_alt_gens_.reset(new AlternativeGeneration[count - kAFew]);
2741 }
2742 }
int count
#define ASSERT(E)

Member Function Documentation

◆ at()

AlternativeGeneration * dart::AlternativeGenerationList::at ( intptr_t  i)
inline

Definition at line 2744 of file regexp.cc.

2744 {
2745 ASSERT(0 <= i);
2746 ASSERT(i < count_);
2747 if (i < kAFew) {
2748 return &a_few_alt_gens_[i];
2749 }
2750 return &excess_alt_gens_[i - kAFew];
2751 }

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