Skip to content

Commit 1bd6fc8

Browse files
committed
fix(docs): remove comments in impl files
in order for code editor tool tips to use the doxygen comments
1 parent b20898e commit 1bd6fc8

20 files changed

Lines changed: 0 additions & 111 deletions

src/common_impl.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// holds
54
template<class T, class... Args>
65
bool holds(const Variant<Args...>& variant) {
76
return std::holds_alternative<T>(variant);

src/core/asset_handle_impl.hh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// (constructor)
54
template<class T>
65
AssetHandle<T>::AssetHandle(UUID uuid, AssetAPI& asset_api)
76
: _key(uuid), _api(&asset_api) {
@@ -28,12 +27,10 @@ namespace Parrot {
2827
}
2928
}
3029

31-
// bool (cast)
3230
template<class T>
3331
AssetHandle<T>::operator bool() const {
3432
return _api;
3533
}
36-
// lock
3734
template<class T>
3835
SharedPtr<const T> AssetHandle<T>::lock() const {
3936
return std::static_pointer_cast<const T>(

src/core/factory_impl.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// create
54
template<class T, class Base>
65
UniquePtr<Base> BasicFactory<T, Base>::create() const {
76
return std::make_unique<T>(static_cast<const T&>(*this));

src/core/script_impl.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// getID
54
template<class T>
65
usize Script::getID() {
76
return typeid(T).hash_code();

src/core/scriptable_impl.hh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// script
5-
// :: get
64
template<ScriptType T>
75
T& Scriptable::getScript() {
86
auto it = _scripts.find(Script::getID<T>());
@@ -15,7 +13,6 @@ namespace Parrot {
1513
/* TODO: assert(it != _scripts.end()) */
1614
return reinterpret_cast<const T&>(*it->second);
1715
}
18-
// :: add
1916
template<ScriptType T, class... Args>
2017
T& Scriptable::addScript(Args&&... args) {
2118
auto result = _scripts.emplace(
@@ -27,7 +24,6 @@ namespace Parrot {
2724
script->onAttach();
2825
return reinterpret_cast<T&>(*script);
2926
}
30-
// :: remove
3127
template<ScriptType T>
3228
void Scriptable::removeScript() {
3329
auto it = _scripts.find(Script::getID<T>());

src/ecs/basic_component_impl.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// getID
54
template<class T>
65
usize BasicComponent<T>::getID() const {
76
return typeid(BasicComponent<T>).hash_code();

src/ecs/entity_impl.hh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#pragma once
22

33
namespace Parrot {
4-
// component
5-
// :: has
64
template<class T>
75
bool Entity::hasComponent() const {
86
return _components.contains(typeid(T).hash_code());
97
}
10-
// :: get
118
template<class T>
129
T& Entity::getComponent() {
1310
return dynamic_cast<T&>(*_components.at(typeid(T).hash_code()));
@@ -16,14 +13,12 @@ namespace Parrot {
1613
const T& Entity::getComponent() const {
1714
return dynamic_cast<const T&>(*_components.at(typeid(T).hash_code()));
1815
}
19-
// :: add
2016
template<class T, class... Args>
2117
T& Entity::addComponent(Args&&... args) {
2218
auto component = std::make_unique<T>(std::forward<Args>(args)...);
2319
_components.emplace(typeid(T).hash_code(), std::move(component));
2420
return getComponent<T>();
2521
}
26-
// :: remove
2722
template<class T>
2823
void Entity::removeComponent() {
2924
_components.erase(typeid(T).hash_code());

src/ecs/scene_impl.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// queryEntities
54
template<class T>
65
List<Entity*> Scene::queryEntities() {
76
List<Entity*> found;

src/graphics/material_impl.hh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
//* MaterialNode
5-
// parse
6-
// :: vec
74
template<class T, usize N>
85
Vec<T, N> MaterialNode::parseVec(const auto& node) {
96
Vec<T, N> vec;
@@ -12,7 +9,6 @@ namespace Parrot {
129
}
1310
return vec;
1411
}
15-
// :: mat
1612
template<class T, usize N, usize M>
1713
Mat<T, N, M> MaterialNode::parseMat(const auto& node) {
1814
Mat<T, N, M> mat;

src/graphics/mesh_impl.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

33
namespace Parrot {
4-
// (constructor)
54
template<class Vertices, class Indices>
65
Mesh::Mesh(Vertices&& vertices, Indices&& indices)
76
: vertices(std::forward<Vertices>(vertices)),

0 commit comments

Comments
 (0)