Rosetta
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
protocols::indexed_structure_store::FragmentStoreManager Class Reference

#include <FragmentStoreManager.hh>

Inheritance diagram for protocols::indexed_structure_store::FragmentStoreManager:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string, std::map< numeric::Size, FragmentStoreOP > > GroupedFragmentMap
 
typedef std::map< std::string, FragmentLookupOPFragmentLookupMap
 
typedef std::map< std::string, SSHashedFragmentStoreOPSSHashedFragmentStoreMap
 

Public Member Functions

FragmentLookupOP load_fragment_lookup (std::string lookup_name)
 
FragmentLookupOP load_fragment_lookup (std::string lookup_name, std::string store_path)
 
FragmentStoreOP load_fragment_store (std::string lookup_name, std::string store_path, utility::vector1< std::string > fields_to_load, utility::vector1< std::string > fields_to_load_types)
 
std::map< numeric::Size, FragmentStoreOPload_grouped_fragment_store (std::string group_field, std::string lookup_name, std::string store_path, utility::vector1< std::string > fields_to_load, utility::vector1< std::string > fields_to_load_types)
 
SSHashedFragmentStoreOP SSHashedFragmentStore (std::string store_path="", std::string store_format="hashed", std::string store_compression="")
 
std::string resolve_store_path (std::string store_path)
 
std::map< numeric::Size, FragmentStoreOPfind_previously_loaded_fragmentStore (std::string const &fragment_store_path)
 
std::map< numeric::Size, FragmentStoreOPload_and_hash_fragmentStore (std::string const &fragment_store_path, std::string const &fragment_store_compression, numeric::Size const &fragment_size)
 
std::map< numeric::Size, std::vector< numeric::Size > > get_dssp_fragCt (StructureStoreOP structure_store, std::string const &fragment_store_compression, numeric::Size const &fragment_size, std::vector< numeric::Size > &ss_vector)
 
std::string queue_to_string (std::queue< char > frag_dssp)
 
void register_store_provider (core::SSize priority, std::string name, FragmentStoreProviderOP backend)
 

Private Member Functions

 FragmentStoreManager ()
 

Private Attributes

GroupedFragmentMap grouped_fragment_map_
 
SSHashedFragmentStoreMap SSHashedFragmentStoreMap_
 
std::map< std::tuple< core::SSize, std::string >, FragmentStoreProviderOPstore_providers
 
std::mutex cache_mutex
 

Friends

class utility::SingletonBase< FragmentStoreManager >
 

Member Typedef Documentation

◆ FragmentLookupMap

◆ GroupedFragmentMap

typedef std::map< std::string, std::map<numeric::Size, FragmentStoreOP> > protocols::indexed_structure_store::FragmentStoreManager::GroupedFragmentMap

◆ SSHashedFragmentStoreMap

Constructor & Destructor Documentation

◆ FragmentStoreManager()

protocols::indexed_structure_store::FragmentStoreManager::FragmentStoreManager ( )
private

References store_providers.

Member Function Documentation

◆ find_previously_loaded_fragmentStore()

std::map< numeric::Size, FragmentStoreOP > protocols::indexed_structure_store::FragmentStoreManager::find_previously_loaded_fragmentStore ( std::string const &  fragment_store_path)

References grouped_fragment_map_.

◆ get_dssp_fragCt()

std::map< numeric::Size, std::vector< numeric::Size > > protocols::indexed_structure_store::FragmentStoreManager::get_dssp_fragCt ( StructureStoreOP  structure_store,
std::string const &  fragment_store_compression,
numeric::Size const &  fragment_size,
std::vector< numeric::Size > &  ss_vector 
)

◆ load_and_hash_fragmentStore()

std::map< numeric::Size, FragmentStoreOP > protocols::indexed_structure_store::FragmentStoreManager::load_and_hash_fragmentStore ( std::string const &  fragment_store_path,
std::string const &  fragment_store_compression,
numeric::Size const &  fragment_size 
)

◆ load_fragment_lookup() [1/2]

FragmentLookupOP protocols::indexed_structure_store::FragmentStoreManager::load_fragment_lookup ( std::string  lookup_name)

References resolve_store_path().

◆ load_fragment_lookup() [2/2]

FragmentLookupOP protocols::indexed_structure_store::FragmentStoreManager::load_fragment_lookup ( std::string  lookup_name,
std::string  store_path 
)

◆ load_fragment_store()

FragmentStoreOP protocols::indexed_structure_store::FragmentStoreManager::load_fragment_store ( std::string  lookup_name,
std::string  store_path,
utility::vector1< std::string >  fields_to_load,
utility::vector1< std::string >  fields_to_load_types 
)

◆ load_grouped_fragment_store()

std::map< numeric::Size, FragmentStoreOP > protocols::indexed_structure_store::FragmentStoreManager::load_grouped_fragment_store ( std::string  group_field,
std::string  lookup_name,
std::string  store_path,
utility::vector1< std::string >  fields_to_load,
utility::vector1< std::string >  fields_to_load_types 
)

◆ queue_to_string()

std::string protocols::indexed_structure_store::FragmentStoreManager::queue_to_string ( std::queue< char >  frag_dssp)

Referenced by get_dssp_fragCt().

◆ register_store_provider()

void protocols::indexed_structure_store::FragmentStoreManager::register_store_provider ( core::SSize  priority,
std::string  name,
FragmentStoreProviderOP  backend 
)

References cache_mutex, and store_providers.

◆ resolve_store_path()

std::string protocols::indexed_structure_store::FragmentStoreManager::resolve_store_path ( std::string  store_path)

◆ SSHashedFragmentStore()

SSHashedFragmentStoreOP protocols::indexed_structure_store::FragmentStoreManager::SSHashedFragmentStore ( std::string  store_path = "",
std::string  store_format = "hashed",
std::string  store_compression = "" 
)

Friends And Related Function Documentation

◆ utility::SingletonBase< FragmentStoreManager >

friend class utility::SingletonBase< FragmentStoreManager >
friend

Member Data Documentation

◆ cache_mutex

std::mutex protocols::indexed_structure_store::FragmentStoreManager::cache_mutex
private

Referenced by register_store_provider().

◆ grouped_fragment_map_

GroupedFragmentMap protocols::indexed_structure_store::FragmentStoreManager::grouped_fragment_map_
private

◆ SSHashedFragmentStoreMap_

SSHashedFragmentStoreMap protocols::indexed_structure_store::FragmentStoreManager::SSHashedFragmentStoreMap_
private

Referenced by SSHashedFragmentStore().

◆ store_providers

std::map<std::tuple<core::SSize, std::string>, FragmentStoreProviderOP> protocols::indexed_structure_store::FragmentStoreManager::store_providers
private

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