Skia
2D Graphics Library
SkBBoxHierarchy Class Referenceabstract

#include <SkBBHFactory.h>

Inheritance diagram for SkBBoxHierarchy:

Classes

struct  Metadata
 

Public Member Functions

virtual void insert (const SkRect[], int N)=0
 Insert N bounding boxes into the hierarchy. More...
 
virtual void insert (const SkRect[], const Metadata[], int N)
 
virtual void search (const SkRect &query, std::vector< int > *results) const =0
 Populate results with the indices of bounding boxes intersecting that query. More...
 
virtual size_t bytesUsed () const =0
 Return approximate size in memory of *this. More...
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Protected Member Functions

 SkBBoxHierarchy ()=default
 
 SkBBoxHierarchy (const SkBBoxHierarchy &)=delete
 
SkBBoxHierarchyoperator= (const SkBBoxHierarchy &)=delete
 

Constructor & Destructor Documentation

◆ SkBBoxHierarchy() [1/2]

SkBBoxHierarchy::SkBBoxHierarchy ( )
protecteddefault

◆ SkBBoxHierarchy() [2/2]

SkBBoxHierarchy::SkBBoxHierarchy ( const SkBBoxHierarchy )
protecteddelete

Member Function Documentation

◆ bytesUsed()

virtual size_t SkBBoxHierarchy::bytesUsed ( ) const
pure virtual

Return approximate size in memory of *this.

◆ insert() [1/2]

virtual void SkBBoxHierarchy::insert ( const  SkRect[],
const  Metadata[],
int  N 
)
virtual

◆ insert() [2/2]

virtual void SkBBoxHierarchy::insert ( const  SkRect[],
int  N 
)
pure virtual

Insert N bounding boxes into the hierarchy.

◆ operator=()

SkBBoxHierarchy& SkBBoxHierarchy::operator= ( const SkBBoxHierarchy )
protecteddelete

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ search()

virtual void SkBBoxHierarchy::search ( const SkRect query,
std::vector< int > *  results 
) const
pure virtual

Populate results with the indices of bounding boxes intersecting that query.

◆ unique()

bool SkRefCntBase::unique ( ) const
inlineinherited

May return true if the caller is the only owner.

Ensures that all previous owner's actions are complete.

◆ unref()

void SkRefCntBase::unref ( ) const
inlineinherited

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.


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