Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiste
libbulletml
Commits
f83909a9
Commit
f83909a9
authored
Dec 12, 2017
by
Kiste
Browse files
debian get-rid-of-boost.patch
parent
12bf9fa6
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/bulletmlrunner.cpp
View file @
f83909a9
...
...
@@ -11,7 +11,7 @@ BulletMLRunner::BulletMLRunner(BulletMLParser* bulletml) {
act
.
push_back
(
acts
[
i
]);
BulletMLState
*
state
=
new
BulletMLState
(
bulletml
,
act
,
boost
::
shared_ptr
<
BulletMLParameter
>
());
std
::
tr1
::
shared_ptr
<
BulletMLParameter
>
());
impl_
.
push_back
(
makeImpl
(
state
));
}
}
...
...
src/bulletmlrunner.h
View file @
f83909a9
...
...
@@ -11,7 +11,7 @@
#include
"bulletmlcommon.h"
#include
<vector>
#include
<
boost/smart_ptr.hpp
>
#include
<
tr1/memory
>
class
BulletMLParser
;
class
BulletMLNode
;
...
...
@@ -24,17 +24,17 @@ class BulletMLState {
public:
DECLSPEC
BulletMLState
(
BulletMLParser
*
bulletml
,
const
std
::
vector
<
BulletMLNode
*>&
node
,
boost
::
shared_ptr
<
BulletMLParameter
>
para
)
std
::
tr1
::
shared_ptr
<
BulletMLParameter
>
para
)
:
bulletml_
(
bulletml
),
node_
(
node
.
begin
(),
node
.
end
()),
para_
(
para
)
{}
DECLSPEC
BulletMLParser
*
getBulletML
()
{
return
bulletml_
;
}
DECLSPEC
const
std
::
vector
<
BulletMLNode
*>&
getNode
()
const
{
return
node_
;
}
DECLSPEC
boost
::
shared_ptr
<
BulletMLParameter
>
getParameter
()
{
return
para_
;
}
DECLSPEC
std
::
tr1
::
shared_ptr
<
BulletMLParameter
>
getParameter
()
{
return
para_
;
}
private:
BulletMLParser
*
bulletml_
;
std
::
vector
<
BulletMLNode
*>
node_
;
boost
::
shared_ptr
<
BulletMLParameter
>
para_
;
std
::
tr1
::
shared_ptr
<
BulletMLParameter
>
para_
;
};
...
...
src/bulletmlrunnerimpl.cpp
View file @
f83909a9
...
...
@@ -368,7 +368,7 @@ void BulletMLRunnerImpl::runRepeat() {
}
void
BulletMLRunnerImpl
::
runFireRef
()
{
boost
::
shared_ptr
<
Parameters
>
prevPara
=
parameters_
;
std
::
tr1
::
shared_ptr
<
Parameters
>
prevPara
=
parameters_
;
parameters_
.
reset
(
getParameters
());
refStack_
.
push
(
std
::
make_pair
(
act_
,
prevPara
));
...
...
@@ -376,7 +376,7 @@ void BulletMLRunnerImpl::runFireRef() {
}
void
BulletMLRunnerImpl
::
runActionRef
()
{
boost
::
shared_ptr
<
Parameters
>
prevPara
=
parameters_
;
std
::
tr1
::
shared_ptr
<
Parameters
>
prevPara
=
parameters_
;
parameters_
.
reset
(
getParameters
());
refStack_
.
push
(
std
::
make_pair
(
act_
,
prevPara
));
...
...
@@ -384,7 +384,7 @@ void BulletMLRunnerImpl::runActionRef() {
}
void
BulletMLRunnerImpl
::
runBulletRef
()
{
boost
::
shared_ptr
<
Parameters
>
prevPara
=
parameters_
;
std
::
tr1
::
shared_ptr
<
Parameters
>
prevPara
=
parameters_
;
parameters_
.
reset
(
getParameters
());
refStack_
.
push
(
std
::
make_pair
(
act_
,
prevPara
));
...
...
src/bulletmlrunnerimpl.h
View file @
f83909a9
...
...
@@ -6,7 +6,7 @@
#include
<vector>
#include
<memory>
#include
<stack>
#include
<
boost/smart_ptr.hpp
>
#include
<
tr1/memory
>
class
BulletMLRunner
;
class
BulletMLState
;
...
...
@@ -149,7 +149,7 @@ protected:
Validatable
<
double
>
spd_
,
dir_
,
prevSpd_
,
prevDir_
;
typedef
BulletMLParameter
Parameters
;
boost
::
shared_ptr
<
Parameters
>
parameters_
;
std
::
tr1
::
shared_ptr
<
Parameters
>
parameters_
;
protected:
BulletMLParser
*
bulletml_
;
...
...
@@ -171,7 +171,7 @@ protected:
typedef
std
::
stack
<
RepeatElem
*>
RepeatStack
;
RepeatStack
repeatStack_
;
typedef
std
::
stack
<
std
::
pair
<
BulletMLNode
*
,
boost
::
shared_ptr
<
Parameters
>
>
>
RefStack
;
std
::
tr1
::
shared_ptr
<
Parameters
>
>
>
RefStack
;
RefStack
refStack_
;
typedef
void
(
BulletMLRunnerImpl
::*
Method
)();
...
...
Write
Preview
Supports
Markdown
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