gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::System::Threads::const_iterator Class Reference

#include <system.hh>

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = ThreadContext *
using difference_type = int
using pointer = const value_type *
using reference = const value_type &

Public Member Functions

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

Private Member Functions

 const_iterator (const Threads &_threads, int _pos)

Private Attributes

Threads const * threads
int pos

Friends

class Threads

Detailed Description

Definition at line 157 of file system.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 172 of file system.hh.

◆ iterator_category

Definition at line 170 of file system.hh.

◆ pointer

Definition at line 173 of file system.hh.

◆ reference

Definition at line 174 of file system.hh.

◆ value_type

Constructor & Destructor Documentation

◆ const_iterator()

gem5::System::Threads::const_iterator::const_iterator ( const Threads & _threads,
int _pos )
inlineprivate

Definition at line 165 of file system.hh.

References pos, Threads, and threads.

Referenced by operator!=(), operator++(), and operator==().

Member Function Documentation

◆ operator!=()

bool gem5::System::Threads::const_iterator::operator!= ( const const_iterator & other) const
inline

Definition at line 199 of file system.hh.

References const_iterator().

◆ operator*()

reference gem5::System::Threads::const_iterator::operator* ( )
inline

Definition at line 189 of file system.hh.

References pos, and threads.

◆ operator++() [1/2]

const_iterator & gem5::System::Threads::const_iterator::operator++ ( )
inline

Definition at line 177 of file system.hh.

References pos.

◆ operator++() [2/2]

const_iterator gem5::System::Threads::const_iterator::operator++ ( int )
inline

Definition at line 184 of file system.hh.

References const_iterator(), pos, and threads.

◆ operator->()

pointer gem5::System::Threads::const_iterator::operator-> ( )
inline

Definition at line 190 of file system.hh.

References pos, and threads.

◆ operator==()

bool gem5::System::Threads::const_iterator::operator== ( const const_iterator & other) const
inline

Definition at line 193 of file system.hh.

References const_iterator(), pos, and threads.

◆ Threads

friend class Threads
friend

Definition at line 163 of file system.hh.

References Threads.

Referenced by const_iterator(), and Threads.

Member Data Documentation

◆ pos

int gem5::System::Threads::const_iterator::pos
private

Definition at line 161 of file system.hh.

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

◆ threads

Threads const* gem5::System::Threads::const_iterator::threads
private

Definition at line 160 of file system.hh.

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


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

Generated on Sat Oct 18 2025 08:06:55 for gem5 by doxygen 1.14.0