Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
09895ba8
Commit
09895ba8
authored
May 20, 2013
by
Davis King
Browse files
added ranges
parent
b0a14513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tools/python/src/basic.cpp
tools/python/src/basic.cpp
+9
-0
No files found.
tools/python/src/basic.cpp
View file @
09895ba8
...
@@ -157,6 +157,15 @@ void bind_basic_types()
...
@@ -157,6 +157,15 @@ void bind_basic_types()
.
def_pickle
(
serialize_pickle
<
type
>
());
.
def_pickle
(
serialize_pickle
<
type
>
());
}
}
{
typedef
std
::
vector
<
std
::
vector
<
std
::
pair
<
unsigned
long
,
unsigned
long
>
>
>
type
;
class_
<
type
>
(
"rangess"
,
"This object is an array of arrays of range objects."
)
.
def
(
vector_indexing_suite
<
type
>
())
.
def
(
"clear"
,
&
type
::
clear
)
.
def
(
"resize"
,
resize
<
type
>
)
.
def_pickle
(
serialize_pickle
<
type
>
());
}
typedef
pair
<
unsigned
long
,
double
>
pair_type
;
typedef
pair
<
unsigned
long
,
double
>
pair_type
;
class_
<
pair_type
>
(
"pair"
,
"This object is used to represent the elements of a sparse_vector."
,
init
<>
()
)
class_
<
pair_type
>
(
"pair"
,
"This object is used to represent the elements of a sparse_vector."
,
init
<>
()
)
...
...
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