NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
Namespaces | Functions
be_memory_autoarrayutility.h File Reference
#include <cstdarg>
#include <cstdio>
#include <string>
#include <type_traits>
#include <be_error_exception.h>
#include <be_memory_autoarray.h>

Go to the source code of this file.

Namespaces

namespace  BiometricEvaluation
 This software was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties.
 
namespace  BiometricEvaluation::Memory
 Support for memory-related operations.
 
namespace  BiometricEvaluation::Memory::AutoArrayUtility
 Convenience functions for AutoArrays.
 

Functions

template<typename T , typename = typename std::enable_if<std::is_same<T, uint8_t>::value || std::is_same<T, char>::value>::type>
char * BiometricEvaluation::Memory::AutoArrayUtility::cstr (const AutoArray< T > &rahc)
 Cast an AutoArray of uint8_t or char to a char*. More...
 
template<typename T , typename = typename std::enable_if<std::is_same<T, uint8_t>::value || std::is_same<T, char>::value>::type>
std::string BiometricEvaluation::Memory::AutoArrayUtility::getString (const AutoArray< T > &aa, typename AutoArray< T >::size_type count)
 Convert a uint8_t or char AutoArray to a string. More...
 
template<typename T , typename = typename std::enable_if<std::is_same<T, uint8_t>::value || std::is_same<T, char>::value>::type>
void BiometricEvaluation::Memory::AutoArrayUtility::setString (AutoArray< T > &aa, const std::string &str)
 Copy a string into an AutoAray of uint8_t or char. More...
 
template<typename T , typename = typename std::enable_if<std::is_same<T, uint8_t>::value || std::is_same<T, char>::value>::type>
void BiometricEvaluation::Memory::AutoArrayUtility::setString (AutoArray< T > &aa, const char *str,...)
 Copy a string into an AutoAray of uint8_t or char. More...
 
template<typename T , typename = typename std::enable_if<std::is_same<T, uint8_t>::value || std::is_same<T, char>::value>::type>
std::string to_string (const BiometricEvaluation::Memory::AutoArray< T > &aa)
 Convert a uint8_t or char AutoArray to a string. More...
 

Function Documentation

◆ to_string()

template<typename T , typename = typename std::enable_if<std::is_same<T, uint8_t>::value || std::is_same<T, char>::value>::type>
std::string to_string ( const BiometricEvaluation::Memory::AutoArray< T > &  aa)
inline

Convert a uint8_t or char AutoArray to a string.

Parameters
aaAutoArray to stringify.
Returns
String representation of aa.

Definition at line 145 of file be_memory_autoarrayutility.h.