abstract class Chem::Structure::Reader
- Chem::Structure::Reader
- Chem::IO::Reader(Chem::Structure)
- Reference
- Object
Included Modules
- Iterator(Chem::Structure)
Direct Known Subclasses
- Chem::DFTB::Gen::Reader
- Chem::Mol2::Reader
- Chem::PDB::Reader
- Chem::VASP::Poscar::Reader
- Chem::XYZ::Reader
Defined in:
chem/io/reader.crConstructors
- .new(input : ::IO, guess_topology : Bool = true, sync_close : Bool = true)
- .new(path : Path | String, guess_topology : Bool = true) : self
Instance Method Summary
- #each(indexes : Enumerable(Int), &block : Structure -> )
- #read_entry : Structure
- #select(indexes : Enumerable(Int)) : Iterator(Structure)
-
#skip(n : Int) : Iterator(Structure)
Returns an iterator that skips the first n elements and only returns the elements after that.
- #skip_structure : Nil
Instance methods inherited from class Chem::IO::Reader(Chem::Structure)
close
close,
closed?
closed?,
parse_exception(msg : String)
parse_exception,
read_entry : T
read_entry,
sync_close=(sync_close : Bool)
sync_close=,
sync_close?
sync_close?
Constructor methods inherited from class Chem::IO::Reader(Chem::Structure)
new(io : ::IO, sync_close : Bool = true)new(path : Path | String) : self new
Class methods inherited from class Chem::IO::Reader(Chem::Structure)
open(io : ::IO, sync_close : Bool = true, **options, &)open(path : Path | String, **options, &) open
Constructor Detail
Instance Method Detail
Description copied from module Iterator(Chem::Structure)
Returns an iterator that skips the first n elements and only returns the elements after that.
iter = (1..3).each.skip(2)
iter.next # -> 3
iter.next # -> Iterator::Stop::INSTANCE