Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
protocols::chromophore::ChromophoreDataReader Class Reference

#include <ChromophoreDataReader.hh>

Inheritance diagram for protocols::chromophore::ChromophoreDataReader:
Inheritance graph
[legend]

Public Member Functions

 ChromophoreDataReader ()
 Default constructor. More...
 
 ~ChromophoreDataReader () override
 Destructor. More...
 
ChromophoreDataReaderOP clone () const
 Clone operation: make a copy of this object, and return an owning pointer to the copy. More...
 
std::map< std::string,
std::string > 
get_residue_names_map (core::Size const &residue_number) const
 
void initialize_from_file (std::string const &filename)
 
void create_residue_names_maps (std::istream &instream)
 
bool map_for_residue_exists (core::Size const &residue_number) const
 
core::Size number_of_residues () const
 

Private Member Functions

void parse_file (std::istream &infile, utility::vector1< std::tuple< std::string, std::string, core::Size > > &meaningful_file_content)
 
void parse_line (std::string &file_line, std::tuple< std::string, std::string, core::Size > &parsed_line)
 

Private Attributes

std::map< core::Size, std::map
< std::string, std::string > > 
residue_name_maps_
 
bool was_initialized_
 

Constructor & Destructor Documentation

protocols::chromophore::ChromophoreDataReader::ChromophoreDataReader ( )

Default constructor.

protocols::chromophore::ChromophoreDataReader::~ChromophoreDataReader ( )
overridedefault

Destructor.

Member Function Documentation

ChromophoreDataReaderOP protocols::chromophore::ChromophoreDataReader::clone ( ) const

Clone operation: make a copy of this object, and return an owning pointer to the copy.

void protocols::chromophore::ChromophoreDataReader::create_residue_names_maps ( std::istream &  instream)
std::map< std::string, std::string > protocols::chromophore::ChromophoreDataReader::get_residue_names_map ( core::Size const &  residue_number) const

References residue_name_maps_.

void protocols::chromophore::ChromophoreDataReader::initialize_from_file ( std::string const &  filename)
bool protocols::chromophore::ChromophoreDataReader::map_for_residue_exists ( core::Size const &  residue_number) const
core::Size protocols::chromophore::ChromophoreDataReader::number_of_residues ( ) const

References residue_name_maps_.

Referenced by map_for_residue_exists().

void protocols::chromophore::ChromophoreDataReader::parse_file ( std::istream &  infile,
utility::vector1< std::tuple< std::string, std::string, core::Size > > &  meaningful_file_content 
)
private

References parse_line().

Referenced by create_residue_names_maps().

void protocols::chromophore::ChromophoreDataReader::parse_line ( std::string &  file_line,
std::tuple< std::string, std::string, core::Size > &  parsed_line 
)
private

Referenced by parse_file().

Member Data Documentation

std::map< core::Size, std::map <std::string, std::string> > protocols::chromophore::ChromophoreDataReader::residue_name_maps_
private
bool protocols::chromophore::ChromophoreDataReader::was_initialized_
private

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