gem5  v22.1.0.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
gem5::RegClassIterator Class Reference

#include <reg_class.hh>

Public Types

using iterator_category = std::forward_iterator_tag
 
using difference_type = std::size_t
 
using value_type = const RegId
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

reference operator* () const
 
pointer operator-> ()
 
RegClassIteratoroperator++ ()
 
RegClassIterator operator++ (int)
 
bool operator== (const RegClassIterator &other) const
 
bool operator!= (const RegClassIterator &other) const
 

Private Member Functions

 RegClassIterator (const RegClass &reg_class, RegIndex idx)
 

Private Attributes

RegId id
 

Friends

class RegClass
 

Detailed Description

Definition at line 288 of file reg_class.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 301 of file reg_class.hh.

◆ iterator_category

using gem5::RegClassIterator::iterator_category = std::forward_iterator_tag

Definition at line 300 of file reg_class.hh.

◆ pointer

Definition at line 303 of file reg_class.hh.

◆ reference

Definition at line 304 of file reg_class.hh.

◆ value_type

Definition at line 302 of file reg_class.hh.

Constructor & Destructor Documentation

◆ RegClassIterator()

gem5::RegClassIterator::RegClassIterator ( const RegClass reg_class,
RegIndex  idx 
)
inlineprivate

Definition at line 293 of file reg_class.hh.

Member Function Documentation

◆ operator!=()

bool gem5::RegClassIterator::operator!= ( const RegClassIterator other) const
inline

Definition at line 331 of file reg_class.hh.

References id.

◆ operator*()

reference gem5::RegClassIterator::operator* ( ) const
inline

Definition at line 306 of file reg_class.hh.

References id.

◆ operator++() [1/2]

RegClassIterator& gem5::RegClassIterator::operator++ ( )
inline

Definition at line 310 of file reg_class.hh.

◆ operator++() [2/2]

RegClassIterator gem5::RegClassIterator::operator++ ( int  )
inline

Definition at line 317 of file reg_class.hh.

◆ operator->()

pointer gem5::RegClassIterator::operator-> ( )
inline

Definition at line 307 of file reg_class.hh.

References id.

◆ operator==()

bool gem5::RegClassIterator::operator== ( const RegClassIterator other) const
inline

Definition at line 325 of file reg_class.hh.

References id.

Friends And Related Function Documentation

◆ RegClass

friend class RegClass
friend

Definition at line 297 of file reg_class.hh.

Member Data Documentation

◆ id

RegId gem5::RegClassIterator::id
private

Definition at line 291 of file reg_class.hh.

Referenced by operator!=(), operator*(), operator->(), and operator==().


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

Generated on Wed Dec 21 2022 10:23:13 for gem5 by doxygen 1.9.1