Skip to content

degawa/LinkedList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Doubly Linked List for Fortran 2003

Overview

This is a module to introduce a Doubly Linked List feature into Fortran 2003.

Description

The List is based on the Object-Oriented Programming, so the List can treat all types Fortran supports including integer, real, character and derived-type by using the Unlimited Polymorphism feature. The List also provide iterator feature for user's convenience. This iterator allows you to write multiple loop.

Demo

You can try the List by compiling linkedlist.f90 and execute it.

Feature

  • written in Fortran 2003 - you may not be staring in envy Java anymore
  • based on the Object-Oriented Programming
  • treat all types Fortran supports by the Unlimited Polymorphism feature
  • provide iterator feature such as Java's List. the procedures next() and hasNext() are also available

Requirement

  • Recommended (perhaps necessary) compiler is Intel Fortran Composer XE 2013 update 5 or later.
    I am modifying the codes to complete the compilation using PGI Fortran 14.9.

Bugs

Calling subroutines related to remove an item from a list including only one item causes an illegal memory access. if you'd like to remove all items from a list, you can use the clear() subroutine.

Author

Tom

About

Doubly Linked List for Fortran 2003.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published