Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shambase::details::BasicStackEntry Struct Reference
Collaboration diagram for shambase::details::BasicStackEntry:

Public Member Functions

 BasicStackEntry (bool do_timer=true, SourceLocation &&loc=SourceLocation{})
 Construct a new Basic Stack Entry object.
 BasicStackEntry (SourceLocation &callsite, bool do_timer=true, SourceLocation &&loc=SourceLocation{})
 Construct a new Basic Stack Entry object.
 ~BasicStackEntry ()
 Destroy the Basic Stack Entry object.

Public Attributes

SourceLocation loc
 Source location attached to the entry.
bool do_timer
 is the timer enabled for this entry
f64 wtime_start
 start time of the entry
CallStackEntry scoped_callstack_entry
 scoped call stack entry

Detailed Description

Definition at line 106 of file stacktrace.hpp.

Constructor & Destructor Documentation

◆ BasicStackEntry() [1/2]

shambase::details::BasicStackEntry::BasicStackEntry ( bool do_timer = true,
SourceLocation && loc = SourceLocation{} )
inline

Construct a new Basic Stack Entry object.

Parameters
do_timerIs the timer enabled for this entry (default: true)
locSource location attached to the entry (default: SourceLocation{})

Definition at line 122 of file stacktrace.hpp.

◆ BasicStackEntry() [2/2]

shambase::details::BasicStackEntry::BasicStackEntry ( SourceLocation & callsite,
bool do_timer = true,
SourceLocation && loc = SourceLocation{} )
inline

Construct a new Basic Stack Entry object.

Parameters
do_timerIs the timer enabled for this entry (default: true)
locSource location attached to the entry (default: SourceLocation{})

Definition at line 140 of file stacktrace.hpp.

◆ ~BasicStackEntry()

shambase::details::BasicStackEntry::~BasicStackEntry ( )
inline

Destroy the Basic Stack Entry object.

Pop the source location from the call stack and stop the timer if enabled.

Definition at line 158 of file stacktrace.hpp.

Member Data Documentation

◆ do_timer

bool shambase::details::BasicStackEntry::do_timer

is the timer enabled for this entry

Definition at line 108 of file stacktrace.hpp.

◆ loc

SourceLocation shambase::details::BasicStackEntry::loc

Source location attached to the entry.

Definition at line 107 of file stacktrace.hpp.

◆ scoped_callstack_entry

CallStackEntry shambase::details::BasicStackEntry::scoped_callstack_entry

scoped call stack entry

Definition at line 114 of file stacktrace.hpp.

◆ wtime_start

f64 shambase::details::BasicStackEntry::wtime_start

start time of the entry

Definition at line 111 of file stacktrace.hpp.


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