Mech-Eye API 2.5.1
API reference documentation for Mech-Eye 3D Laser Profiler
Loading...
Searching...
No Matches
Public Member Functions
BatchArray< ElementData > Class Template Reference

Represents the data struct of the profile data. More...

#include <BatchArray.h>

Public Member Functions

 BatchArray (size_t width)
 Describes a constructor.
 
 ~BatchArray ()=default
 Describes a destructor.
 
size_t width () const
 Returns the width of the BatchArray object.
 
size_t height () const
 Returns the height of the BatchArray object.
 
void setHeight (size_t height)
 Sets the height of the BatchArray object.
 
size_t capacity () const
 Returns the size of the storage space currently allocated for the BatchArray object, expressed in number of lines.
 
bool isEmpty () const
 Returns true if the BatchArray object has no elements.
 
void reserve (size_t height)
 Requests for enough capacity of the BatchArray object to contain the number of lines corresponding to the height.
 
bool append (const BatchArray &data)
 Appends the data variable onto the end of this BatchArray object.
 
const ElementData * data () const
 Returns the pointer to the element data.
 
ElementData * data ()
 Returns the pointer to the element data.
 
const ElementData & operator[] (std::size_t n) const
 Returns a const element reference to the specified index in the BatchArray object using the operator [].
 
ElementData & operator[] (std::size_t n)
 Returns an element reference to the specified index in the BatchArray object using the operator [].
 
const ElementData & at (uint32_t row, uint32_t col) const
 Returns a const element reference to the specified row and column index in the BatchArray object.
 
ElementData & at (size_t row, size_t col)
 Returns an element reference to the specified row and column index in the BatchArray object.
 
BatchArray< ElementData > clone () const
 Creates a deep copy of the BatchArray object.
 
void clear ()
 Clears the data of the BatchArray object.
 

Detailed Description

template<typename ElementData>
class mmind::eye::BatchArray< ElementData >

Represents the data struct of the profile data.

Constructor & Destructor Documentation

◆ BatchArray()

template<typename ElementData >
BatchArray ( size_t  width)
inline

Describes a constructor.

◆ ~BatchArray()

template<typename ElementData >
~BatchArray ( )
default

Describes a destructor.

Member Function Documentation

◆ append()

template<typename ElementData >
bool append ( const BatchArray< ElementData > &  data)
inline

Appends the data variable onto the end of this BatchArray object.

◆ at() [1/2]

template<typename ElementData >
ElementData & at ( size_t  row,
size_t  col 
)
inline

Returns an element reference to the specified row and column index in the BatchArray object.

Parameters
rowIndex along the height dimension. An exception is thrown if the input row is greater than width.
colIndex along the width dimension. An exception is thrown if the input col is greater than height.

◆ at() [2/2]

template<typename ElementData >
const ElementData & at ( uint32_t  row,
uint32_t  col 
) const
inline

Returns a const element reference to the specified row and column index in the BatchArray object.

Parameters
rowIndex along the height dimension. An exception is thrown if the input row is greater than width.
colIndex along the width dimension. An exception is thrown if the input col is greater than height.

◆ capacity()

template<typename ElementData >
size_t capacity ( ) const
inline

Returns the size of the storage space currently allocated for the BatchArray object, expressed in number of lines.

◆ clear()

template<typename ElementData >
void clear ( )
inline

Clears the data of the BatchArray object.

◆ clone()

template<typename ElementData >
BatchArray< ElementData > clone ( ) const
inline

Creates a deep copy of the BatchArray object.

◆ data() [1/2]

template<typename ElementData >
ElementData * data ( )
inline

Returns the pointer to the element data.

◆ data() [2/2]

template<typename ElementData >
const ElementData * data ( ) const
inline

Returns the pointer to the element data.

◆ height()

template<typename ElementData >
size_t height ( ) const
inline

Returns the height of the BatchArray object.

◆ isEmpty()

template<typename ElementData >
bool isEmpty ( ) const
inline

Returns true if the BatchArray object has no elements.

◆ operator[]() [1/2]

template<typename ElementData >
ElementData & operator[] ( std::size_t  n)
inline

Returns an element reference to the specified index in the BatchArray object using the operator [].

Parameters
nIndex of an element. An exception is thrown if the input n is greater than width * height.

◆ operator[]() [2/2]

template<typename ElementData >
const ElementData & operator[] ( std::size_t  n) const
inline

Returns a const element reference to the specified index in the BatchArray object using the operator [].

Parameters
nIndex of an element. An exception is thrown if the input n is greater than width * height.

◆ reserve()

template<typename ElementData >
void reserve ( size_t  height)
inline

Requests for enough capacity of the BatchArray object to contain the number of lines corresponding to the height.

◆ setHeight()

template<typename ElementData >
void setHeight ( size_t  height)
inline

Sets the height of the BatchArray object.

◆ width()

template<typename ElementData >
size_t width ( ) const
inline

Returns the width of the BatchArray object.


The documentation for this class was generated from the following file: