File IOBufferDataTypeMap.hpp¶
↰ Parent directory (DlSystem)
Contents
Definition (DlSystem/IOBufferDataTypeMap.hpp)¶
Includes¶
DlEnums.hpp(File DlEnums.hpp)DlSystem/IOBufferDataTypeMap.h(File IOBufferDataTypeMap.hpp)cstddef
Included By¶
Namespaces¶
Classes¶
Full File Listing¶
-
namespace DlSystem
-
class IOBufferDataTypeMap¶
- #include <IOBufferDataTypeMap.hpp>
Public Functions
-
IOBufferDataTypeMap()¶
Creates a new Buffer Data type map.
-
void add(const char *name, IOBufferDataType_t bufferDataType)¶
Adds a name and the corresponding buffer data type to the map.
- Parameters
name – [in] : The name of the buffer
bufferDataType – [in] : data type of the buffer
Note
If a buffer with the same name already exists, no new buffer is added.
-
void remove(const char *name)¶
Removes a buffer name from the map.
- Parameters
name – [in] : The name of the buffer
-
IOBufferDataType_t getBufferDataType(const char *name)¶
Returns the type of the named buffer.
- Parameters
name – [in] : The name of the buffer
- Returns
The type of the buffer, or UNSPECIFIED if the buffer does not exist
-
IOBufferDataType_t getBufferDataType()¶
Returns the type of the first buffer.
- Returns
The type of the first buffer, or SNPE_IO_BUFFER_DATATYPE_UNSPECIFIED if the map is empty.
-
size_t size() const¶
Returns the size of the buffer type map.
- Returns
The size of the map
-
bool find(const char *name) const¶
Checks the existence of the named buffer in the map.
- Parameters
name – [in] : The name of the buffer
- Returns
1 if the named buffer exists, 0 otherwise.
-
void clear()¶
Resets the map.
-
bool empty() const¶
Checks whether the map is empty.
- Returns
1 if the map is empty, 0 otherwise.
-
IOBufferDataTypeMap()¶
-
class IOBufferDataTypeMap¶