Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
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
Stack Of Tasks
eigenpy
Commits
06b89f15
Unverified
Commit
06b89f15
authored
1 year ago
by
Joris Vaillant
Browse files
Options
Downloads
Patches
Plain Diff
Rename AddStdMethodToStdVector to ExposeStdMethodToStdVector
parent
5f1cc0ee
No related branches found
No related tags found
No related merge requests found
Pipeline
#32368
passed with warnings
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/eigenpy/std-vector.hpp
+9
-8
9 additions, 8 deletions
include/eigenpy/std-vector.hpp
with
9 additions
and
8 deletions
include/eigenpy/std-vector.hpp
+
9
−
8
View file @
06b89f15
...
...
@@ -359,13 +359,13 @@ struct contains_vector_derived_policies
/// returned to Python.
///
template
<
typename
Container
,
bool
NoProxy
,
typename
CoVisitor
>
struct
Add
StdMethodToStdVector
struct
Expose
StdMethodToStdVector
:
public
boost
::
python
::
def_visitor
<
Add
StdMethodToStdVector
<
Container
,
NoProxy
,
CoVisitor
>
>
{
Expose
StdMethodToStdVector
<
Container
,
NoProxy
,
CoVisitor
>
>
{
typedef
StdContainerFromPythonList
<
Container
,
NoProxy
>
FromPythonListConverter
;
Add
StdMethodToStdVector
(
const
CoVisitor
&
co_visitor
)
Expose
StdMethodToStdVector
(
const
CoVisitor
&
co_visitor
)
:
m_co_visitor
(
co_visitor
)
{}
template
<
class
Class
>
...
...
@@ -383,11 +383,11 @@ struct AddStdMethodToStdVector
const
CoVisitor
&
m_co_visitor
;
};
/// Helper to ease
Add
StdMethodToStdVector construction
/// Helper to ease
Expose
StdMethodToStdVector construction
template
<
typename
Container
,
bool
NoProxy
,
typename
CoVisitor
>
static
Add
StdMethodToStdVector
<
Container
,
NoProxy
,
CoVisitor
>
create
Add
StdMethodToStdVector
(
const
CoVisitor
&
co_visitor
)
{
return
Add
StdMethodToStdVector
<
Container
,
NoProxy
,
CoVisitor
>
(
co_visitor
);
static
Expose
StdMethodToStdVector
<
Container
,
NoProxy
,
CoVisitor
>
create
Expose
StdMethodToStdVector
(
const
CoVisitor
&
co_visitor
)
{
return
Expose
StdMethodToStdVector
<
Container
,
NoProxy
,
CoVisitor
>
(
co_visitor
);
}
}
// namespace internal
...
...
@@ -429,7 +429,8 @@ struct StdVectorPythonVisitor {
// Apply visitor on already registered type or if type is not already
// registered, we define and apply the visitor on it
auto
add_std_visitor
=
internal
::
createAddStdMethodToStdVector
<
vector_type
,
NoProxy
>
(
visitor
);
internal
::
createExposeStdMethodToStdVector
<
vector_type
,
NoProxy
>
(
visitor
);
if
(
!
register_symbolic_link_to_registered_type
<
vector_type
>
(
add_std_visitor
))
{
bp
::
class_
<
vector_type
>
cl
(
class_name
.
c_str
(),
doc_string
.
c_str
());
...
...
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