Doxygen XLinks
by
V: 2511R0
Website: doxygen
Loading...
Searching...
No Matches
dxl::Target::KindStats Class Reference

Description:

Statistics. Counts the number of targets of each kind.

Definition at line 175 of file target.hpp.

#include <target.hpp>

Public Method Index:

 KindStats ()
 Constructor.
void Add (Kinds pKind)
int Get (Kinds pKind)
int GetByIdx (int kindIdx)

Protected Field Index:

int count [size_t(MAX_KIND)]
 The counted number of elements for each kind.

Field Details:

◆ count

int dxl::Target::KindStats::count[size_t(MAX_KIND)]
protected

The counted number of elements for each kind.

Definition at line 178 of file target.hpp.

Constructor(s) / Destructor Details:

◆ KindStats()

dxl::Target::KindStats::KindStats ( )
inline

Constructor.

Definition at line 182 of file target.hpp.

Method Details:

◆ Add()

void dxl::Target::KindStats::Add ( Kinds pKind)
inline

Counts the given kind.

Parameters
pKindThe kind to count.

Definition at line 186 of file target.hpp.

◆ Get()

int dxl::Target::KindStats::Get ( Kinds pKind)
inline

Returns the number of entities of a given kind parsed from the tag-file.

Parameters
pKindThe kind to receive the quantity for.
Returns
The quantity of kinds of given kind pKind.

Definition at line 195 of file target.hpp.

◆ GetByIdx()

int dxl::Target::KindStats::GetByIdx ( int kindIdx)
inline

Returns the number of entities of a given kind parsed from the tag-file.

Parameters
kindIdxThe kind-index to receive the quantity for.
Returns
The quantity of kinds of given kindIdx.

Definition at line 204 of file target.hpp.


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