Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Types | Public Member Functions | Static Public Member Functions | List of all members
vtb::db::Compartments< T > Class Template Reference
Inheritance diagram for vtb::db::Compartments< T >:
[legend]
Collaboration diagram for vtb::db::Compartments< T >:
[legend]

Public Types

using room_type = Room< T >
 
using room_array = std::vector< room_type >
 
using polyhedron_type = typename room_type::polyhedron_type
 
using geometry_array = std::vector< polyhedron_type >
 
using vec3 = vtb::geometry::Vertex< T, 3 >
 
using int3 = vtb::geometry::Vertex< int, 3 >
 
using core_room_array = vtb::core::Compartment_array< T >
 
- Public Types inherited from vtb::db::Entity
typedef int64_t id_type
 
typedef std::string string_type
 
typedef const std::stringstring_reference
 

Public Member Functions

void clear ()
 
void import (std::string filename)
 
void import_original ()
 
void filename (const std::string &filename)
 
bool has_valid_id (sqlite::connection *db) const
 
bool original (sqlite::connection *db) const
 
void insert (sqlite::connection *db)
 
void copy (sqlite::connection *db)
 
void select (sqlite::connection *db)
 
void select_blobs (sqlite::connection *db)
 
void update (sqlite::connection *db)
 
void remove (sqlite::connection *db)
 
void save (sqlite::connection *db)
 
void read (sqlite::statement &in)
 
void install (polyhedron_type hull, T wall_thickness, T eps)
 
const room_arrayrooms () const
 
void rooms (room_array &&rhs)
 
void set_compartments (const core_room_array &rhs)
 
core_room_array make_compartments (bool transform) const
 
string_reference filename () const
 
- Public Member Functions inherited from vtb::db::Entity
id_type id () const
 
void id (id_type rhs)
 
bool has_id () const
 
const std::stringname () const
 
std::stringname ()
 
void name (const std::string &rhs)
 
string_reference description () const
 
void description (string_reference &rhs)
 
string_reference filename () const
 
const sqlite::blob & file_content () const
 
void clear ()
 
void export_original (std::string filename) const
 

Static Public Member Functions

static std::vector< Compartments< T > > all (sqlite::connection *db)
 

Additional Inherited Members

- Protected Member Functions inherited from vtb::db::Entity
std::string temporary_filename () const
 
- Protected Attributes inherited from vtb::db::Entity
id_type _id = 0
 
std::string _name
 
std::string _description
 
std::string _filename
 
sqlite::blob _filecontent
 

Detailed Description

template<class T>
class vtb::db::Compartments< T >

Definition at line 51 of file db/compartments.hh.