Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
core::io::pdb::RecordCollection Class Reference

#include <RecordCollection.hh>

Inheritance diagram for core::io::pdb::RecordCollection:
Inheritance graph
[legend]

Static Public Member Functions

static bool is_valid_record_type (std::string const &type)
 Is the given string a valid 6-letter PDB record type? More...
 
static Record record_from_record_type (RecordType const &type)
 Get the corresponding PDB record from the corresponding record type. More...
 
static Record record_from_record_type (std::string const &type)
 Get the corresponding PDB record from the corresponding record type string. More...
 

Private Member Functions

 RecordCollection ()
 

Private Attributes

std::map< std::string, RecordTypestring_to_record_type_map_
 
RecordDef record_definitions_
 

Friends

class utility::SingletonBase< RecordCollection >
 

Detailed Description

This class is a singleton and manages the definitions of PDB Records, which should only be read from the database one time.

Constructor & Destructor Documentation

core::io::pdb::RecordCollection::RecordCollection ( )
private

Member Function Documentation

bool core::io::pdb::RecordCollection::is_valid_record_type ( std::string const &  type)
static

Is the given string a valid 6-letter PDB record type?

Referenced by record_from_record_type().

Record core::io::pdb::RecordCollection::record_from_record_type ( RecordType const &  type)
static
Record core::io::pdb::RecordCollection::record_from_record_type ( std::string const &  type)
static

Get the corresponding PDB record from the corresponding record type string.

References is_valid_record_type(), record_definitions_, string_to_record_type_map_, and core::io::pdb::UNKNOW.

Friends And Related Function Documentation

friend class utility::SingletonBase< RecordCollection >
friend

Member Data Documentation

RecordDef core::io::pdb::RecordCollection::record_definitions_
private
std::map< std::string, RecordType > core::io::pdb::RecordCollection::string_to_record_type_map_
private

The documentation for this class was generated from the following files: