gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::PcCountPair Class Reference

#include <pc_count_pair.hh>

Classes

struct  HashFunction
 Enable hashing for this parameter. More...
 

Public Member Functions

constexpr PcCountPair (Addr _pc, uint64_t _count)
 Explicit constructor assigning the pc and count values.
 
 PcCountPair ()
 Default constructor for parameter classes.
 
constexpr Addr getPC () const
 Returns the Program Counter address.
 
constexpr uint64_t getCount () const
 Returns the count of the Program.
 
constexpr bool operator> (const PcCountPair &cc) const
 Greater than comparison.
 
constexpr bool operator== (const PcCountPair &cc) const
 Equal comparison.
 
std::string to_string () const
 String format.
 

Private Attributes

Addr pc
 The Program Counter address.
 
uint64_t count
 The count of the Program Counter address.
 

Detailed Description

Definition at line 37 of file pc_count_pair.hh.

Constructor & Destructor Documentation

◆ PcCountPair() [1/2]

gem5::PcCountPair::PcCountPair ( Addr _pc,
uint64_t _count )
inlineexplicitconstexpr

Explicit constructor assigning the pc and count values.

Definition at line 50 of file pc_count_pair.hh.

References count, and pc.

Referenced by gem5::PcCountPair::HashFunction::operator()(), operator==(), and operator>().

◆ PcCountPair() [2/2]

gem5::PcCountPair::PcCountPair ( )
inline

Default constructor for parameter classes.

Definition at line 54 of file pc_count_pair.hh.

References count, and pc.

Member Function Documentation

◆ getCount()

uint64_t gem5::PcCountPair::getCount ( ) const
inlineconstexpr

Returns the count of the Program.

Definition at line 59 of file pc_count_pair.hh.

References count.

Referenced by gem5::init_pc(), operator==(), and operator>().

◆ getPC()

Addr gem5::PcCountPair::getPC ( ) const
inlineconstexpr

Returns the Program Counter address.

Definition at line 57 of file pc_count_pair.hh.

References pc.

Referenced by gem5::init_pc(), and operator==().

◆ operator==()

bool gem5::PcCountPair::operator== ( const PcCountPair & cc) const
inlineconstexpr

Equal comparison.

Definition at line 70 of file pc_count_pair.hh.

References count, getCount(), getPC(), pc, and PcCountPair().

◆ operator>()

bool gem5::PcCountPair::operator> ( const PcCountPair & cc) const
inlineconstexpr

Greater than comparison.

Definition at line 63 of file pc_count_pair.hh.

References count, getCount(), and PcCountPair().

◆ to_string()

std::string gem5::PcCountPair::to_string ( ) const
inline

String format.

Definition at line 77 of file pc_count_pair.hh.

References count, pc, and gem5::ArmISA::s.

Referenced by gem5::init_pc().

Member Data Documentation

◆ count

uint64_t gem5::PcCountPair::count
private

The count of the Program Counter address.

Definition at line 45 of file pc_count_pair.hh.

Referenced by getCount(), gem5::PcCountPair::HashFunction::operator()(), operator==(), operator>(), PcCountPair(), PcCountPair(), and to_string().

◆ pc

Addr gem5::PcCountPair::pc
private

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

Generated on Mon May 26 2025 09:19:23 for gem5 by doxygen 1.13.2