Cartesius Library
link_mod Module Reference

Creates links for use polymorphic lists and adds procedures to manipulate them. More...

Data Types

interface  link
 

Functions/Subroutines

class(link) function, pointer nextlink (this)
 Returns a pointer to the next link. More...
 
subroutine setnextlink (this, next)
 Sets a pointer to the next link. More...
 
class(*) function, pointer getvalue (this)
 Returns a pointer to the value stored in the link. More...
 
class(link) function, pointer constructor (value, next, pDeallocator)
 Creates a new link and sets pointers to next link and to value. More...
 
subroutine deallocate_link (pLink)
 Deallocates the link and its value. More...
 

Detailed Description

Creates links for use polymorphic lists and adds procedures to manipulate them.

Author
Mark Leair, PGI Compiler Engineer

Function/Subroutine Documentation

◆ constructor()

class(link) function, pointer link_mod::constructor ( class(*), pointer  value,
class(link), pointer  next,
procedure(deallocatorprocedure), intent(in), optional, pointer  pDeallocator 
)

Creates a new link and sets pointers to next link and to value.

Note
Parameter next can be passed as null() to create the last link in a list.

◆ deallocate_link()

subroutine link_mod::deallocate_link ( class(*), intent(inout), pointer  pLink)

Deallocates the link and its value.

◆ getvalue()

class(*) function, pointer link_mod::getvalue ( class(link this)

Returns a pointer to the value stored in the link.

Here is the call graph for this function:

◆ nextlink()

class(link) function, pointer link_mod::nextlink ( class(link this)

Returns a pointer to the next link.

Here is the call graph for this function:

◆ setnextlink()

subroutine link_mod::setnextlink ( class(link this,
class(link), pointer  next 
)

Sets a pointer to the next link.