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
d3432ed8
Unverified
Commit
d3432ed8
authored
Dec 15, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merging in fixes from develop branch
parent
72fd03a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
include/cif++/condition.hpp
+5
-4
include/cif++/model.hpp
+3
-3
test/unit-v2-test.cpp
+3
-1
No files found.
include/cif++/condition.hpp
View file @
d3432ed8
...
...
@@ -215,7 +215,8 @@ namespace detail
if
(
m_single_hit
.
has_value
()
or
ri
->
m_single_hit
.
has_value
())
return
m_single_hit
==
ri
->
m_single_hit
;
else
return
m_item_ix
==
ri
->
m_item_ix
and
m_value
==
ri
->
m_value
;
// watch out, both m_item_ix might be the same while tags might be diffent (in case they both do not exist in the category)
return
m_item_ix
==
ri
->
m_item_ix
and
m_value
==
ri
->
m_value
and
m_item_tag
==
ri
->
m_item_tag
;
}
return
this
==
rhs
;
}
...
...
@@ -272,7 +273,8 @@ namespace detail
if
(
m_single_hit
.
has_value
()
or
ri
->
m_single_hit
.
has_value
())
return
m_single_hit
==
ri
->
m_single_hit
;
else
return
m_item_ix
==
ri
->
m_item_ix
and
m_value
==
ri
->
m_value
;
// watch out, both m_item_ix might be the same while tags might be diffent (in case they both do not exist in the category)
return
m_item_ix
==
ri
->
m_item_ix
and
m_value
==
ri
->
m_value
and
m_item_tag
==
ri
->
m_item_tag
;
}
return
this
==
rhs
;
}
...
...
@@ -857,4 +859,4 @@ namespace literals
}
}
// namespace literals
}
//
namespace
cif
\ No newline at end of file
}
// namespace cif
include/cif++/model.hpp
View file @
d3432ed8
...
...
@@ -50,7 +50,7 @@ class atom
private
:
struct
atom_impl
:
public
std
::
enable_shared_from_this
<
atom_impl
>
{
atom_impl
(
datablock
&
db
,
std
::
string_view
id
)
atom_impl
(
const
datablock
&
db
,
std
::
string_view
id
)
:
m_db
(
db
)
,
m_cat
(
db
[
"atom_site"
])
,
m_id
(
id
)
...
...
@@ -111,7 +111,7 @@ class atom
}
const
datablock
&
m_db
;
category
&
m_cat
;
c
onst
c
ategory
&
m_cat
;
std
::
string
m_id
;
point
m_location
;
std
::
string
m_symop
=
"1_555"
;
...
...
@@ -130,7 +130,7 @@ class atom
{
}
atom
(
datablock
&
db
,
row_handle
&
row
)
atom
(
const
datablock
&
db
,
const
row_handle
&
row
)
:
atom
(
std
::
make_shared
<
atom_impl
>
(
db
,
row
[
"id"
].
as
<
std
::
string
>
()))
{
}
...
...
test/unit-v2-test.cpp
View file @
d3432ed8
...
...
@@ -2337,6 +2337,7 @@ boo.data_.whatever
'stop_'
'loop_'
'global_'
'_with.leading_underscore'
)"
_cf
;
auto
&
db1
=
data1
.
front
();
...
...
@@ -2355,7 +2356,8 @@ boo.data_.whatever
{
"data_.whatever"
,
false
},
{
"stop_"
,
false
},
{
"loop_"
,
false
},
{
"global_"
,
false
}
{
"global_"
,
false
},
{
"_with.leading_underscore"
,
false
}
};
BOOST_CHECK_EQUAL
(
test1
.
size
(),
sizeof
(
kS
)
/
sizeof
(
T
));
...
...
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