mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
Do not pass vector arguments by value
This commit is contained in:
parent
73edef8516
commit
d246fa304c
@ -561,7 +561,7 @@ SMDS_MeshVolume* SMESHDS_Mesh::AddVolume(const SMDS_MeshNode * n1,
|
|||||||
//function : AddPolygonalFace
|
//function : AddPolygonalFace
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFaceWithID (std::vector<int> nodes_ids,
|
SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFaceWithID (const std::vector<int>& nodes_ids,
|
||||||
const int ID)
|
const int ID)
|
||||||
{
|
{
|
||||||
SMDS_MeshFace *anElem = SMDS_Mesh::AddPolygonalFaceWithID(nodes_ids, ID);
|
SMDS_MeshFace *anElem = SMDS_Mesh::AddPolygonalFaceWithID(nodes_ids, ID);
|
||||||
@ -572,7 +572,7 @@ SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFaceWithID (std::vector<int> nodes_ids,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFaceWithID
|
SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFaceWithID
|
||||||
(std::vector<const SMDS_MeshNode*> nodes,
|
(const std::vector<const SMDS_MeshNode*>& nodes,
|
||||||
const int ID)
|
const int ID)
|
||||||
{
|
{
|
||||||
SMDS_MeshFace *anElem = SMDS_Mesh::AddPolygonalFaceWithID(nodes, ID);
|
SMDS_MeshFace *anElem = SMDS_Mesh::AddPolygonalFaceWithID(nodes, ID);
|
||||||
@ -588,7 +588,7 @@ SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFaceWithID
|
|||||||
}
|
}
|
||||||
|
|
||||||
SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFace
|
SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFace
|
||||||
(std::vector<const SMDS_MeshNode*> nodes)
|
(const std::vector<const SMDS_MeshNode*>& nodes)
|
||||||
{
|
{
|
||||||
SMDS_MeshFace *anElem = SMDS_Mesh::AddPolygonalFace(nodes);
|
SMDS_MeshFace *anElem = SMDS_Mesh::AddPolygonalFace(nodes);
|
||||||
if (anElem) {
|
if (anElem) {
|
||||||
@ -606,8 +606,8 @@ SMDS_MeshFace* SMESHDS_Mesh::AddPolygonalFace
|
|||||||
//function : AddPolyhedralVolume
|
//function : AddPolyhedralVolume
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolumeWithID (std::vector<int> nodes_ids,
|
SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolumeWithID (const std::vector<int>& nodes_ids,
|
||||||
std::vector<int> quantities,
|
const std::vector<int>& quantities,
|
||||||
const int ID)
|
const int ID)
|
||||||
{
|
{
|
||||||
SMDS_MeshVolume *anElem = SMDS_Mesh::AddPolyhedralVolumeWithID(nodes_ids, quantities, ID);
|
SMDS_MeshVolume *anElem = SMDS_Mesh::AddPolyhedralVolumeWithID(nodes_ids, quantities, ID);
|
||||||
@ -618,8 +618,8 @@ SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolumeWithID (std::vector<int> nodes
|
|||||||
}
|
}
|
||||||
|
|
||||||
SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolumeWithID
|
SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolumeWithID
|
||||||
(std::vector<const SMDS_MeshNode*> nodes,
|
(const std::vector<const SMDS_MeshNode*>& nodes,
|
||||||
std::vector<int> quantities,
|
const std::vector<int>& quantities,
|
||||||
const int ID)
|
const int ID)
|
||||||
{
|
{
|
||||||
SMDS_MeshVolume *anElem = SMDS_Mesh::AddPolyhedralVolumeWithID(nodes, quantities, ID);
|
SMDS_MeshVolume *anElem = SMDS_Mesh::AddPolyhedralVolumeWithID(nodes, quantities, ID);
|
||||||
@ -635,8 +635,8 @@ SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolumeWithID
|
|||||||
}
|
}
|
||||||
|
|
||||||
SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolume
|
SMDS_MeshVolume* SMESHDS_Mesh::AddPolyhedralVolume
|
||||||
(std::vector<const SMDS_MeshNode*> nodes,
|
(const std::vector<const SMDS_MeshNode*>& nodes,
|
||||||
std::vector<int> quantities)
|
const std::vector<int>& quantities)
|
||||||
{
|
{
|
||||||
SMDS_MeshVolume *anElem = SMDS_Mesh::AddPolyhedralVolume(nodes, quantities);
|
SMDS_MeshVolume *anElem = SMDS_Mesh::AddPolyhedralVolume(nodes, quantities);
|
||||||
if (anElem) {
|
if (anElem) {
|
||||||
|
@ -354,27 +354,27 @@ public:
|
|||||||
const SMDS_MeshNode * n37,
|
const SMDS_MeshNode * n37,
|
||||||
const SMDS_MeshNode * n48);
|
const SMDS_MeshNode * n48);
|
||||||
|
|
||||||
virtual SMDS_MeshFace* AddPolygonalFaceWithID (std::vector<int> nodes_ids,
|
virtual SMDS_MeshFace* AddPolygonalFaceWithID (const std::vector<int>& nodes_ids,
|
||||||
const int ID);
|
const int ID);
|
||||||
|
|
||||||
virtual SMDS_MeshFace* AddPolygonalFaceWithID (std::vector<const SMDS_MeshNode*> nodes,
|
virtual SMDS_MeshFace* AddPolygonalFaceWithID (const std::vector<const SMDS_MeshNode*>& nodes,
|
||||||
const int ID);
|
const int ID);
|
||||||
|
|
||||||
virtual SMDS_MeshFace* AddPolygonalFace (std::vector<const SMDS_MeshNode*> nodes);
|
virtual SMDS_MeshFace* AddPolygonalFace (const std::vector<const SMDS_MeshNode*>& nodes);
|
||||||
|
|
||||||
virtual SMDS_MeshVolume* AddPolyhedralVolumeWithID
|
virtual SMDS_MeshVolume* AddPolyhedralVolumeWithID
|
||||||
(std::vector<int> nodes_ids,
|
(const std::vector<int>& nodes_ids,
|
||||||
std::vector<int> quantities,
|
const std::vector<int>& quantities,
|
||||||
const int ID);
|
const int ID);
|
||||||
|
|
||||||
virtual SMDS_MeshVolume* AddPolyhedralVolumeWithID
|
virtual SMDS_MeshVolume* AddPolyhedralVolumeWithID
|
||||||
(std::vector<const SMDS_MeshNode*> nodes,
|
(const std::vector<const SMDS_MeshNode*>& nodes,
|
||||||
std::vector<int> quantities,
|
const std::vector<int>& quantities,
|
||||||
const int ID);
|
const int ID);
|
||||||
|
|
||||||
virtual SMDS_MeshVolume* AddPolyhedralVolume
|
virtual SMDS_MeshVolume* AddPolyhedralVolume
|
||||||
(std::vector<const SMDS_MeshNode*> nodes,
|
(const std::vector<const SMDS_MeshNode*>& nodes,
|
||||||
std::vector<int> quantities);
|
const std::vector<int>& quantities);
|
||||||
|
|
||||||
void MoveNode(const SMDS_MeshNode *, double x, double y, double z);
|
void MoveNode(const SMDS_MeshNode *, double x, double y, double z);
|
||||||
virtual void RemoveNode(const SMDS_MeshNode *);
|
virtual void RemoveNode(const SMDS_MeshNode *);
|
||||||
|
Loading…
Reference in New Issue
Block a user