~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-06-05 00:14:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1592.
  • Revision ID: brian@gir-20100605001439-kn5v6oaspacx5q6l
Merge in change to getTable() to private the field objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
public:
64
64
  TableShare *s; /**< Pointer to the shared metadata about the table */
65
65
 
 
66
private:
66
67
  Field **field; /**< Pointer to fields collection */
 
68
public:
 
69
 
 
70
  Field **getFields() const
 
71
  {
 
72
    return field;
 
73
  }
 
74
 
 
75
  Field *getField(uint32_t arg) const
 
76
  {
 
77
    return field[arg];
 
78
  }
 
79
 
 
80
  void setFields(Field **arg)
 
81
  {
 
82
    field= arg;
 
83
  }
 
84
 
 
85
  void setFieldAt(Field *arg, uint32_t arg_pos)
 
86
  {
 
87
    field[arg_pos]= arg;
 
88
  }
67
89
 
68
90
  Cursor *cursor; /**< Pointer to the storage engine's Cursor managing this table */
69
91
  Table *next;