Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
cd1e9528
Unverified
Commit
cd1e9528
authored
Apr 23, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
residue::create_new_atom
parent
996f1e42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
include/cif++/model.hpp
+15
-1
src/model.cpp
+0
-0
No files found.
include/cif++/model.hpp
View file @
cd1e9528
...
...
@@ -350,7 +350,12 @@ class atom
std
::
string
get_pdb_ins_code
()
const
{
return
get_property
(
"pdbx_PDB_ins_code"
);
}
///< Return the pdb_ins_code property
/// Return true if this atom is an alternate
bool
is_alternate
()
const
{
return
not
get_label_alt_id
().
empty
();
}
bool
is_alternate
()
const
{
if
(
auto
alt_id
=
get_label_alt_id
();
alt_id
.
empty
()
or
alt_id
==
"."
)
return
false
;
return
true
;
}
/// Convenience method to return a string that might be ID in PDB space
std
::
string
pdb_id
()
const
...
...
@@ -575,6 +580,10 @@ class residue
m_auth_seq_id
==
rhs
.
m_auth_seq_id
);
}
/// @brief Create a new atom and add it to the list
/// @return newly created atom
virtual
atom
create_new_atom
(
atom_type
inType
,
const
std
::
string
&
inAtomID
,
point
inLocation
);
protected
:
/** @cond */
residue
()
{}
...
...
@@ -675,6 +684,8 @@ class monomer : public residue
return
m_polymer
==
rhs
.
m_polymer
and
m_index
==
rhs
.
m_index
;
}
atom
create_new_atom
(
atom_type
inType
,
const
std
::
string
&
inAtomID
,
point
inLocation
)
override
;
private
:
const
polymer
*
m_polymer
;
std
::
size_t
m_index
;
...
...
@@ -1094,6 +1105,9 @@ class structure
/// \brief emplace the moved atom @a atom
atom
&
emplace_atom
(
atom
&&
atom
);
/// \brief Reorder atom_site atoms based on 'natural' ordering
void
reorder_atoms
();
private
:
friend
polymer
;
friend
residue
;
...
...
src/model.cpp
View file @
cd1e9528
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment