Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Olivier Stasse
dynamic-graph
Commits
3e09f772
Commit
3e09f772
authored
14 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Remove debug output
* src/command/value.cpp.
parent
0e65dc01
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/command/value.cpp
+0
-47
0 additions, 47 deletions
src/command/value.cpp
with
0 additions
and
47 deletions
src/command/value.cpp
+
0
−
47
View file @
3e09f772
...
...
@@ -69,91 +69,65 @@ namespace dynamicgraph {
Value
::~
Value
()
{
std
::
cout
<<
"Deleting Value at "
<<
this
;
switch
(
type_
)
{
case
BOOL
:
std
::
cout
<<
" type bool at "
<<
value_
;
delete
(
bool
*
)
value_
;
break
;
case
UNSIGNED
:
delete
(
unsigned
*
)
value_
;
std
::
cout
<<
" type unsigned at "
<<
value_
;
break
;
case
INT
:
delete
(
int
*
)
value_
;
std
::
cout
<<
" type int at "
<<
value_
;
break
;
case
FLOAT
:
delete
(
float
*
)
value_
;
std
::
cout
<<
" type float at "
<<
value_
;
break
;
case
DOUBLE
:
delete
(
double
*
)
value_
;
std
::
cout
<<
" type double at "
<<
value_
;
break
;
case
STRING
:
delete
(
std
::
string
*
)
value_
;
std
::
cout
<<
" type std::string at "
<<
value_
;
break
;
case
VECTOR
:
delete
(
Vector
*
)
value_
;
std
::
cout
<<
" type vector at "
<<
value_
;
break
;
case
MATRIX
:
delete
(
Matrix
*
)
value_
;
std
::
cout
<<
" type matrix at "
<<
value_
;
break
;
default:
;
}
std
::
cout
<<
std
::
endl
;
}
Value
::
Value
(
const
bool
&
value
)
:
type_
(
BOOL
),
value_
(
new
bool
(
value
))
{
std
::
cout
<<
"New Value bool at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
::
Value
(
const
unsigned
&
value
)
:
type_
(
UNSIGNED
),
value_
(
new
unsigned
(
value
))
{
std
::
cout
<<
"New Value unsigned at "
<<
" pointing at "
<<
value_
<<
this
<<
std
::
endl
;
}
Value
::
Value
(
const
int
&
value
)
:
type_
(
INT
),
value_
(
new
int
(
value
))
{
std
::
cout
<<
"New Value int at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
::
Value
(
const
float
&
value
)
:
type_
(
FLOAT
),
value_
(
new
float
(
value
))
{
std
::
cout
<<
"New Value float at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
::
Value
(
const
double
&
value
)
:
type_
(
DOUBLE
),
value_
(
new
double
(
value
))
{
std
::
cout
<<
"New Value double at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
::
Value
(
const
std
::
string
&
value
)
:
type_
(
STRING
),
value_
(
new
std
::
string
(
value
))
{
std
::
cout
<<
"New Value string at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
::
Value
(
const
Vector
&
value
)
:
type_
(
VECTOR
),
value_
(
new
Vector
(
value
))
{
std
::
cout
<<
"New Value Vector at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
::
Value
(
const
Matrix
&
value
)
:
type_
(
MATRIX
),
value_
(
new
Matrix
(
value
))
{
std
::
cout
<<
"New Value Matrix at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
...
...
@@ -165,51 +139,32 @@ namespace dynamicgraph {
void
*
copyValue
(
const
Value
&
value
)
{
void
*
copy
;
std
::
cout
<<
"copy: "
;
switch
(
value
.
type
())
{
case
Value
::
NONE
:
copy
=
NULL
;
std
::
cout
<<
"New Value None at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
case
Value
::
BOOL
:
copy
=
new
bool
(
value
.
boolValue
());
std
::
cout
<<
"New Value bool at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
UNSIGNED
:
copy
=
new
unsigned
(
value
.
unsignedValue
());
std
::
cout
<<
"New Value unsigned at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
INT
:
copy
=
new
int
(
value
.
intValue
());
std
::
cout
<<
"New Value int at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
FLOAT
:
copy
=
new
float
(
value
.
floatValue
());
std
::
cout
<<
"New Value float at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
DOUBLE
:
copy
=
new
double
(
value
.
doubleValue
());
std
::
cout
<<
"New Value double at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
STRING
:
copy
=
new
std
::
string
(
value
.
stringValue
());
std
::
cout
<<
"New Value string at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
VECTOR
:
copy
=
new
Vector
(
value
.
vectorValue
());
std
::
cout
<<
"New Value vector at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
case
Value
::
MATRIX
:
copy
=
new
Matrix
(
value
.
matrixValue
());
std
::
cout
<<
"New Value matrix at "
<<
copy
<<
" pointing at "
<<
copy
<<
std
::
endl
;
break
;
default:
abort
();
...
...
@@ -219,8 +174,6 @@ namespace dynamicgraph {
Value
::
Value
()
:
type_
(
NONE
),
value_
(
NULL
)
{
std
::
cout
<<
"New Value none at "
<<
this
<<
" pointing at "
<<
value_
<<
std
::
endl
;
}
Value
Value
::
operator
=
(
const
Value
&
value
)
...
...
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