Skip to content

Commit 5e1737e

Browse files
committed
Renamed Levels into LevelVector
1 parent 7d1f3e3 commit 5e1737e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

include/block.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*==============================================================================
1414
Class : template (T context, D datas)
1515
Extensions :
16-
Aliases : Block, Levels
16+
Aliases : Block, LevelVector
1717
Friends -> Component, CompressedStack
1818
<-
1919
==============================================================================*/
@@ -47,17 +47,17 @@ template <class T, class D> class Signature {
4747
Buffer<T, D> mBuffer;
4848
};
4949

50-
/* Derived types: Block and Levels */
50+
/* Derived types: Block and LevelVector */
5151
// A Partially Compressed Block is composed of the signatures of its SubBlocks
5252
template <class T, class D> using Block = std::vector<Signature<T, D>>;
5353
template <class T, class D> Block<T, D> initBlock(int space);
5454

55-
// Each level of compressed Blocks (first and second) are stored in Levels
56-
template <class T, class D> using Levels = std::vector<Block<T, D>>;
57-
template <class T, class D> Levels<T, D> initLevels(int space, int depth);
55+
// Each level of compressed Blocks (first and second) are stored in LevelVector
56+
template <class T, class D> using LevelVector = std::vector<Block<T, D>>;
57+
template <class T, class D> LevelVector<T, D> initLevelVector(int space, int depth);
5858

5959
/*==============================================================================
60-
Constructors : Signature, initBlock, initLevels
60+
Constructors : Signature, initBlock, initLevelVector
6161
==============================================================================*/
6262
template <class T, class D>
6363
Signature<T, D>::Signature(int index, std::streampos position,
@@ -93,8 +93,8 @@ template <class T, class D> Block<T, D> initBlock(int space) {
9393
return block;
9494
}
9595

96-
template <class T, class D> Levels<T, D> initLevels(int space, int depth) {
97-
Levels<T, D> levels;
96+
template <class T, class D> LevelVector<T, D> initLevelVector(int space, int depth) {
97+
LevelVector<T, D> levels;
9898
for (int lvl = 1; lvl < depth; lvl++) {
9999
Block<T, D> block = initBlock<T, D>(space);
100100
levels.push_back(block);

include/component.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ template <class T, class D> class Component {
4040
// State
4141
bool single(int lvl);
4242

43-
Levels<T, D> mPartial;
43+
LevelVector<T, D> mPartial;
4444
ExplicitPointer<T, D> mExplicit;
4545
Signature<T, D> mSign;
4646
};
@@ -53,7 +53,7 @@ Component<T, D>::Component(int space, int depth)
5353
: mSign(0, std::streampos(0), std::shared_ptr<T>(nullptr),
5454
Buffer<T, D>(0)) {
5555

56-
Levels<T, D> partial = initLevels<T, D>(space, depth);
56+
LevelVector<T, D> partial = initLevelVector<T, D>(space, depth);
5757
mPartial = partial;
5858

5959
ExplicitPointer<T, D> xplicit = initExplicitPointer<T, D>();
@@ -64,11 +64,11 @@ Component<T, D>::Component(int space, int depth)
6464
/*==============================================================================
6565
IO : levelsToStringInComponent, toString
6666
==============================================================================*/
67-
template <class T, class D> std::string levelsToString(Levels<T, D> levels) {
67+
template <class T, class D> std::string levelsToString(LevelVector<T, D> levels) {
6868
std::string str;
6969
str = "";
7070
int index = 0;
71-
for (typename Levels<T, D>::iterator it = levels.begin(); it != levels.end();
71+
for (typename LevelVector<T, D>::iterator it = levels.begin(); it != levels.end();
7272
++it) {
7373
index++;
7474
str += "\t\t\tLevel " + std::to_string(index) + " ->";

0 commit comments

Comments
 (0)