~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "drizzled/atomics.h"
37
37
#include "drizzled/query_id.h"
38
38
 
 
39
namespace drizzled
 
40
{
 
41
 
39
42
class Item;
40
43
class Item_subselect;
41
44
class Select_Lex_Unit;
234
237
  uint32_t quick_key_parts[MAX_KEY];
235
238
  uint32_t quick_n_ranges[MAX_KEY];
236
239
 
237
 
  drizzled::memory::Root mem_root;
 
240
  memory::Root mem_root;
238
241
  filesort_info_st sort;
239
242
 
240
243
  Table();
271
274
    return s->storage_engine->index_flags(s->key_info[idx].algorithm);
272
275
  }
273
276
 
274
 
  inline drizzled::plugin::StorageEngine *getEngine() const     /* table_type for handler */
 
277
  inline plugin::StorageEngine *getEngine() const       /* table_type for handler */
275
278
  {
276
279
    return s->storage_engine;
277
280
  }
278
281
 
279
282
  /* For TMP tables, should be pulled out as a class */
280
 
  void updateCreateInfo(drizzled::message::Table *table_proto);
 
283
  void updateCreateInfo(message::Table *table_proto);
281
284
  void setup_tmp_table_column_bitmaps(unsigned char *bitmaps);
282
285
  bool create_myisam_tmp_table(KEY *keyinfo,
283
286
                               MI_COLUMNDEF *start_recinfo,
519
522
int test_if_number(char *str,int *res,bool allow_wildcards);
520
523
void change_byte(unsigned char *,uint,char,char);
521
524
 
522
 
namespace drizzled { namespace optimizer { class SqlSelect; } }
 
525
namespace optimizer { class SqlSelect; }
523
526
 
524
527
ha_rows filesort(Session *session,
525
528
                 Table *form,
526
 
                 struct st_sort_field *sortorder,
527
 
                             uint32_t s_length,
528
 
                 drizzled::optimizer::SqlSelect *select,
529
 
                             ha_rows max_rows,
 
529
                 st_sort_field *sortorder,
 
530
                 uint32_t s_length,
 
531
                 optimizer::SqlSelect *select,
 
532
                 ha_rows max_rows,
530
533
                 bool sort_positions,
531
534
                 ha_rows *examined_rows);
532
535
 
534
537
void change_double_for_sort(double nr,unsigned char *to);
535
538
double my_double_round(double value, int64_t dec, bool dec_unsigned,
536
539
                       bool truncate);
537
 
int get_quick_record(drizzled::optimizer::SqlSelect *select);
 
540
int get_quick_record(optimizer::SqlSelect *select);
538
541
 
539
542
void find_date(char *pos,uint32_t *vek,uint32_t flag);
540
543
TYPELIB *convert_strings_to_array_type(char * *typelibs, char * *end);
541
 
TYPELIB *typelib(drizzled::memory::Root *mem_root, List<String> &strings);
 
544
TYPELIB *typelib(memory::Root *mem_root, List<String> &strings);
542
545
ulong get_form_pos(int file, unsigned char *head, TYPELIB *save_names);
543
546
ulong next_io_size(ulong pos);
544
547
void append_unescaped(String *res, const char *pos, uint32_t length);
548
551
bool check_db_name(LEX_STRING *org_name);
549
552
bool check_table_name(const char *name, uint32_t length);
550
553
 
 
554
} /* namespace drizzled */
 
555
 
551
556
#endif /* DRIZZLED_TABLE_H */