OpenStructure
Public Member Functions | Static Public Member Functions
LinearIndexer Class Reference

#include <linear_indexer.hh>

Public Member Functions

 LinearIndexer ()
 
void Save (const String &filename) const
 
void AddAssembly (const String &name, const std::vector< String > &chain_names, const std::vector< uint > &chain_lengths)
 
void RemoveAssembly (const String &name)
 
std::vector< StringGetAssemblies () const
 
std::vector< StringGetChainNames (const String &name) const
 
std::vector< uintGetChainLengths (const String &name) const
 
std::pair< uint64_t, uint64_tGetDataRange (const String &name) const
 
std::pair< uint64_t, uint64_tGetDataRange (const String &name, const String &chain_name) const
 
uint64_t GetNumResidues () const
 
bool operator== (const LinearIndexer &other) const
 
bool operator!= (const LinearIndexer &other) const
 

Static Public Member Functions

static LinearIndexerPtr Load (const String &filename)
 

Detailed Description

Definition at line 58 of file linear_indexer.hh.

Constructor & Destructor Documentation

◆ LinearIndexer()

LinearIndexer ( )
inline

Definition at line 62 of file linear_indexer.hh.

Member Function Documentation

◆ AddAssembly()

void AddAssembly ( const String name,
const std::vector< String > &  chain_names,
const std::vector< uint > &  chain_lengths 
)

◆ GetAssemblies()

std::vector<String> GetAssemblies ( ) const

◆ GetChainLengths()

std::vector<uint> GetChainLengths ( const String name) const

◆ GetChainNames()

std::vector<String> GetChainNames ( const String name) const

◆ GetDataRange() [1/2]

std::pair<uint64_t, uint64_t> GetDataRange ( const String name) const

◆ GetDataRange() [2/2]

std::pair<uint64_t, uint64_t> GetDataRange ( const String name,
const String chain_name 
) const

◆ GetNumResidues()

uint64_t GetNumResidues ( ) const
inline

Definition at line 85 of file linear_indexer.hh.

◆ Load()

static LinearIndexerPtr Load ( const String filename)
static

◆ operator!=()

bool operator!= ( const LinearIndexer other) const
inline

Definition at line 94 of file linear_indexer.hh.

◆ operator==()

bool operator== ( const LinearIndexer other) const
inline

Definition at line 87 of file linear_indexer.hh.

◆ RemoveAssembly()

void RemoveAssembly ( const String name)

◆ Save()

void Save ( const String filename) const

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