OpenVDB: LeafBuffer.h File Reference

OpenVDB 4.0.2

Classes | Namespaces
LeafBuffer.h File Reference
`#include <openvdb/Types.h>`
`#include <openvdb/io/Compression.h>`
`#include <openvdb/util/NodeMasks.h>`
`#include <tbb/atomic.h>`
`#include <tbb/spin_mutex.h>`
`#include <algorithm>`
`#include <cstddef>`
`#include <iostream>`
`#include <memory>`
`#include <type_traits>`

Go to the source code of this file.

## Classes
class | LeafBuffer< T, Log2Dim >
| Array of fixed size that stores the voxel values of a LeafNode. More...
struct | LeafBuffer< T, Log2Dim >::FileInfo
class | LeafBuffer< bool, Log2Dim >

## Namespaces
| openvdb
| openvdb::v4_0_2
| openvdb::v4_0_2::tree

## Variable Documentation

## ◆ data

T* data

## ◆ i

Index32 i

## ◆ IsAtomic

constexpr bool IsAtomic
| static

Initial value:
= ((sizeof(Atomic) == sizeof(NonAtomic))
&& (offsetof(Atomic, i) == offsetof(NonAtomic, i)))
i
tbb::atomic< Index32 > i
Definition: LeafBuffer.h:71

`true` if LeafBuffer::mOutOfCore is atomic, `false` otherwise

## ◆ mutex

tbb::spin_mutex mutex

## ◆ ptr

void* ptr

## ◆ size

constexpr size_t size = sizeof(Atomic)
| static

The size of a LeafBuffer when LeafBuffer::mOutOfCore is atomic.