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

Specialization for a Buffer of characters. More...

#include <CommonDef.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Specialization for a Buffer of characters.

Constructor & Destructor Documentation

◆ Buffer() [1/5]

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

Represents an empty C string literal.

◆ Buffer() [2/5]

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

Implicit conversion from a std::string.

◆ Buffer() [3/5]

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

Construction from an arbitrary buffer and size.

◆ Buffer() [4/5]

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

Implicit conversion from a std::vector.

◆ Buffer() [5/5]

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

Prohibit conversion from a temporary string.

Member Function Documentation

◆ operator bool()

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

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

Member Data Documentation

◆ count

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

Number of elements the pointer points to.

◆ data

char* FlowEngine::Buffer< char >::data = nullptr

Pointer to the mutable data.