dca_interface  6.3.4
dca_ipr::IprEnums Class Reference

#include <ipr_enums.h>

Detailed Description

Definition of a container class for IprEnum objects.

Can be obtained from an IprCategoriesInfo object.

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

See also
IprEnumsInfo, IprEnum

Definition at line 30 of file ipr_enums.h.

Public Member Functions

IprEnum at (DCA_INDEX_TYPE index) const
 Returns the IprEnum with given index. More...
 
IprEnum 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 enums in the container. More...
 
IprEnum byId (DCA_ENUM_ID_TYPE id) const
 Returns the IprEnum with the given id. More...
 

Member Function Documentation

◆ at()

IprEnum dca_ipr::IprEnums::at ( DCA_INDEX_TYPE  index) const

Returns the IprEnum with given index.

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

◆ operator[]()

IprEnum dca_ipr::IprEnums::operator[] ( DCA_INDEX_TYPE  index) const

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

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

◆ size()

DCA_SIZE_TYPE dca_ipr::IprEnums::size ( ) const

Returns the number of enums in the container.

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

◆ byId()

IprEnum dca_ipr::IprEnums::byId ( DCA_ENUM_ID_TYPE  id) const

Returns the IprEnum with the given id.

Parameters
[in]idThe id of the requested enum
Returns
The IprEnum with the given id in the container.

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