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

#include <CommonDef.h>

Public Member Functions

 ConstBuffer ()=default
 
 ConstBuffer (const char *data, Size count)
 
 ConstBuffer (const char *str)
 
 ConstBuffer (const std::string &str)
 
 ConstBuffer (const std::vector< char > &v)
 
 ConstBuffer (std::string &&str)=delete
 
 operator bool () const
 

Public Attributes

Size count = 0
 
const char * data = nullptr
 

Detailed Description

Specialization for a const buffer characters.

Constructor & Destructor Documentation

◆ ConstBuffer() [1/6]

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

Creates an empty string buffer.

◆ ConstBuffer() [2/6]

FlowEngine::ConstBuffer< char >::ConstBuffer ( const std::string &  str)
inline

Implicit conversion from a std::string.

◆ ConstBuffer() [3/6]

FlowEngine::ConstBuffer< char >::ConstBuffer ( std::string &&  str)
delete

Prohibits conversion from a temporary std::string.

◆ ConstBuffer() [4/6]

FlowEngine::ConstBuffer< char >::ConstBuffer ( const char *  str)
inline

Implicit conversion from a C string literal.

◆ ConstBuffer() [5/6]

FlowEngine::ConstBuffer< char >::ConstBuffer ( const char *  data,
Size  count 
)
inline

Construction from an arbitrary buffer and size.

◆ ConstBuffer() [6/6]

FlowEngine::ConstBuffer< char >::ConstBuffer ( const std::vector< char > &  v)
inline

Implicit conversion from a std::vector.

Member Function Documentation

◆ operator bool()

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

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

Member Data Documentation

◆ count

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

Number of elements the pointer points to.

◆ data

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

Pointer to the const data.