Skip to content

Commit 010e952

Browse files
committed
update group name for patterns/structural
1 parent cf601d6 commit 010e952

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/patterns/structural/Adapter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void run() {
146146

147147
class AdapterExample : public IExample {
148148
public:
149-
std::string group() const override { return "patterns"; }
149+
std::string group() const override { return "patterns/structural"; }
150150
std::string name() const override { return "Adapter"; }
151151
std::string description() const override { return "Factory Pattern Example"; }
152152
void execute() override {
@@ -155,4 +155,4 @@ class AdapterExample : public IExample {
155155
}
156156
};
157157

158-
REGISTER_EXAMPLE(AdapterExample, "patterns", "Adapter");
158+
REGISTER_EXAMPLE(AdapterExample, "patterns/structural", "Adapter");

src/patterns/structural/Bridge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void run() {
172172

173173
class BridgeExample : public IExample {
174174
public:
175-
std::string group() const override { return "patterns"; }
175+
std::string group() const override { return "patterns/structural"; }
176176
std::string name() const override { return "Bridge"; }
177177
std::string description() const override { return "Bridge Pattern Example"; }
178178
void execute() override {
@@ -181,5 +181,5 @@ class BridgeExample : public IExample {
181181
}
182182
};
183183

184-
REGISTER_EXAMPLE(BridgeExample, "patterns", "Bridge");
184+
REGISTER_EXAMPLE(BridgeExample, "patterns/structural", "Bridge");
185185
} // namespace

src/patterns/structural/Composite.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ void run() {
430430

431431
class CompositeExample : public IExample {
432432
public:
433-
std::string group() const override { return "patterns"; }
433+
std::string group() const override { return "patterns/structural"; }
434434
std::string name() const override { return "Composite"; }
435435
std::string description() const override {
436436
return "Composite Pattern Example";
@@ -441,4 +441,4 @@ class CompositeExample : public IExample {
441441
}
442442
};
443443

444-
REGISTER_EXAMPLE(CompositeExample, "patterns", "Composite");
444+
REGISTER_EXAMPLE(CompositeExample, "patterns/structural", "Composite");

src/patterns/structural/Decorator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void run() {
190190

191191
class DecoratorExample : public IExample {
192192
public:
193-
std::string group() const override { return "patterns"; }
193+
std::string group() const override { return "patterns/structural"; }
194194
std::string name() const override { return "Decorator"; }
195195
std::string description() const override {
196196
return "Decorator Pattern Example";
@@ -201,4 +201,4 @@ class DecoratorExample : public IExample {
201201
}
202202
};
203203

204-
REGISTER_EXAMPLE(DecoratorExample, "patterns", "Decorator");
204+
REGISTER_EXAMPLE(DecoratorExample, "patterns/structural", "Decorator");

src/patterns/structural/Facade.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void run() {
214214

215215
class FacadeExample : public IExample {
216216
public:
217-
std::string group() const override { return "patterns"; }
217+
std::string group() const override { return "patterns/structural"; }
218218
std::string name() const override { return "Facade"; }
219219
std::string description() const override { return "Facade Pattern Example"; }
220220
void execute() override {
@@ -223,4 +223,4 @@ class FacadeExample : public IExample {
223223
}
224224
};
225225

226-
REGISTER_EXAMPLE(FacadeExample, "patterns", "Facade");
226+
REGISTER_EXAMPLE(FacadeExample, "patterns/structural", "Facade");

src/patterns/structural/Flyweight.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void run() {
332332

333333
class FlyweightExample : public IExample {
334334
public:
335-
std::string group() const override { return "patterns"; }
335+
std::string group() const override { return "patterns/structural"; }
336336
std::string name() const override { return "Flyweight"; }
337337
std::string description() const override {
338338
return "Flyweight Pattern Example";
@@ -343,4 +343,4 @@ class FlyweightExample : public IExample {
343343
}
344344
};
345345

346-
REGISTER_EXAMPLE(FlyweightExample, "patterns", "Flyweight");
346+
REGISTER_EXAMPLE(FlyweightExample, "patterns/structural", "Flyweight");

src/patterns/structural/Proxy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void run() {
222222

223223
class ProxyExample : public IExample {
224224
public:
225-
std::string group() const override { return "patterns"; }
225+
std::string group() const override { return "patterns/structural"; }
226226
std::string name() const override { return "Proxy"; }
227227
std::string description() const override { return "Proxy Pattern Example"; }
228228
void execute() override {
@@ -231,5 +231,5 @@ class ProxyExample : public IExample {
231231
}
232232
};
233233

234-
REGISTER_EXAMPLE(ProxyExample, "patterns", "Proxy");
234+
REGISTER_EXAMPLE(ProxyExample, "patterns/structural", "Proxy");
235235
} // namespace

0 commit comments

Comments
 (0)