MEPP2 Project
AIFVertex.inl
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 namespace FEVV {
12 namespace DataStructures {
13 namespace AIF {
14 
15 inline
18 {
19  ptr_vertex ptr(new self());
20  return ptr;
21 }
22 
23 inline
25 AIFVertex::New(const self &other)
26 {
27  ptr_vertex ptr(new self(other));
28  return ptr;
29 }
30 
31 inline
32 void
34 {
35  std::cout << "vertex " << this << " at index " << GetIndex() << std::endl;
36 }
37 
38 } // namespace AIF
39 } // namespace DataStructures
40 } // namespace FEVV
FEVV::DataStructures::AIF::AIFVertex::ptr
boost::shared_ptr< self > ptr
Definition: AIFVertex.hpp:47
FEVV::DataStructures::AIF::AIFVertex::Print
void Print() const
Definition: AIFVertex.inl:33
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::DataStructures::AIF::AIFVertex::ptr_vertex
boost::shared_ptr< self > ptr_vertex
Definition: AIFVertex.hpp:48
FEVV::DataStructures::AIF::AIFVertex::GetIndex
std::size_t GetIndex() const
Definition: AIFVertex.hpp:142
FEVV::DataStructures::AIF::AIFVertex::New
static ptr_vertex New()
Definition: AIFVertex.inl:17