Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
models
solver
data_model_common.hpp
Go to the documentation of this file.
1
9
#ifndef TYMPAN__DATA_MODEL_COMMON_HPP__INCLUDED
10
#define TYMPAN__DATA_MODEL_COMMON_HPP__INCLUDED
11
12
#include "
std_boost_utils.hpp
"
13
14
#include "
Tympan/models/common/3d.h
"
15
#include "
Tympan/models/common/spectre.h
"
16
17
// This section import some types from CommonTools
18
// under a more generic name into the tympan namespace. Indeed,
19
// there must be no dependency to TY-classes and no direct
20
// ones to O-classes from within the solver data model.
21
namespace
tympan
22
{
23
typedef
OPoint3D
Point
;
24
typedef
OVector3D
Vector
;
25
typedef
OSpectre
Spectrum
;
26
typedef
OSpectreComplex
ComplexSpectrum
;
27
28
typedef
std::deque<Point>
nodes_pool_t
;
29
typedef
size_t
node_idx
;
30
}
// namespace tympan
31
32
namespace
tympan
33
{
34
41
class
BaseEntity
42
{
43
protected
:
44
BaseEntity
(){};
45
46
public
:
47
virtual
~BaseEntity
(){};
48
49
// virtual tympan::shared_ptr<BaseEntity> ptr_any() = 0;
50
// virtual tympan::shared_ptr<BaseEntity const> ptr_any() const = 0;
51
//
52
// template <class T>
53
// tympan::shared_ptr<T> ptr()
54
// { return boost::dynamic_pointer_cast<T>(ptr_any()); }
55
//
56
// template <class T>
57
// tympan::shared_ptr<T const> ptr() const
58
// { return boost::dynamic_pointer_cast<T const>(ptr_any()); }
59
};
60
61
}
/* namespace tympan */
62
63
#endif
/* TYMPAN__DATA_MODEL_COMMON_HPP__INCLUDED */
3d.h
All base classes related to 3D manipulation.
OPoint3D
The 3D point class.
Definition:
3d.h:487
OSpectreComplex
Definition:
spectre.h:480
OSpectre
Definition:
spectre.h:325
OVector3D
The 3D vector class.
Definition:
3d.h:298
tympan::BaseEntity
The base of all entity classes.
Definition:
data_model_common.hpp:42
tympan::BaseEntity::BaseEntity
BaseEntity()
Definition:
data_model_common.hpp:44
tympan::BaseEntity::~BaseEntity
virtual ~BaseEntity()
Constructor.
Definition:
data_model_common.hpp:47
tympan
Definition:
exceptions.h:41
tympan::ComplexSpectrum
OSpectreComplex ComplexSpectrum
Definition:
data_model_common.hpp:26
tympan::Spectrum
OSpectre Spectrum
Definition:
spectrum_matrix.h:10
tympan::Point
OPoint3D Point
Definition:
data_model_common.hpp:23
tympan::nodes_pool_t
std::deque< Point > nodes_pool_t
Definition:
data_model_common.hpp:28
tympan::Vector
OVector3D Vector
Definition:
data_model_common.hpp:24
tympan::node_idx
size_t node_idx
Definition:
data_model_common.hpp:29
spectre.h
std_boost_utils.hpp
Misc utilities used by SolverDataModel.
Generated on Mon Nov 27 2023 07:56:33 for Code_TYMPAN by
1.9.1