dca_interface  6.3.4
dca_malware::MalwareCategories Class Reference

#include <malware_categories.h>

Detailed Description

Definition of a container class for MalwareCategory objects.

Can be obtained from an MalwareCategoriesInfo object.

Use MalwareCategories in a similar manner to a std::container. The container can be easily iterated over using size() and operator [].

See also
MalwareCategoriesInfo, MalwareCategory

Definition at line 39 of file malware_categories.h.

Public Member Functions

MalwareCategory at (DCA_INDEX_TYPE index) const
 Returns the MalwareCategory with given index. More...
 
MalwareCategory operator[] (DCA_INDEX_TYPE index) const
 Similar to at() but allows a more C++ style access. More...
 
DCA_SIZE_TYPE size () const
 Returns the number of categories in the container. More...
 
MalwareCategory byId (DCA_CATEGORY_ID_TYPE catid) const
 Returns the category with the given category id. More...
 

Member Function Documentation

◆ at()

MalwareCategory dca_malware::MalwareCategories::at ( DCA_INDEX_TYPE  index) const

Returns the MalwareCategory with given index.

Parameters
[in]indexThe index of the category. Range is from 0 to size() - 1
Returns
The MalwareCategory with the given index in the container.

◆ operator[]()

MalwareCategory dca_malware::MalwareCategories::operator[] ( DCA_INDEX_TYPE  index) const

Similar to at() but allows a more C++ style access.

Parameters
[in]indexThe index of the category. Range is from 0 to size() - 1
Returns
The MalwareCategory with the given index in the container.

◆ size()

DCA_SIZE_TYPE dca_malware::MalwareCategories::size ( ) const

Returns the number of categories in the container.

Returns
The size of the container or 0 if the container is empty.

◆ byId()

MalwareCategory dca_malware::MalwareCategories::byId ( DCA_CATEGORY_ID_TYPE  catid) const

Returns the category with the given category id.

Parameters
[in]catidThe id of the requested category
Returns
The MalwareCategory with the given id in the container.

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