Cartesius Library
|
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... | |
Creates links for use polymorphic lists and adds procedures to manipulate them.
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.
subroutine link_mod::deallocate_link | ( | class(*), intent(inout), pointer | pLink | ) |
Deallocates the link and its value.
class(*) function, pointer link_mod::getvalue | ( | class(link) | this | ) |
Returns a pointer to the value stored in the link.
Returns a pointer to the next link.