Vowpal Wabbit
Public Member Functions | Private Attributes | List of all members
ACTION_SCORE::score_iterator Class Reference

#include <action_score.h>

Inheritance diagram for ACTION_SCORE::score_iterator:

Public Member Functions

 score_iterator (action_score *p)
 
score_iteratoroperator++ ()
 
score_iterator operator+ (size_t n)
 
bool operator== (const score_iterator &other) const
 
bool operator!= (const score_iterator &other) const
 
bool operator< (const score_iterator &other) const
 
size_t operator- (const score_iterator &other) const
 
float & operator* ()
 

Private Attributes

action_score_p
 

Detailed Description

Definition at line 12 of file action_score.h.

Constructor & Destructor Documentation

◆ score_iterator()

ACTION_SCORE::score_iterator::score_iterator ( action_score p)
inline

Definition at line 22 of file action_score.h.

22 : _p(p) {}

Member Function Documentation

◆ operator!=()

bool ACTION_SCORE::score_iterator::operator!= ( const score_iterator other) const
inline

Definition at line 34 of file action_score.h.

References _p.

34 { return _p != other._p; }

◆ operator*()

float& ACTION_SCORE::score_iterator::operator* ( )
inline

Definition at line 40 of file action_score.h.

References ACTION_SCORE::action_score::score.

40 { return _p->score; }

◆ operator+()

score_iterator ACTION_SCORE::score_iterator::operator+ ( size_t  n)
inline

Definition at line 30 of file action_score.h.

30 { return {_p + n}; }

◆ operator++()

score_iterator& ACTION_SCORE::score_iterator::operator++ ( )
inline

Definition at line 24 of file action_score.h.

25  {
26  ++_p;
27  return *this;
28  }

◆ operator-()

size_t ACTION_SCORE::score_iterator::operator- ( const score_iterator other) const
inline

Definition at line 38 of file action_score.h.

References _p.

38 { return _p - other._p; }

◆ operator<()

bool ACTION_SCORE::score_iterator::operator< ( const score_iterator other) const
inline

Definition at line 36 of file action_score.h.

References _p.

36 { return _p < other._p; }

◆ operator==()

bool ACTION_SCORE::score_iterator::operator== ( const score_iterator other) const
inline

Definition at line 32 of file action_score.h.

References _p.

32 { return _p == other._p; }

Member Data Documentation

◆ _p

action_score* ACTION_SCORE::score_iterator::_p
private

Definition at line 19 of file action_score.h.

Referenced by operator!=(), operator-(), operator<(), and operator==().


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