Virtual Testbed
Ship dynamics simulator for extreme conditions
Classes | Enumerations | Functions | Variables
vtb::db Namespace Reference

Ship geometry database. More...

Classes

class  Compartments
 
class  Entity
 
class  Hull
 
class  Marine_object_database
 
struct  object_wrapper
 
class  Room
 
class  Ship
 
class  Ship_hull_transformation
 
class  Transform_sequence
 

Enumerations

enum  Transformations {
  Mirror = 1,
  Flip = 2,
  Centre_of_mass = 3,
  Rotate = 4,
  Scale = 5,
  Centre_of_bounding_box = 6,
  Move = 7,
  Centre_auto = 8
}
 

Functions

template<class Object >
sqlite::blob make_blob (const Object &object)
 
template<class Object >
sqlite::cstream & operator>> (sqlite::cstream &in, const object_wrapper< Object > &rhs)
 
template<class Object >
object_wrapper< Object > make_object (Object &object)
 
template<class T >
sqlite::statement & operator>> (sqlite::statement &in, Room< T > &rhs)
 
template<class T >
sqlite::statement & operator>> (sqlite::statement &in, Compartments< T > &rhs)
 
template<class T >
sqlite::statement & operator>> (sqlite::statement &in, Hull< T > &rhs)
 
template<class T >
void swap (Hull< T > &lhs, Hull< T > &rhs)
 
sqlite::connection make_database ()
 
void schema (sqlite::connection *db)
 
template<class T >
sqlite::statement & operator>> (sqlite::statement &in, Ship< T > &rhs)
 
const char * to_string (Transformations rhs)
 
std::ostreamoperator<< (std::ostream &out, Transformations rhs)
 
std::istreamoperator>> (std::istream &in, Transformations &rhs)
 
template<class T >
std::ostreamoperator<< (std::ostream &out, const Ship_hull_transformation< T > &rhs)
 
template<class T >
std::istreamoperator>> (std::istream &in, Ship_hull_transformation< T > &rhs)
 
template<class T >
std::string to_string (const Ship_hull_transformation< T > &rhs)
 
template<class T >
std::ostreamoperator<< (std::ostream &out, const Transform_sequence< T > &rhs)
 
template<class T >
std::istreamoperator>> (std::istream &in, Transform_sequence< T > &rhs)
 
template<class T >
std::string to_string (const Transform_sequence< T > &rhs)
 
template<class T >
sqlite::cstream & operator>> (sqlite::cstream &in, Transform_sequence< T > &rhs)
 

Variables

const constexpr int64_t schema_version = 12
 

Detailed Description

Ship geometry database.