hPDB-1.1: Protein Databank file format library

Safe HaskellNone

Bio.PDB.Iterable

Description

Iterable instances and convenience functions.

Synopsis

Documentation

class Iterable a b where

Class for iterating all nested components b of type a.

Methods

itmapM :: Monad m => (b -> m b) -> a -> m a

itmap :: (b -> b) -> a -> a

itfoldM :: Monad m => (c -> b -> m c) -> c -> a -> m c

itfoldr :: (b -> c -> c) -> c -> a -> c

itfoldl :: (c -> b -> c) -> c -> a -> c

itfoldl' :: (c -> b -> c) -> c -> a -> c

itlength :: b -> a -> Int

firstModel :: Iterable a Model => a -> Maybe ModelSource

Takes a first model.

numAtoms :: Iterable a Atom => a -> IntSource

Number of all atoms within the structure.

numResidues :: Iterable a Residue => a -> IntSource

Number of all residues within the structure.

numChains :: Iterable a Chain => a -> IntSource

Number of all chains within the structure.

numModels :: Iterable a Model => a -> IntSource

Number of all models within the structure.