Rosetta
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

◆ ChromophoreDataReader()

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

Default constructor.

◆ ~ChromophoreDataReader()

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

Destructor.

Member Function Documentation

◆ clone()

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

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

◆ create_residue_names_maps()

void protocols::chromophore::ChromophoreDataReader::create_residue_names_maps ( std::istream &  instream)

◆ get_residue_names_map()

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

References residue_name_maps_.

◆ initialize_from_file()

void protocols::chromophore::ChromophoreDataReader::initialize_from_file ( std::string const &  filename)

◆ map_for_residue_exists()

bool protocols::chromophore::ChromophoreDataReader::map_for_residue_exists ( core::Size const &  residue_number) const

◆ number_of_residues()

core::Size protocols::chromophore::ChromophoreDataReader::number_of_residues ( ) const

References residue_name_maps_.

Referenced by map_for_residue_exists().

◆ parse_file()

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().

◆ parse_line()

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

◆ residue_name_maps_

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

◆ was_initialized_

bool protocols::chromophore::ChromophoreDataReader::was_initialized_
private

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