Otawa
0.10
|
This class is a stack to store call chain in the program call graph. More...
#include <otawa/flowfact/ContextualLoopBound.h>
Public Member Functions | |
void | push (const T &addr) |
Add a call to the call stack (becoming the new top call). More... | |
T | pop (void) |
Remove the top call from the call stack. More... | |
const T & | top (void) const |
Return the top function call. More... | |
int | count (void) const |
Get the count of calls in the path. More... | |
const T & | get (int i) const |
Get the function call at position i (0 for the top function call). More... | |
const T & | operator[] (int i) const |
Shortcut to get(). More... | |
bool | isEmpty (void) const |
operator bool (void) const | |
void | clear (void) |
Private Attributes | |
genstruct::Vector< T > | stack |
This class is a stack to store call chain in the program call graph.
The top level element (index 0) is the current call and previous elements represents the call that has driven to the current call.
T | Representation of a function call. |
|
inline |
|
inline |
Get the count of calls in the path.
Referenced by otawa::ContextualLoopBound::findMax(), otawa::ContextualLoopBound::findTotal(), and otawa::ContextualLoopBound::look().
|
inline |
Get the function call at position i (0 for the top function call).
i | Position of the function call to get. |
|
inline |
|
inline |
|
inline |
Shortcut to get().
|
inline |
Remove the top call from the call stack.
|
inline |
Add a call to the call stack (becoming the new top call).
addr | Function call to push. |
|
inline |
Return the top function call.
|
private |