represent a simple array based list of the given type
source: molecule_list_types.Frepresents a pointer to a list
TYPE(molecule_list_type), |
POINTER | :: | list | the pointer to the list |
represent a list of objects
INTEGER |
:: | id_nr | identification number of this list | |
INTEGER |
:: | ref_count | reference count (see doc/ReferenceCounting.html) | |
INTEGER |
:: | n_els | ... | |
LOGICAL |
:: | owns_els | ... | |
TYPE(molecule_type), |
DIMENSION(:), POINTER | :: | els | ... |
creates a list
TYPE(molecule_list_type), |
POINTER, OPTIONAL |
:: | list | the list to allocate and initialize | |
TYPE(molecule_type), |
POINTER, OPTIONAL |
:: | els_ptr(:) | the elements to store in the list (the array is only, referenced, not copied!) | |
LOGICAL, |
INTENT(in), |
OPTIONAL |
:: | owns_els | if the list takes the ownership of els_ptr and will deallocate it (defaults to true) |
INTEGER, |
INTENT(in), |
OPTIONAL |
:: | n_els | number of elements in the list (at least one els_ptr or n_els should be given) |
releases a list (see doc/ReferenceCounting.html)
TYPE(molecule_list_type), |
POINTER |
:: | list | the list to release |
retains a list (see doc/ReferenceCounting.html)
TYPE(molecule_list_type), |
POINTER |
:: | list | the list to retain |