FlowEngine 9.000
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
FlowEngine::ConstBuffer< void > Struct Reference

#include <CommonDef.h>

Public Member Functions

 ConstBuffer ()=default
 
template<typename T >
 ConstBuffer (const Buffer< T > &other)
 
template<typename T >
 ConstBuffer (const ConstBuffer< T > &other)
 
 ConstBuffer (const void *d, Size s)
 
 operator bool () const
 

Public Attributes

Size count = 0
 
const void * data = nullptr
 

Detailed Description

Specialization for a type-erased const buffer.

Constructor & Destructor Documentation

◆ ConstBuffer() [1/4]

FlowEngine::ConstBuffer< void >::ConstBuffer ( )
default

Creates an empty buffer.

◆ ConstBuffer() [2/4]

FlowEngine::ConstBuffer< void >::ConstBuffer ( const void *  d,
Size  s 
)
inline

Construct from a raw pointer and byte count.

◆ ConstBuffer() [3/4]

template<typename T >
FlowEngine::ConstBuffer< void >::ConstBuffer ( const Buffer< T > &  other)
inline

Construction from a buffer of any type.

◆ ConstBuffer() [4/4]

template<typename T >
FlowEngine::ConstBuffer< void >::ConstBuffer ( const ConstBuffer< T > &  other)
inline

Construction from a const buffer of any type.

Member Function Documentation

◆ operator bool()

FlowEngine::ConstBuffer< void >::operator bool ( ) const
inlineexplicit

Evaluates to true if this buffer holds valid data, false otherwise.

Member Data Documentation

◆ count

Size FlowEngine::ConstBuffer< void >::count = 0

Number of bytes the pointer points to.

◆ data

const void* FlowEngine::ConstBuffer< void >::data = nullptr

Pointer to the immutable data.