Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
SkSBlockAllocator< N > Class Template Reference

#include <SkBlockAllocator.h>

Inheritance diagram for SkSBlockAllocator< N >:
SkNoncopyable

Public Types

using GrowthPolicy = SkBlockAllocator::GrowthPolicy
 

Public Member Functions

 SkSBlockAllocator ()
 
 SkSBlockAllocator (GrowthPolicy policy)
 
 SkSBlockAllocator (GrowthPolicy policy, size_t blockIncrementBytes)
 
 ~SkSBlockAllocator ()
 
SkBlockAllocatoroperator-> ()
 
const SkBlockAllocatoroperator-> () const
 
SkBlockAllocatorallocator ()
 
const SkBlockAllocatorallocator () const
 

Detailed Description

template<size_t N>
class SkSBlockAllocator< N >

Definition at line 481 of file SkBlockAllocator.h.

Member Typedef Documentation

◆ GrowthPolicy

Definition at line 483 of file SkBlockAllocator.h.

Constructor & Destructor Documentation

◆ SkSBlockAllocator() [1/3]

template<size_t N>
SkSBlockAllocator< N >::SkSBlockAllocator ( )
inline

Definition at line 485 of file SkBlockAllocator.h.

485 {
486 new (fStorage) SkBlockAllocator(GrowthPolicy::kFixed, N, N - sizeof(SkBlockAllocator));
487 }
#define N
Definition beziers.cpp:19

◆ SkSBlockAllocator() [2/3]

template<size_t N>
SkSBlockAllocator< N >::SkSBlockAllocator ( GrowthPolicy  policy)
inlineexplicit

Definition at line 488 of file SkBlockAllocator.h.

488 {
489 new (fStorage) SkBlockAllocator(policy, N, N - sizeof(SkBlockAllocator));
490 }

◆ SkSBlockAllocator() [3/3]

template<size_t N>
SkSBlockAllocator< N >::SkSBlockAllocator ( GrowthPolicy  policy,
size_t  blockIncrementBytes 
)
inline

Definition at line 492 of file SkBlockAllocator.h.

492 {
493 new (fStorage) SkBlockAllocator(policy, blockIncrementBytes, N - sizeof(SkBlockAllocator));
494 }

◆ ~SkSBlockAllocator()

template<size_t N>
SkSBlockAllocator< N >::~SkSBlockAllocator ( )
inline

Definition at line 496 of file SkBlockAllocator.h.

496 {
497 this->allocator()->~SkBlockAllocator();
498 }
SkBlockAllocator * allocator()

Member Function Documentation

◆ allocator() [1/2]

template<size_t N>
SkBlockAllocator * SkSBlockAllocator< N >::allocator ( )
inline

Definition at line 503 of file SkBlockAllocator.h.

503{ return reinterpret_cast<SkBlockAllocator*>(fStorage); }

◆ allocator() [2/2]

template<size_t N>
const SkBlockAllocator * SkSBlockAllocator< N >::allocator ( ) const
inline

Definition at line 504 of file SkBlockAllocator.h.

504 {
505 return reinterpret_cast<const SkBlockAllocator*>(fStorage);
506 }

◆ operator->() [1/2]

template<size_t N>
SkBlockAllocator * SkSBlockAllocator< N >::operator-> ( )
inline

Definition at line 500 of file SkBlockAllocator.h.

500{ return this->allocator(); }

◆ operator->() [2/2]

template<size_t N>
const SkBlockAllocator * SkSBlockAllocator< N >::operator-> ( ) const
inline

Definition at line 501 of file SkBlockAllocator.h.

501{ return this->allocator(); }

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