MEPP2 Project
Graph_traits_extension_aif.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #pragma once
12 
13 /*
14  * Specialization of graph traits extension
15  * for AIF
16  */
17 
18 #include "Graph_traits_extension.h"
19 #include "Graph_traits_aif.h"
21 
22 namespace FEVV {
23 
24 
33 inline typename boost::graph_traits<
34  FEVV::DataStructures::AIF::AIFMesh >::vertices_size_type
36 {
37  return static_cast< typename boost::graph_traits<
38  FEVV::DataStructures::AIF::AIFMesh >::vertices_size_type >(
40 }
41 
42 
51 inline typename boost::graph_traits<
52  FEVV::DataStructures::AIF::AIFMesh >::edges_size_type
54 {
55  return static_cast< typename boost::graph_traits<
56  FEVV::DataStructures::AIF::AIFMesh >::edges_size_type >(
57  g.GetNumberOfEdges());
58 }
59 
60 
69 inline typename boost::graph_traits<
70  FEVV::DataStructures::AIF::AIFMesh >::faces_size_type
72 {
73  return static_cast< typename boost::graph_traits<
74  FEVV::DataStructures::AIF::AIFMesh >::faces_size_type >(
75  g.GetNumberOfFaces());
76 }
77 
78 
79 } // namespace FEVV
80 
FEVV::DataStructures::AIF::AIFMesh::GetNumberOfEdges
unsigned int GetNumberOfEdges() const
Definition: AIFMesh.hpp:214
FEVV::size_of_edges
boost::graph_traits< MeshT >::edges_size_type size_of_edges(const MeshT &g)
Real current number of edges of the mesh. Generic version.
Definition: Graph_traits_extension.h:46
FEVV::DataStructures::AIF::AIFMesh::GetNumberOfVertices
unsigned int GetNumberOfVertices() const
Definition: AIFMesh.hpp:206
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
AIFMesh.hpp
Graph_traits_aif.h
FEVV::DataStructures::AIF::AIFMesh::GetNumberOfFaces
unsigned int GetNumberOfFaces() const
Definition: AIFMesh.hpp:222
FEVV::size_of_faces
boost::graph_traits< MeshT >::faces_size_type size_of_faces(const MeshT &g)
Real current number of faces of the mesh. Generic version.
Definition: Graph_traits_extension.h:80
FEVV::DataStructures::AIF::AIFMesh
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
Definition: AIFMesh.hpp:47
Graph_traits_extension.h
FEVV::size_of_vertices
boost::graph_traits< MeshT >::vertices_size_type size_of_vertices(const MeshT &g)
Real current number of vertices of the mesh. Generic version.
Definition: Graph_traits_extension.h:29