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
23bd51ac
Commit
23bd51ac
authored
Oct 05, 2020
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed ItemReference operator<<
parent
9e200b94
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
include/cif++/Cif++.hpp
+0
-11
src/Cif++.cpp
+1
-1
src/Cif2PDB.cpp
+7
-7
No files found.
include/cif++/Cif++.hpp
View file @
23bd51ac
...
@@ -460,11 +460,6 @@ namespace detail
...
@@ -460,11 +460,6 @@ namespace detail
template
<
size_t
N
>
template
<
size_t
N
>
struct
ItemReference
::
item_value_as
<
char
[
N
]
>
struct
ItemReference
::
item_value_as
<
char
[
N
]
>
{
{
// static const char* convert(const ItemReference& ref)
// {
// return ref.c_str();
// }
static
int
compare
(
const
ItemReference
&
ref
,
const
char
(
&
value
)[
N
],
bool
icase
)
static
int
compare
(
const
ItemReference
&
ref
,
const
char
(
&
value
)[
N
],
bool
icase
)
{
{
return
icase
?
cif
::
icompare
(
ref
.
c_str
(),
value
)
:
std
::
strcmp
(
ref
.
c_str
(),
value
);
return
icase
?
cif
::
icompare
(
ref
.
c_str
(),
value
)
:
std
::
strcmp
(
ref
.
c_str
(),
value
);
...
@@ -499,12 +494,6 @@ namespace detail
...
@@ -499,12 +494,6 @@ namespace detail
}
}
};
};
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
ItemReference
&
rhs
)
{
os
<<
rhs
.
c_str
();
return
os
;
}
// some helper classes to help create tuple result types
// some helper classes to help create tuple result types
template
<
typename
...
C
>
template
<
typename
...
C
>
struct
getRowResult
struct
getRowResult
...
...
src/Cif++.cpp
View file @
23bd51ac
...
@@ -2748,7 +2748,7 @@ void Row::swap(size_t cix, ItemRow* a, ItemRow* b)
...
@@ -2748,7 +2748,7 @@ void Row::swap(size_t cix, ItemRow* a, ItemRow* b)
else
else
{
{
if
(
VERBOSE
)
if
(
VERBOSE
)
std
::
cerr
<<
"In "
<<
childCat
->
mName
<<
" changing "
<<
linkChildColName
<<
": "
<<
r
[
linkChildColName
]
<<
" => "
<<
(
i
?
i
->
mText
:
""
)
<<
std
::
endl
;
std
::
cerr
<<
"In "
<<
childCat
->
mName
<<
" changing "
<<
linkChildColName
<<
": "
<<
r
[
linkChildColName
]
.
as
<
float
>
()
<<
" => "
<<
(
i
?
i
->
mText
:
""
)
<<
std
::
endl
;
r
[
linkChildColName
]
=
i
?
i
->
mText
:
""
;
r
[
linkChildColName
]
=
i
?
i
->
mText
:
""
;
}
}
}
}
...
...
src/Cif2PDB.cpp
View file @
23bd51ac
...
@@ -3462,14 +3462,14 @@ void WriteCrystallographic(std::ostream& pdbFile, Datablock& db)
...
@@ -3462,14 +3462,14 @@ void WriteCrystallographic(std::ostream& pdbFile, Datablock& db)
boost
::
format
kCRYST1
(
"CRYST1%9.3f%9.3f%9.3f%7.2f%7.2f%7.2f %-11.11s%4.4d"
);
boost
::
format
kCRYST1
(
"CRYST1%9.3f%9.3f%9.3f%7.2f%7.2f%7.2f %-11.11s%4.4d"
);
pdbFile
<<
(
kCRYST1
pdbFile
<<
(
kCRYST1
%
r
[
"length_a"
]
%
r
[
"length_a"
]
.
as
<
double
>
()
%
r
[
"length_b"
]
%
r
[
"length_b"
]
.
as
<
double
>
()
%
r
[
"length_c"
]
%
r
[
"length_c"
]
.
as
<
double
>
()
%
r
[
"angle_alpha"
]
%
r
[
"angle_alpha"
]
.
as
<
double
>
()
%
r
[
"angle_beta"
]
%
r
[
"angle_beta"
]
.
as
<
double
>
()
%
r
[
"angle_gamma"
]
%
r
[
"angle_gamma"
]
.
as
<
double
>
()
%
symmetry
%
symmetry
%
r
[
"Z_PDB"
])
<<
std
::
endl
;
%
r
[
"Z_PDB"
]
.
as
<
double
>
()
)
<<
std
::
endl
;
}
}
int
WriteCoordinateTransformation
(
std
::
ostream
&
pdbFile
,
Datablock
&
db
)
int
WriteCoordinateTransformation
(
std
::
ostream
&
pdbFile
,
Datablock
&
db
)
...
...
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