added namespace comments

This commit is contained in:
fourtf
2017-04-14 17:47:28 +02:00
parent 043ddfafa6
commit a0d29ebae8
97 changed files with 268 additions and 267 deletions
+12 -12
View File
@@ -11,30 +11,30 @@ template <typename T>
class LimitedQueueSnapshot
{
public:
LimitedQueueSnapshot(std::shared_ptr<std::vector<T>> ptr, int offset, int length)
: vector(ptr)
, offset(offset)
, length(length)
LimitedQueueSnapshot(std::shared_ptr<std::vector<T>> vector, int offset, int size)
: _vector(vector)
, _offset(offset)
, _length(size)
{
}
int getLength()
int getSize()
{
return this->length;
return _length;
}
T const &operator[](int index) const
{
return this->vector->at(index + this->offset);
return _vector->at(index + _offset);
}
private:
std::shared_ptr<std::vector<T>> vector;
std::shared_ptr<std::vector<T>> _vector;
int offset;
int length;
int _offset;
int _length;
};
}
}
} // namespace messages
} // namespace chatterino
#endif // LIMITEDQUEUESNAPSHOT_H