HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UN_DataBufferUtils Namespace Reference

Utility functions that operate on data buffers. More...

Functions

template<typename V , typename B >
getDataVal (const B &buffer, UN_DataIndex index, const V &default_value)
 

Detailed Description

Utility functions that operate on data buffers.

Function Documentation

template<typename V , typename B >
V UN_DataBufferUtils::getDataVal ( const B &  buffer,
UN_DataIndex  index,
const V &  default_value 
)
inline

Returns a value constructed from an entry in the data buffer. This is useful when the type returned here differs from the underlying entry type. In particular, this is needed for UN_BoolDataBuffer whose underlying entries are bits (for which we can't return a const reference) while here we are returning bool (byte).

Definition at line 371 of file UN_DataBuffer.h.