~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-05-20 06:34:25 UTC
  • mto: (1552.1.1 new-staging)
  • mto: This revision was merged to the branch mainline in revision 1553.
  • Revision ID: brian@gaz-20100520063425-0hwu5fx4fmmp2g49
Partial encapsulation of TableShare from Table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 */
61
61
class Table 
62
62
{
 
63
 
63
64
public:
64
 
 
65
65
  TableShare *s; /**< Pointer to the shared metadata about the table */
 
66
 
66
67
  Field **field; /**< Pointer to fields collection */
67
68
 
68
69
  Cursor *cursor; /**< Pointer to the storage engine's Cursor managing this table */
236
237
  uint32_t quick_key_parts[MAX_KEY];
237
238
  uint32_t quick_n_ranges[MAX_KEY];
238
239
 
 
240
private:
239
241
  memory::Root mem_root;
240
 
private:
241
242
 
242
243
  void init_mem_root()
243
244
  {
292
293
 
293
294
  /* SHARE methods */
294
295
  inline const TableShare *getShare() const { assert(s); return s; } /* Get rid of this long term */
 
296
  inline TableShare *getMutableShare() { assert(s); return s; } /* Get rid of this long term */
295
297
  inline void setShare(TableShare *new_share) { s= new_share; } /* Get rid of this long term */
296
298
  inline uint32_t sizeKeys() { return s->keys; }
297
299
  inline uint32_t sizeFields() { return s->fields; }