v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::compiler::OptionalRef< TRef > Class Template Reference

#include <heap-refs.h>

Collaboration diagram for v8::internal::compiler::OptionalRef< TRef >:

Classes

class  ArrowOperatorHelper
 

Public Member Functions

 OptionalRef ()=default
 
 OptionalRef (std::nullopt_t)
 
template<typename SRef >
requires std::is_convertible_v<SRef*, TRef*>
V8_INLINE OptionalRef (OptionalRef< SRef > ref)
 
template<typename SRef >
requires std::is_convertible_v<SRef*, TRef*>
V8_INLINE OptionalRef (SRef ref)
 
constexpr bool has_value () const
 
constexpr operator bool () const
 
TRef value () const
 
TRef operator* () const
 
ArrowOperatorHelper operator-> () const
 
bool equals (OptionalRef other) const
 
size_t hash_value () const
 

Private Member Functions

 OptionalRef (ObjectData *data)
 

Private Attributes

ObjectDatadata_ = nullptr
 

Friends

template<typename SRef >
class OptionalRef
 

Detailed Description

template<typename TRef>
class v8::internal::compiler::OptionalRef< TRef >

Definition at line 304 of file heap-refs.h.

Constructor & Destructor Documentation

◆ OptionalRef() [1/5]

template<typename TRef >
v8::internal::compiler::OptionalRef< TRef >::OptionalRef ( )
default

◆ OptionalRef() [2/5]

template<typename TRef >
v8::internal::compiler::OptionalRef< TRef >::OptionalRef ( std::nullopt_t )
inline

Definition at line 325 of file heap-refs.h.

◆ OptionalRef() [3/5]

template<typename TRef >
template<typename SRef >
requires std::is_convertible_v<SRef*, TRef*>
V8_INLINE v8::internal::compiler::OptionalRef< TRef >::OptionalRef ( OptionalRef< SRef > ref)
inline

Definition at line 330 of file heap-refs.h.

◆ OptionalRef() [4/5]

template<typename TRef >
template<typename SRef >
requires std::is_convertible_v<SRef*, TRef*>
V8_INLINE v8::internal::compiler::OptionalRef< TRef >::OptionalRef ( SRef ref)
inline

Definition at line 337 of file heap-refs.h.

◆ OptionalRef() [5/5]

template<typename TRef >
v8::internal::compiler::OptionalRef< TRef >::OptionalRef ( ObjectData * data)
inlineexplicitprivate

Definition at line 360 of file heap-refs.h.

Member Function Documentation

◆ equals()

template<typename TRef >
bool v8::internal::compiler::OptionalRef< TRef >::equals ( OptionalRef< TRef > other) const
inline

Definition at line 353 of file heap-refs.h.

Here is the caller graph for this function:

◆ has_value()

template<typename TRef >
bool v8::internal::compiler::OptionalRef< TRef >::has_value ( ) const
inlineconstexpr

Definition at line 341 of file heap-refs.h.

Here is the caller graph for this function:

◆ hash_value()

template<typename TRef >
size_t v8::internal::compiler::OptionalRef< TRef >::hash_value ( ) const
inline

Definition at line 355 of file heap-refs.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator bool()

template<typename TRef >
v8::internal::compiler::OptionalRef< TRef >::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 342 of file heap-refs.h.

Here is the call graph for this function:

◆ operator*()

template<typename TRef >
TRef v8::internal::compiler::OptionalRef< TRef >::operator* ( ) const
inline

Definition at line 348 of file heap-refs.h.

Here is the call graph for this function:

◆ operator->()

template<typename TRef >
ArrowOperatorHelper v8::internal::compiler::OptionalRef< TRef >::operator-> ( ) const
inline

Definition at line 349 of file heap-refs.h.

Here is the call graph for this function:

◆ value()

template<typename TRef >
TRef v8::internal::compiler::OptionalRef< TRef >::value ( ) const
inline

Definition at line 344 of file heap-refs.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ OptionalRef

template<typename TRef >
template<typename SRef >
friend class OptionalRef
friend

Definition at line 366 of file heap-refs.h.

Member Data Documentation

◆ data_

template<typename TRef >
ObjectData* v8::internal::compiler::OptionalRef< TRef >::data_ = nullptr
private

Definition at line 363 of file heap-refs.h.


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