v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait > Struct Template Reference

#include <lazy-instance.h>

Collaboration diagram for v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >:

Public Types

using StorageType = typename AllocationTrait::StorageType
 
using AlignmentType = typename AllocationTrait::AlignmentType
 

Public Member Functions

TPointer ()
 
const TGet () const
 

Public Attributes

OnceType once_
 
StorageType storage_
 

Private Member Functions

void Init () const
 

Static Private Member Functions

static void InitInstance (void *storage)
 

Detailed Description

template<typename T, typename AllocationTrait, typename CreateTrait, typename InitOnceTrait, typename DestroyTrait>
struct v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >

Definition at line 165 of file lazy-instance.h.

Member Typedef Documentation

◆ AlignmentType

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
using v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::AlignmentType = typename AllocationTrait::AlignmentType

Definition at line 168 of file lazy-instance.h.

◆ StorageType

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
using v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::StorageType = typename AllocationTrait::StorageType

Definition at line 167 of file lazy-instance.h.

Member Function Documentation

◆ Get()

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
const T & v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Get ( ) const
inline

Definition at line 186 of file lazy-instance.h.

Here is the call graph for this function:

◆ Init()

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
void v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Init ( ) const
inlineprivate

Definition at line 176 of file lazy-instance.h.

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

◆ InitInstance()

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
static void v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::InitInstance ( void * storage)
inlinestaticprivate

Definition at line 171 of file lazy-instance.h.

Here is the caller graph for this function:

◆ Pointer()

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
T * v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Pointer ( )
inline

Definition at line 181 of file lazy-instance.h.

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

Member Data Documentation

◆ once_

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
OnceType v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::once_
mutable

Definition at line 191 of file lazy-instance.h.

◆ storage_

template<typename T , typename AllocationTrait , typename CreateTrait , typename InitOnceTrait , typename DestroyTrait >
StorageType v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::storage_
mutable

Definition at line 192 of file lazy-instance.h.


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