Gemmi C++ API
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
gemmi::ChainNameGenerator Struct Reference

#include <assembly.hpp>

Public Types

using How = HowToNameCopiedChain
 

Public Member Functions

 ChainNameGenerator (How how_)
 
 ChainNameGenerator (const Model &model, How how_)
 
bool has (const std::string &name) const
 
const std::string & added (const std::string &name)
 
std::string make_short_name (const std::string &preferred)
 
std::string make_name_with_numeric_postfix (const std::string &base, int n)
 
std::string make_new_name (const std::string &old, int n)
 

Public Attributes

How how
 
std::vector< std::string > used_names
 

Detailed Description

Definition at line 18 of file assembly.hpp.

Member Typedef Documentation

◆ How

Definition at line 19 of file assembly.hpp.

Constructor & Destructor Documentation

◆ ChainNameGenerator() [1/2]

gemmi::ChainNameGenerator::ChainNameGenerator ( How  how_)
inline

Definition at line 23 of file assembly.hpp.

◆ ChainNameGenerator() [2/2]

gemmi::ChainNameGenerator::ChainNameGenerator ( const Model model,
How  how_ 
)
inline

Definition at line 24 of file assembly.hpp.

Member Function Documentation

◆ has()

bool gemmi::ChainNameGenerator::has ( const std::string &  name) const
inline

Definition at line 29 of file assembly.hpp.

◆ added()

const std::string & gemmi::ChainNameGenerator::added ( const std::string &  name)
inline

Definition at line 32 of file assembly.hpp.

◆ make_short_name()

std::string gemmi::ChainNameGenerator::make_short_name ( const std::string &  preferred)
inline

Definition at line 37 of file assembly.hpp.

◆ make_name_with_numeric_postfix()

std::string gemmi::ChainNameGenerator::make_name_with_numeric_postfix ( const std::string &  base,
int  n 
)
inline

Definition at line 65 of file assembly.hpp.

◆ make_new_name()

std::string gemmi::ChainNameGenerator::make_new_name ( const std::string &  old,
int  n 
)
inline

Definition at line 75 of file assembly.hpp.

Member Data Documentation

◆ how

How gemmi::ChainNameGenerator::how

Definition at line 20 of file assembly.hpp.

◆ used_names

std::vector<std::string> gemmi::ChainNameGenerator::used_names

Definition at line 21 of file assembly.hpp.


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