// file : odb/query.hxx // author : Boris Kolpackov // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_QUERY_HXX #define ODB_QUERY_HXX #include #include namespace odb { // // template struct query_columns_base; template struct query_columns; template struct pointer_query_columns; // Object pointer syntax wrapper. // template struct query_pointer { query_pointer () { // For some reason GCC needs this dummy c-tor if we make a static // data member of this type const. } T* operator-> () const { return 0; // All members in T are static. } }; // // template ::kind> struct query_selector; template struct query_selector { typedef typename object_traits::query_base_type base_type; typedef typename object_traits::query_type type; }; template struct query_selector { typedef typename view_traits::query_base_type base_type; typedef typename view_traits::query_type type; }; template ::base_type> class query; namespace core { using odb::query; } } #include #endif // ODB_QUERY_HXX