Callsite Class Reference
[PEARL.base]

Stores information related to a call site. More...

#include <Callsite.h>

Inheritance diagram for Callsite:

IdObject

List of all members.

Public Member Functions

Constructors & destructor
 Callsite (ident_t id, const std::string &file, line_t line, Region *callee)
Get call site information
std::string get_file () const
line_t get_line () const
Regionget_callee () const


Detailed Description

The instances of the Callsite class provide information about source-code locations where the control flow may move from one region to another. It does not necessarily have to be a function call site, instead, it can also be a loop entry, where the control flow may move from the enclosing region to the loop region.

The numerical identifiers of the individual call sites are globally defined and continuously enumerated, i.e., the ID is element of [0,#call_sites-1].

Note:
The associated Region object is not owned by the Callsite object. Therefore, it is not deleted if the instance is released.

Constructor & Destructor Documentation

Callsite ( ident_t  id,
const std::string &  file,
line_t  line,
Region callee 
)

Creates a new instance and sets data to the given values.

Parameters:
id Call site identifier
file Name of the file in which the call site is located
line Line number of the call site location
callee Source code region to be entered


Member Function Documentation

Region * get_callee (  )  const

Returns the source code region to be entered.

Returns:
Source-code region

string get_file (  )  const

Returns the name of the file in which the call site is located.

Returns:
File name

line_t get_line (  )  const

Returns the source code line number of the call site location.

Returns:
Line number


SCALASCA    Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre