Face SDK  1.7 Mozart rc
Face Recognition Software Development Kit
Public Member Functions | List of all members
face_sdk::fir_list Class Referenceabstract

List of FIRs for matching. More...

#include <fir_list.h>

Public Member Functions

virtual uint32_t add (const std::shared_ptr< face_sdk::fir > &fir)=0
 Add the FIR into the list. More...
 
virtual std::tuple< uint32_t, uint32_t > remove (const uint32_t index)=0
 Remove FIR by index. More...
 
virtual uint32_t size () const =0
 List size.
 
virtual void reserve (const std::shared_ptr< fir > &fir, uint32_t count)=0
 Reserve memory for FIRs data.
 

Detailed Description

List of FIRs for matching.

Member Function Documentation

◆ add()

virtual uint32_t face_sdk::fir_list::add ( const std::shared_ptr< face_sdk::fir > &  fir)
pure virtual

Add the FIR into the list.

Returns
The FIR index.
Exceptions
face_sdk::exceptionSee Exceptions handling.

◆ remove()

virtual std::tuple<uint32_t, uint32_t> face_sdk::fir_list::remove ( const uint32_t  index)
pure virtual

Remove FIR by index.

Removing algorithm: when the FIR is removed his index is assigning to another FIR. For example: if we have 10 FIRs in the list and we are removing FIR with the index 3 we take FIR with index 9 and move it to the position of the removed FIR. So FIR 9 becomes FIR 3.

Returns
Return two indexes. First index is the index of removed FIR. Second index is the index of moved FIR.
Exceptions
face_sdk::exceptionSee Exceptions handling.

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