Skip to content

Commit

Permalink
index_record -> IndexRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
ava57r committed Mar 10, 2018
1 parent e0cb96e commit 432fc52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/tool1cd/Index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ size_t Index::get_num_records() const
}

//---------------------------------------------------------------------------
std::vector<index_record>& Index::get_records()
std::vector<IndexRecord>& Index::get_records()
{
return records;
}
Expand Down
12 changes: 6 additions & 6 deletions src/tool1cd/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class V8Object;
class Field;
class TableRecord;

struct index_record
struct IndexRecord
{
Field* field;
int32_t len;
Field* field {nullptr};
int32_t len {0};
};

#pragma pack(push)
Expand Down Expand Up @@ -77,12 +77,12 @@ const int16_t indexpage_is_leaf = 2; // Установленный флаг оз
class Index
{
public:
Index(Table* _base);
explicit Index(Table* _base);
~Index();

std::string getname() const;
size_t get_num_records() const; // получить количество полей в индексе
std::vector<index_record>& get_records();
std::vector<IndexRecord>& get_records();

uint32_t get_numrecords() const; // получает количество записей, проиндексированных индексом
uint32_t get_numrec(uint32_t num_record) const; // получает физический индекс записи по порядковому индексу
Expand Down Expand Up @@ -123,7 +123,7 @@ class Index
std::string name;
bool primary {false};

std::vector<index_record> records;
std::vector<IndexRecord> records;

uint64_t start {0}; // Смещение в файле индексов блока описания индекса
// TODO: убрать mutable
Expand Down

0 comments on commit 432fc52

Please sign in to comment.