gem5 v24.0.0.0
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 152 of file system.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 167 of file system.hh.

◆ iterator_category

Definition at line 165 of file system.hh.

◆ pointer

Definition at line 168 of file system.hh.

◆ reference

Definition at line 169 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 160 of file system.hh.

Referenced by operator++().

Member Function Documentation

◆ operator!=()

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

Definition at line 194 of file system.hh.

◆ operator*()

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

◆ operator++() [1/2]

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

Definition at line 172 of file system.hh.

References pos.

◆ operator++() [2/2]

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

Definition at line 179 of file system.hh.

References const_iterator(), pos, and threads.

◆ operator->()

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

◆ operator==()

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

Definition at line 188 of file system.hh.

References pos, and threads.

Friends And Related Symbol Documentation

◆ Threads

friend class Threads
friend

Definition at line 158 of file system.hh.

Member Data Documentation

◆ pos

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

Definition at line 156 of file system.hh.

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

◆ threads

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

Definition at line 155 of file system.hh.

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


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

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0