gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
MVertexBoundaryLayerData.cpp
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
7 
8 std::vector<MVertex *> *MVertexBoundaryLayerData::getChildren(int i)
9 {
10  if(i < (int)this->children.size() && i >= 0) { return &(children[i]); }
11  else {
12  return nullptr;
13  }
14 }
15 
17 {
18  if(i < (int)this->children.size() && i >= 0) {
19  return (int)this->children[i].size();
20  }
21  else {
22  return -1;
23  }
24 }
25 
27 {
28  return (int)this->children.size();
29 }
30 
32  const std::vector<MVertex *> &family)
33 {
34  this->children.push_back(family);
35 }
MVertexBoundaryLayerData::getNumChildrenFamilies
int getNumChildrenFamilies()
Definition: MVertexBoundaryLayerData.cpp:26
MVertexBoundaryLayerData::getChildren
std::vector< MVertex * > * getChildren(int i)
Definition: MVertexBoundaryLayerData.cpp:8
MVertexBoundaryLayerData::addChildrenFamily
void addChildrenFamily(const std::vector< MVertex * > &family)
Definition: MVertexBoundaryLayerData.cpp:31
MVertexBoundaryLayerData::getNumChildren
int getNumChildren(int i)
Definition: MVertexBoundaryLayerData.cpp:16
MVertexBoundaryLayerData::children
std::vector< std::vector< MVertex * > > children
Definition: MVertexBoundaryLayerData.h:20
MVertexBoundaryLayerData.h