|
Nail to Nail Fingerprint Capture Challenge
API for participant-specific one-to-many template generation and template matching.
|
A C-style array wrapped in the facade of a C++ STL container. More...
#include <be_memory_autoarray.h>
Public Member Functions | |
| operator T* () | |
| Convert AutoArray to T array. More... | |
| operator const T * () const | |
| Convert AutoArray to const T array. More... | |
| reference | operator[] (ptrdiff_t index) |
| Subscripting operator overload with unchecked access. More... | |
| const_reference | operator[] (ptrdiff_t index) const |
| Const subscripting operator overload with unchecked access. More... | |
| reference | at (ptrdiff_t index) |
| Subscript into the AutoArray with checked access. More... | |
| const_reference | at (ptrdiff_t index) const |
| Subscript into the AutoArray with checked access. More... | |
| iterator | begin () |
| Obtain an iterator to the beginning of the AutoArray. More... | |
| const_iterator | begin () const |
| Obtain an iterator to the beginning of the AutoArray. More... | |
| const_iterator | cbegin () const |
| Obtain an iterator to the beginning of the AutoArray. More... | |
| iterator | end () |
| Obtain an iterator to the end of the AutoArray. More... | |
| const_iterator | end () const |
| Obtain an iterator to the end of the AutoArray. More... | |
| const_iterator | cend () const |
| Obtain an iterator to the end of the AutoArray. More... | |
| size_type | size () const |
| Obtain the number of accessible elements. More... | |
| void | resize (size_type new_size, bool free=false) |
| Change the number of accessible elements. More... | |
| void | copy (const T *buffer) |
| Deep-copy the contents of a buffer into this AutoArray. More... | |
| void | copy (const T *buffer, size_type size) |
| Deep-copy the contents of a buffer into this AutoArray. More... | |
| std::vector< T > | to_vector () const |
| Obtain a copy of elements in this AutoArray as a vector. More... | |
| AutoArray (size_type size=0) | |
| Construct an AutoArray. More... | |
| AutoArray (const AutoArray ©) | |
| Construct an AutoArray. More... | |
| AutoArray (AutoArray &&rvalue) noexcept | |
| Construct an AutoArray. More... | |
| AutoArray (std::initializer_list< T > ilist) | |
| Construct an AutoArray. More... | |
| AutoArray & | operator= (const AutoArray &other) |
| Copy assignment operator overload performing a deep copy. More... | |
| AutoArray & | operator= (AutoArray &&other) noexcept(noexcept(std::swap(std::declval< value_type & >(), std::declval< value_type & >())) &&noexcept(std::swap(std::declval< size_type & >(), std::declval< size_type & >()))) |
| Move assignment operator. More... | |
| ~AutoArray () | |
| Destructor. | |
A C-style array wrapped in the facade of a C++ STL container.
Objects of this type should be treated in the traditional manner for containers, where (size_type) construction creates an array of the given size, while {...} construction creates an array with the given elements.
|
explicit |
Construct an AutoArray.
| [in] | size | The number of elements this AutoArray should initially hold. |
| Error::MemoryError | Could not allocate new memory. |
| BiometricEvaluation::Memory::AutoArray< T >::AutoArray | ( | const AutoArray< T > & | copy | ) |
Construct an AutoArray.
| Error::MemoryError | Could not allocate new memory. |
|
noexcept |
| BiometricEvaluation::Memory::AutoArray< T >::AutoArray | ( | std::initializer_list< T > | ilist | ) |
Construct an AutoArray.
| [in] | ilist | An initializer list of type T. |
| BiometricEvaluation::Memory::AutoArray< T >::reference BiometricEvaluation::Memory::AutoArray< T >::at | ( | ptrdiff_t | index | ) |
| BiometricEvaluation::Memory::AutoArray< T >::const_reference BiometricEvaluation::Memory::AutoArray< T >::at | ( | ptrdiff_t | index | ) | const |
| BiometricEvaluation::Memory::AutoArray< T >::iterator BiometricEvaluation::Memory::AutoArray< T >::begin |
| BiometricEvaluation::Memory::AutoArray< T >::const_iterator BiometricEvaluation::Memory::AutoArray< T >::begin |
| BiometricEvaluation::Memory::AutoArray< T >::const_iterator BiometricEvaluation::Memory::AutoArray< T >::cbegin |
| BiometricEvaluation::Memory::AutoArray< T >::const_iterator BiometricEvaluation::Memory::AutoArray< T >::cend |
| void BiometricEvaluation::Memory::AutoArray< T >::copy | ( | const T * | buffer | ) |
Deep-copy the contents of a buffer into this AutoArray.
| [in] | buffer | An allocated buffer whose contents will be deep-copied into this object. Only size() bytes will be copied. |
| void BiometricEvaluation::Memory::AutoArray< T >::copy | ( | const T * | buffer, |
| size_type | size | ||
| ) |
Deep-copy the contents of a buffer into this AutoArray.
| [in] | buffer | An allocated buffer whose contents will be deep-copied into this object. |
| [in] | size | The number of bytes from buffer that will be deep-copied. |
| BiometricEvaluation::Memory::AutoArray< T >::iterator BiometricEvaluation::Memory::AutoArray< T >::end |
| BiometricEvaluation::Memory::AutoArray< T >::const_iterator BiometricEvaluation::Memory::AutoArray< T >::end |
| BiometricEvaluation::Memory::AutoArray< T >::operator const T * |
Convert AutoArray to const T array.
| BiometricEvaluation::Memory::AutoArray< T >::operator T* |
Convert AutoArray to T array.
|
noexcept |
| BiometricEvaluation::Memory::AutoArray< T > & BiometricEvaluation::Memory::AutoArray< T >::operator= | ( | const AutoArray< T > & | other | ) |
Copy assignment operator overload performing a deep copy.
| [in] | other | AutoArray to be copied. |
| Error::MemoryError | Could not allocate new memory. |
| BiometricEvaluation::Memory::AutoArray< T >::reference BiometricEvaluation::Memory::AutoArray< T >::operator[] | ( | ptrdiff_t | index | ) |
Subscripting operator overload with unchecked access.
| [in] | index | Subscript into underlying storage. |
| BiometricEvaluation::Memory::AutoArray< T >::const_reference BiometricEvaluation::Memory::AutoArray< T >::operator[] | ( | ptrdiff_t | index | ) | const |
Const subscripting operator overload with unchecked access.
| [in] | index | Subscript into underlying storage. |
| void BiometricEvaluation::Memory::AutoArray< T >::resize | ( | size_type | new_size, |
| bool | free = false |
||
| ) |
Change the number of accessible elements.
| [in] | new_size | The number of elements the AutoArray should have allocated. |
| [in] | free | Whether or not excess memory should be freed if the new size is smaller than the current size. |
| Error::MemoryError | Problem allocating memory. |
| BiometricEvaluation::Memory::AutoArray< T >::size_type BiometricEvaluation::Memory::AutoArray< T >::size |
| std::vector< T > BiometricEvaluation::Memory::AutoArray< T >::to_vector |
Obtain a copy of elements in this AutoArray as a vector.