Virtual Testbed
Ship dynamics simulator for extreme conditions
src
vtestbed
guile
guile/hull.cc
1
#include <vtestbed/config/real_type.hh>
2
#include <vtestbed/core/hull.hh>
3
#include <vtestbed/guile/macros.hh>
4
#include <vtestbed/guile/traits.hh>
5
6
using
object_type
=
vtb::core::Hull<VTB_REAL_TYPE>
;
7
using
traits_type
=
vtb::guile::Traits<object_type>
;
8
9
namespace
{
10
SCM type;
11
}
12
13
14
namespace
vtb
{
15
16
namespace
guile {
17
18
template
<> SCM traits_type::type() { return ::type; }
19
26
SCM
make_hull
() {
return
traits_type::make(); }
27
28
template
<>
void
29
traits_type::define() {
30
::type = define_type<object_type>(
"hull"
);
31
define_procedure(
"make-hull"
, 0, 0, 0, VTB_GUILE_0(
make_hull
));
32
}
33
34
}
35
36
}
vtb::core::Hull
Definition:
core/hull.hh:12
vtb::guile::Traits
Definition:
traits.hh:11
vtb::obj::Object
OBJ importer/exporter.
Definition:
object.hh:28
vtb
Main namespace.
Definition:
convert.hh:9
vtb::guile::make_hull
SCM make_hull()
Construct ship hull.
Definition:
guile/hull.cc:26
Generated by
1.8.15