Factory.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: Factory.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Factory methods for CubbyFlow.
6 > Created Time: 2017/05/01
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_FACTORY_H
10 #define CUBBYFLOW_FACTORY_H
11 
12 #include <Core/Grid/ScalarGrid2.h>
13 #include <Core/Grid/ScalarGrid3.h>
14 #include <Core/Grid/VectorGrid2.h>
15 #include <Core/Grid/VectorGrid3.h>
18 
19 namespace CubbyFlow
20 {
21  class Factory
22  {
23  public:
24  static ScalarGrid2Ptr BuildScalarGrid2(const std::string& name);
25 
26  static ScalarGrid3Ptr BuildScalarGrid3(const std::string& name);
27 
28  static VectorGrid2Ptr BuildVectorGrid2(const std::string& name);
29 
30  static VectorGrid3Ptr BuildVectorGrid3(const std::string& name);
31 
32  static PointNeighborSearcher2Ptr BuildPointNeighborSearcher2(const std::string& name);
33 
34  static PointNeighborSearcher3Ptr BuildPointNeighborSearcher3(const std::string& name);
35  };
36 }
37 
38 #endif
static ScalarGrid3Ptr BuildScalarGrid3(const std::string &name)
static VectorGrid2Ptr BuildVectorGrid2(const std::string &name)
std::shared_ptr< PointNeighborSearcher3 > PointNeighborSearcher3Ptr
Shared pointer for the PointNeighborSearcher3 type.
Definition: PointNeighborSearcher3.h:79
std::shared_ptr< ScalarGrid3 > ScalarGrid3Ptr
Shared pointer for the ScalarGrid3 type.
Definition: ScalarGrid3.h:179
Definition: pybind11Utils.h:24
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid2.h:90
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid2.h:179
Definition: Factory.h:21
std::shared_ptr< PointNeighborSearcher2 > PointNeighborSearcher2Ptr
Shared pointer for the PointNeighborSearcher2 type.
Definition: PointNeighborSearcher2.h:79
static VectorGrid3Ptr BuildVectorGrid3(const std::string &name)
static PointNeighborSearcher3Ptr BuildPointNeighborSearcher3(const std::string &name)
std::shared_ptr< VectorGrid3 > VectorGrid3Ptr
Shared pointer for the VectorGrid3 type.
Definition: VectorGrid3.h:90
static PointNeighborSearcher2Ptr BuildPointNeighborSearcher2(const std::string &name)
static ScalarGrid2Ptr BuildScalarGrid2(const std::string &name)