~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/temporary.h

  • Committer: Brian Aker
  • Date: 2010-10-20 20:26:18 UTC
  • mfrom: (1859.2.13 refactor)
  • Revision ID: brian@tangent.org-20101020202618-9222n39lm329urv5
Merge for Brian 

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class Temporary : public Table
31
31
{
32
 
  instance::Singular *_share; /**< Pointer to the shared metadata about the table */
 
32
  TableShare *_share; /**< Pointer to the shared metadata about the table */
33
33
 
34
34
public:
35
 
  Temporary(const identifier::Table::Type type_arg,
36
 
            const identifier::Table &identifier,
37
 
             char *path_arg, uint32_t path_length_arg) :
 
35
  Temporary() :
38
36
    Table()
39
37
  {
40
 
    _share= new instance::Singular(type_arg, identifier, path_arg, path_length_arg);
41
38
  }
42
39
 
43
40
  ~Temporary()
47
44
  virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
48
45
  virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
49
46
  virtual bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
50
 
  virtual void setShare(TableShare *new_share)
51
 
  {
52
 
    _share= static_cast<instance::Singular *>(new_share);
53
 
  }
54
 
 
55
 
  void release(void)
56
 
  {
57
 
    delete _share;
58
 
    _share= NULL;
59
 
  }
 
47
  virtual void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
60
48
};
61
49
 
62
 
 
63
50
} /* namespace table */
64
51
} /* namespace drizzled */
65
52