Rumba C++ SDK
maquina::WeightedComponent::Iterator Class Reference

The component iterator. More...

#include <WeightedComponent.h>

Public Member Functions

 Iterator (uint32_t index, const WeightedComponent *wc)
 
std::pair< uint32_t, float > operator* () const
 
uint32_t index () const
 Return the component element index. More...
 
float weight () const
 Return the component element weight, including the global weight. More...
 
Iteratoroperator++ ()
 
Iteratoroperator+ (uint32_t d)
 
bool operator!= (const Iterator &o) const
 

Detailed Description

The component iterator.

Constructor & Destructor Documentation

◆ Iterator()

maquina::WeightedComponent::Iterator::Iterator ( uint32_t  index,
const WeightedComponent wc 
)
inline

Member Function Documentation

◆ index()

uint32_t maquina::WeightedComponent::Iterator::index ( ) const
inline

Return the component element index.

◆ operator!=()

bool maquina::WeightedComponent::Iterator::operator!= ( const Iterator o) const
inline

◆ operator*()

std::pair<uint32_t, float> maquina::WeightedComponent::Iterator::operator* ( ) const
inline

◆ operator+()

Iterator& maquina::WeightedComponent::Iterator::operator+ ( uint32_t  d)
inline

◆ operator++()

Iterator& maquina::WeightedComponent::Iterator::operator++ ( )
inline

◆ weight()

float maquina::WeightedComponent::Iterator::weight ( ) const
inline

Return the component element weight, including the global weight.


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