A generic linked list implementation in Fortran 95
Author(s) -
Jason R. Blevins
Publication year - 2009
Publication title -
acm sigplan fortran forum
Language(s) - English
Resource type - Journals
eISSN - 1931-1311
pISSN - 1061-7264
DOI - 10.1145/1667140.1667141
Subject(s) - fortran , computer science , programming language , interface (matter) , focus (optics) , simple (philosophy) , function (biology) , data type , data structure , computational science , parallel computing , philosophy , physics , bubble , epistemology , maximum bubble pressure method , evolutionary biology , optics , biology
This paper develops a standard conforming generic linked list in Fortran 95 which is capable of storing data of any type. The list is implemented using the transfer intrinsic function, and although the interface is generic, it remains relatively simple and minimizes the potential for error. Although linked lists are the focus of this paper, the generic programming techniques used are very general and broadly-applicable to other data structures and procedures implemented in Fortran 95 that need to be used with data of an unknown type.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom