~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/generator/table.h

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_GENERATOR_TABLE_H
22
22
#define DRIZZLED_GENERATOR_TABLE_H
23
23
 
 
24
#include "drizzled/session.h"
24
25
#include "drizzled/plugin/storage_engine.h"
25
26
 
26
27
namespace drizzled {
27
 
 
28
 
class Session;
29
 
 
30
28
namespace generator {
31
29
 
32
30
class Table
34
32
  Session &session;
35
33
  message::table::shared_ptr table;
36
34
 
37
 
  identifier::Table::vector table_names;
38
 
  identifier::Table::vector::const_iterator table_iterator;
 
35
  TableIdentifier::vector table_names;
 
36
  TableIdentifier::vector::const_iterator table_iterator;
39
37
 
40
38
public:
41
39
 
42
 
  Table(Session &arg, const identifier::Schema &schema_identifier);
 
40
  Table(Session &arg, const SchemaIdentifier &schema_identifier);
43
41
 
44
42
  operator const drizzled::message::table::shared_ptr()
45
43
  {
56
54
    return message::table::shared_ptr();
57
55
  }
58
56
 
59
 
  operator const drizzled::identifier::Table*()
 
57
  operator const drizzled::TableIdentifier*()
60
58
  {
61
59
    while (table_iterator != table_names.end())
62
60
    {
63
 
      const drizzled::identifier::Table *_ptr= &(*table_iterator);
 
61
      const drizzled::TableIdentifier *_ptr= &(*table_iterator);
64
62
      table_iterator++;
65
63
 
66
64
      return _ptr;