class Chem::Topology::ResidueType

Defined in:

chem/topology/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.build(kind : Residue::Kind = :other, &) : self #

[View source]
def self.new(description : String, name : String, code : Char | Nil, kind : Residue::Kind, atom_types : Array(AtomType), bonds : Array(BondType), link_bond : BondType | Nil = nil, root : AtomType | Nil = nil) #

[View source]

Instance Method Detail

def [](atom_name : String) : AtomType #

[View source]
def []?(atom_name : String) : AtomType | Nil #

[View source]
def atom_count(*, include_hydrogens : Bool = true) #

[View source]
def atom_names : Array(String) #

[View source]
def atom_types : Array(AtomType) #

[View source]
def bonded_atoms(atom_t : AtomType) : Array(AtomType) #

[View source]
def bonds : Array(BondType) #

[View source]
def code : Char | Nil #

[View source]
def description : String #

[View source]
def each_atom_type(&block : AtomType -> ) #

[View source]
def formal_charge : Int32 #

[View source]
def inspect(io : ::IO) : Nil #

[View source]
def kind : Residue::Kind #

[View source]
def link_bond : BondType | Nil #

[View source]
def monomer? : Bool #

[View source]
def n_atoms : Int32 #

[View source]
def name : String #

[View source]
def root : AtomType | Nil #

[View source]