V8 Project
v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator Class Reference
+ Collaboration diagram for v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator:

Classes

class  EndMarker
 

Public Member Functions

 StringCharacterStreamIterator (StringCharacterStream *stream)
 
uint16_t operator* () const
 
void operator++ ()
 
bool operator== (EndMarker const &) const
 
bool operator!= (EndMarker const &m) const
 

Private Attributes

StringCharacterStream *const stream_
 
uint16_t current_
 
bool end_
 

Detailed Description

Definition at line 33 of file conversions.cc.

Constructor & Destructor Documentation

◆ StringCharacterStreamIterator()

v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::StringCharacterStreamIterator ( StringCharacterStream stream)
explicit

Definition at line 51 of file conversions.cc.

52  : stream_(stream) {
53  ++(*this);
54 }

Member Function Documentation

◆ operator!=()

bool v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::operator!= ( EndMarker const &  m) const
inline

◆ operator*()

uint16_t v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::operator* ( ) const

Definition at line 56 of file conversions.cc.

References current_.

◆ operator++()

void v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::operator++ ( )

Definition at line 61 of file conversions.cc.

61  {
62  end_ = !stream_->HasMore();
63  if (!end_) {
65  }
66 }

References current_, end_, v8::internal::StringCharacterStream::GetNext(), v8::internal::StringCharacterStream::HasMore(), and stream_.

+ Here is the call graph for this function:

◆ operator==()

bool v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::operator== ( EndMarker const &  ) const
inline

Definition at line 41 of file conversions.cc.

41 { return end_; }

Member Data Documentation

◆ current_

uint16_t v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::current_
private

Definition at line 46 of file conversions.cc.

Referenced by operator*(), and operator++().

◆ end_

bool v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::end_
private

Definition at line 47 of file conversions.cc.

Referenced by operator++().

◆ stream_

StringCharacterStream* const v8::internal::anonymous_namespace{conversions.cc}::StringCharacterStreamIterator::stream_
private

Definition at line 45 of file conversions.cc.

Referenced by operator++().


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