gem5  v22.1.0.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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_iterator (const const_iterator &)=default
 
const_iteratoroperator= (const const_iterator &)=default
 
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

const Threadsthreads
 
int pos
 

Friends

class Threads
 

Detailed Description

Definition at line 152 of file system.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 170 of file system.hh.

◆ iterator_category

Definition at line 168 of file system.hh.

◆ pointer

Definition at line 171 of file system.hh.

◆ reference

Definition at line 172 of file system.hh.

◆ value_type

Definition at line 169 of file system.hh.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

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

Definition at line 160 of file system.hh.

Referenced by operator++().

◆ const_iterator() [2/2]

gem5::System::Threads::const_iterator::const_iterator ( const const_iterator )
default

Member Function Documentation

◆ operator!=()

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

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

References pos.

◆ operator++() [2/2]

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

Definition at line 182 of file system.hh.

References const_iterator(), pos, and threads.

◆ operator->()

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

◆ operator=()

const_iterator& gem5::System::Threads::const_iterator::operator= ( const const_iterator )
default

◆ operator==()

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

Definition at line 191 of file system.hh.

References pos, and threads.

Friends And Related Function 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->(), and operator==().

◆ threads

const Threads& 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 Wed Dec 21 2022 10:23:31 for gem5 by doxygen 1.9.1