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

#include <assembly.hpp>

Public Member Functions

 ChainNameGenerator (HowToNameCopiedChain how_)
 
 ChainNameGenerator (const Model &model, HowToNameCopiedChain how_)
 
bool try_add (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

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

Detailed Description

Definition at line 18 of file assembly.hpp.

Constructor & Destructor Documentation

◆ ChainNameGenerator() [1/2]

gemmi::ChainNameGenerator::ChainNameGenerator ( HowToNameCopiedChain  how_)
inline

Definition at line 22 of file assembly.hpp.

◆ ChainNameGenerator() [2/2]

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

Definition at line 23 of file assembly.hpp.

Member Function Documentation

◆ try_add()

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

Definition at line 28 of file assembly.hpp.

◆ make_short_name()

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

Definition at line 34 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 62 of file assembly.hpp.

◆ make_new_name()

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

Definition at line 72 of file assembly.hpp.

Member Data Documentation

◆ how

HowToNameCopiedChain gemmi::ChainNameGenerator::how

Definition at line 19 of file assembly.hpp.

◆ used_names

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

Definition at line 20 of file assembly.hpp.


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