Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
c0873a23
Commit
c0873a23
authored
8 years ago
by
Michael Vandeberg
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#6
from steemit/1-deprecate-operator
Remove support for id(db) syntax
parents
a1ca9309
3f86a4c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/chainbase/chainbase.hpp
+0
-7
0 additions, 7 deletions
include/chainbase/chainbase.hpp
with
0 additions
and
7 deletions
include/chainbase/chainbase.hpp
+
0
−
7
View file @
c0873a23
...
@@ -68,8 +68,6 @@ namespace chainbase {
...
@@ -68,8 +68,6 @@ namespace chainbase {
typedef
boost
::
interprocess
::
sharable_lock
<
read_write_mutex
>
read_lock
;
typedef
boost
::
interprocess
::
sharable_lock
<
read_write_mutex
>
read_lock
;
typedef
boost
::
unique_lock
<
read_write_mutex
>
write_lock
;
typedef
boost
::
unique_lock
<
read_write_mutex
>
write_lock
;
class
database
;
/**
/**
* Object ID type that includes the type of the object it references
* Object ID type that includes the type of the object it references
*/
*/
...
@@ -77,7 +75,6 @@ namespace chainbase {
...
@@ -77,7 +75,6 @@ namespace chainbase {
class
oid
{
class
oid
{
public:
public:
oid
(
int64_t
i
=
0
)
:
_id
(
i
){}
oid
(
int64_t
i
=
0
)
:
_id
(
i
){}
const
T
&
operator
()(
const
database
&
db
)
const
;
oid
&
operator
++
()
{
++
_id
;
return
*
this
;
}
oid
&
operator
++
()
{
++
_id
;
return
*
this
;
}
...
@@ -861,10 +858,6 @@ namespace chainbase {
...
@@ -861,10 +858,6 @@ namespace chainbase {
bfs
::
path
_data_dir
;
bfs
::
path
_data_dir
;
};
};
template
<
typename
T
>
const
T
&
oid
<
T
>::
operator
()(
const
database
&
db
)
const
{
return
db
.
get
<
T
>
(
_id
);
}
template
<
typename
Object
,
typename
...
Args
>
template
<
typename
Object
,
typename
...
Args
>
using
shared_multi_index_container
=
boost
::
multi_index_container
<
Object
,
Args
...,
chainbase
::
allocator
<
Object
>
>
;
using
shared_multi_index_container
=
boost
::
multi_index_container
<
Object
,
Args
...,
chainbase
::
allocator
<
Object
>
>
;
}
// namepsace chainbase
}
// namepsace chainbase
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment