30 lines
472 B
C
30 lines
472 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Node.h"
|
||
|
|
#include <memory>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace sqlast {
|
||
|
|
|
||
|
|
class SelectItem;
|
||
|
|
|
||
|
|
class SelectList : public Node
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
SelectList();
|
||
|
|
|
||
|
|
void Add(std::unique_ptr<SelectItem> select_item);
|
||
|
|
int Count() const;
|
||
|
|
|
||
|
|
SelectItem& Get(int index)
|
||
|
|
{
|
||
|
|
return *list.at(index);
|
||
|
|
}
|
||
|
|
private:
|
||
|
|
using List = std::vector<std::unique_ptr<SelectItem>>;
|
||
|
|
|
||
|
|
List list;
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|