Skip to content

Commit

Permalink
Cleanup deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Oct 16, 2023
1 parent c8e9dd4 commit e256a5b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/include/iDynTree/Axis.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ namespace iDynTree
*/
Axis(const Axis & other);

/**
* Assignment operator: assign a Axis from another Axis
*/
Axis& operator=(const Axis& other);

/**
* Get the direction of the axis
*/
Expand Down
8 changes: 8 additions & 0 deletions src/core/include/iDynTree/MatrixView.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ namespace iDynTree
: MatrixView(other.m_storage, other.m_rows, other.m_cols, other.m_storageOrder)
{
}
MatrixView& operator=(const MatrixView& other)
{
this->m_storage = other.m_storage;
this->m_rows = other.m_rows;
this->m_cols = other.m_cols;
this->m_storageOrder = other.m_storageOrder;
return *this;
}

#ifndef SWIG
template <
Expand Down
6 changes: 6 additions & 0 deletions src/core/src/Axis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ namespace iDynTree

}

Axis& Axis::operator=(const Axis& other)
{
this->direction = other.getDirection();
this->origin = other.getOrigin();
return *this;
}

const Direction& Axis::getDirection() const
{
Expand Down

0 comments on commit e256a5b

Please sign in to comment.