OpenVDB  1.1.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
LeafNode< T, Log2Dim >::Buffer Class Reference

Stores the actual values in the LeafNode. Its dimension it fixed to 2^(3*Log2Dim) More...

#include <LeafNode.h>

Public Member Functions

 Buffer ()
 Empty default constructor. More...
 
 Buffer (const ValueType &val)
 Constructs a buffer populated with the specified value. More...
 
 Buffer (const Buffer &other)
 Copy constructor. More...
 
 ~Buffer ()
 Destructor. More...
 
void fill (const ValueType &val)
 Populates the buffer with a constant value. More...
 
const ValueTypegetValue (Index i) const
 Return a const reference to the i'th element of the Buffer. More...
 
const ValueTypeoperator[] (Index i) const
 Return a const reference to the i'th element of the Buffer. More...
 
void setValue (Index i, const ValueType &val)
 Set the i'th value of the Buffer to the specified value. More...
 
Bufferoperator= (const Buffer &other)
 Assigns the values in the other Buffer to this Buffer. More...
 
bool operator== (const Buffer &other) const
 
bool operator!= (const Buffer &other) const
 
void swap (Buffer &other)
 Replace the values in this Buffer with the values in the other Buffer. More...
 

Static Public Member Functions

static Index memUsage ()
 Return the memory-footprint of this Buffer in units of bytes. More...
 
static Index size ()
 Return the number of values represented in this Buffer. More...
 

Friends

class ::TestLeaf
 
class LeafNode
 

Detailed Description

template<typename T, Index Log2Dim>
class openvdb::v1_1_0::tree::LeafNode< T, Log2Dim >::Buffer

Stores the actual values in the LeafNode. Its dimension it fixed to 2^(3*Log2Dim)

Constructor & Destructor Documentation

Buffer ( )
inline

Empty default constructor.

Buffer ( const ValueType val)
inline

Constructs a buffer populated with the specified value.

Buffer ( const Buffer other)
inline

Copy constructor.

~Buffer ( )
inline

Destructor.

Member Function Documentation

void fill ( const ValueType val)
inline

Populates the buffer with a constant value.

const ValueType& getValue ( Index  i) const
inline

Return a const reference to the i'th element of the Buffer.

static Index memUsage ( )
inlinestatic

Return the memory-footprint of this Buffer in units of bytes.

bool operator!= ( const Buffer other) const
inline

Return true if any of the values in the other buffer do not exactly equate the values in this buffer

Buffer& operator= ( const Buffer other)
inline

Assigns the values in the other Buffer to this Buffer.

bool operator== ( const Buffer other) const
inline

Return true if the values in the other buffer exactly equates the values in this buffer

const ValueType& operator[] ( Index  i) const
inline

Return a const reference to the i'th element of the Buffer.

void setValue ( Index  i,
const ValueType val 
)
inline

Set the i'th value of the Buffer to the specified value.

static Index size ( )
inlinestatic

Return the number of values represented in this Buffer.

void swap ( Buffer other)
inline

Replace the values in this Buffer with the values in the other Buffer.

Friends And Related Function Documentation

friend class ::TestLeaf
friend
friend class LeafNode
friend

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