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

Specialization for a const buffer characters. More...

#include <CommonDef.h>

Public Member Functions

 ConstBuffer ()=default
 Creates an empty string buffer.
 
 ConstBuffer (const std::string &str)
 Implicit conversion from a std::string.
 
 ConstBuffer (std::string &&str)=delete
 Prohibits conversion from a temporary std::string.
 
 ConstBuffer (const char *str)
 Implicit conversion from a C string literal.
 
 ConstBuffer (const char *data, Size count)
 Construction from an arbitrary buffer and size.
 
 ConstBuffer (const std::vector< char > &v)
 Implicit conversion from a std::vector.
 
 operator bool () const
 Evaluates to true if this buffer holds valid data, false otherwise.
 

Public Attributes

const char * data = nullptr
 Pointer to the const data.
 
Size count = 0
 Number of elements the pointer points to.
 

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.