gem5  v20.1.0.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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 143 of file system.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 161 of file system.hh.

◆ iterator_category

using System::Threads::const_iterator::iterator_category = std::forward_iterator_tag

Definition at line 159 of file system.hh.

◆ pointer

Definition at line 162 of file system.hh.

◆ reference

Definition at line 163 of file system.hh.

◆ value_type

Definition at line 160 of file system.hh.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

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

Definition at line 151 of file system.hh.

Referenced by operator++().

◆ const_iterator() [2/2]

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

Member Function Documentation

◆ operator!=()

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

Definition at line 188 of file system.hh.

◆ operator*()

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

Definition at line 178 of file system.hh.

References System::Threads::Thread::context, pos, System::Threads::thread(), and threads.

◆ operator++() [1/2]

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

Definition at line 166 of file system.hh.

References pos.

◆ operator++() [2/2]

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

Definition at line 173 of file system.hh.

References const_iterator(), pos, and threads.

◆ operator->()

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

Definition at line 179 of file system.hh.

References System::Threads::Thread::context, pos, System::Threads::thread(), and threads.

◆ operator=()

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

◆ operator==()

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

Definition at line 182 of file system.hh.

References pos, and threads.

Friends And Related Function Documentation

◆ Threads

friend class Threads
friend

Definition at line 149 of file system.hh.

Member Data Documentation

◆ pos

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

Definition at line 147 of file system.hh.

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

◆ threads

const Threads& System::Threads::const_iterator::threads
private

Definition at line 146 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 Sep 30 2020 14:02:32 for gem5 by doxygen 1.8.17