21 #ifndef OST_DB_LINEAR_INDEXER_HH
22 #define OST_DB_LINEAR_INDEXER_HH
27 #include <boost/shared_ptr.hpp>
32 namespace ost {
namespace db {
39 void Read(std::ifstream& in_stream);
41 void Write(std::ofstream& out_stream)
const;
50 return !(*
this==other);
69 const std::vector<String>& chain_names,
70 const std::vector<uint>& chain_lengths);
83 const String& chain_name)
const;
88 return (assemblies_ == other.assemblies_ &&
89 idx_mapper_ == other.idx_mapper_ &&
90 current_num_residues_ == other.current_num_residues_);
95 return !(*
this == other);
100 std::vector<AssemblyInfo> assemblies_;
101 std::map<String, int> idx_mapper_;
std::vector< String > GetChainNames(const String &name) const
std::pair< uint64_t, uint64_t > GetDataRange(const String &name, const String &chain_name) const
std::pair< uint64_t, uint64_t > GetDataRange(const String &name) const
std::vector< String > GetAssemblies() const
bool operator!=(const LinearIndexer &other) const
void Save(const String &filename) const
bool operator==(const LinearIndexer &other) const
void RemoveAssembly(const String &name)
static LinearIndexerPtr Load(const String &filename)
void AddAssembly(const String &name, const std::vector< String > &chain_names, const std::vector< uint > &chain_lengths)
uint64_t GetNumResidues() const
std::vector< uint > GetChainLengths(const String &name) const
boost::shared_ptr< LinearIndexer > LinearIndexerPtr
unsigned __int64 uint64_t
void Write(std::ofstream &out_stream) const
bool operator==(const AssemblyInfo &other) const
std::vector< String > chain_names
std::vector< uint > chain_lengths
bool operator!=(const AssemblyInfo &other) const
void Read(std::ifstream &in_stream)