(git:f2099e5)
Loading...
Searching...
No Matches
callgraph Module Reference

Data Types

type  callgraph_type
type  callgraph_item_type

Functions/Subroutines

subroutine, public callgraph_init (hash_map, initial_capacity)
 Allocates the internal data-structures of the given hash map.
subroutine, public callgraph_destroy (hash_map)
 Deallocated the internal data-structures if the given hash map. Caution: If the stored keys or values are pointers, their targets will not get deallocated by this routine.
subroutine, public callgraph_set (hash_map, key, value)
 Stores, and possibly overwrites, a given value under a given key.
type(call_stat_type) function, pointer, public callgraph_get (hash_map, key, default_value)
 Gets a value for a given key from the hash map. If the key is not found the default_value will be returned. If the key is not found and default_value was not provided the program stops.
integer function, public callgraph_size (hash_map)
 Returns the number of key/value-items currently stored in the hash map.
logical function, public callgraph_haskey (hash_map, key)
 Checks whether a given key is currently stored in the hash_map.
type(callgraph_item_type) function, dimension(:), pointer, public callgraph_items (hash_map)
 Returns a pointer to an array of all key/value-items stored in the hash map. Caution: The caller is responsible for deallocating targeted array after usage.

Function/Subroutine Documentation

◆ callgraph_init()

subroutine, public callgraph::callgraph_init ( type(callgraph_type), intent(inout) hash_map,
integer, intent(in), optional initial_capacity )

Allocates the internal data-structures of the given hash map.

Parameters
hash_map...
initial_capacityThe initial size of the internal array (default=11).
Author
Ole Schuett

Definition at line 77 of file callgraph.F.

Here is the caller graph for this function:

◆ callgraph_destroy()

subroutine, public callgraph::callgraph_destroy ( type(callgraph_type), intent(inout) hash_map)

Deallocated the internal data-structures if the given hash map. Caution: If the stored keys or values are pointers, their targets will not get deallocated by this routine.

Parameters
hash_map...
Author
Ole Schuett

Definition at line 121 of file callgraph.F.

Here is the caller graph for this function:

◆ callgraph_set()

subroutine, public callgraph::callgraph_set ( type(callgraph_type), intent(inout) hash_map,
integer(kind=int_4), dimension(2), intent(in) key,
type(call_stat_type), intent(in), pointer value )

Stores, and possibly overwrites, a given value under a given key.

Parameters
hash_map...
key...
value...
Author
Ole Schuett

Definition at line 148 of file callgraph.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ callgraph_get()

type(call_stat_type) function, pointer, public callgraph::callgraph_get ( type(callgraph_type), intent(in) hash_map,
integer(kind=int_4), dimension(2), intent(in) key,
type(call_stat_type), intent(in), optional, pointer default_value )

Gets a value for a given key from the hash map. If the key is not found the default_value will be returned. If the key is not found and default_value was not provided the program stops.

Parameters
hash_map...
key...
default_value...
Returns
...
Author
Ole Schuett

Definition at line 256 of file callgraph.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ callgraph_size()

integer function, public callgraph::callgraph_size ( type(callgraph_type), intent(in) hash_map)

Returns the number of key/value-items currently stored in the hash map.

Parameters
hash_map...
Returns
...
Author
Ole Schuett

Definition at line 334 of file callgraph.F.

◆ callgraph_haskey()

logical function, public callgraph::callgraph_haskey ( type(callgraph_type), intent(in) hash_map,
integer(kind=int_4), dimension(2), intent(in) key )

Checks whether a given key is currently stored in the hash_map.

Parameters
hash_map...
key...
Returns
...
Author
Ole Schuett

Definition at line 349 of file callgraph.F.

Here is the call graph for this function:

◆ callgraph_items()

type(callgraph_item_type) function, dimension(:), pointer, public callgraph::callgraph_items ( type(callgraph_type), intent(in) hash_map)

Returns a pointer to an array of all key/value-items stored in the hash map. Caution: The caller is responsible for deallocating targeted array after usage.

Parameters
hash_map...
Returns
...
Author
Ole Schuett

Definition at line 384 of file callgraph.F.

Here is the call graph for this function:
Here is the caller graph for this function: