0
私はDoxygenを使用して、次のクラスヘッダーを文書化しようとしています。このクラスは純粋に抽象クラスなので、対応するソースファイルはありません。クラスヘッダーファイルをDoxygenに悪意のある方法はありませんか?
#ifndef QMFBANK_H
#define QMFBANK_H
#include <memory>
class QMFBank
{
public:
QMFBank();
virtual void setInputReference(std::shared_ptr<double>) = 0;
virtual std::shared_ptr<double> getLowBandReference() = 0;
virtual std::shared_ptr<double> getHighBandReference() = 0;
virtual void clearFilter() = 0;
virtual void update() = 0;
};
#endif // QMFBANK_H
Doxygenを使用して、ヘッダーファイルに次のコメントを挿入します。
#ifndef QMFBANK_H
#define QMFBANK_H
#include <memory>
class QMFBank
{
public:
/**
* @brief Creates a quadrature mirror filter bank
* @param p_in A reference to an input source
*/
QMFBank();
/**
* @brief Sets the reference to the QMF banks input source
* @param p_in A reference to an input source
*/
virtual void setInputReference(std::shared_ptr<double>) = 0;
/**
* @brief Retrieves a reference to the lowpassband output
* @return Returns a shared pointer to the lowpassband output
*/
virtual std::shared_ptr<double> getLowBandReference() = 0;
/**
* @brief Retrieves a reference to the highpassband output
* @return Returns a shared pointer to the highpassband output
*/
virtual std::shared_ptr<double> getHighBandReference() = 0;
/**
* @brief Clears (zeros) the filter bank history
*/
virtual void clearFilter() = 0;
/**
* @brief Updates the filter bank.
* When this method is called, the filter bank will retrieve a new input and update its outputs
*/
virtual void update() = 0;
};
#endif // QMFBANK_H
しかし、私はこれは醜いと思う。はい、ドキュメントはDoxygen HTMLの中ではかなり読みやすくなりますが、何かをすばやく参照しようとすると読みにくいようです。
私の質問:このインスタンスにDoxygenコメントを書くより良い方法はありますか?それとも、これはかなり普通ですし、私はただそれに対処するべきですか?
'@のbrief'は、通常は必要ありません。それは私のIDEでautopopulatedだπάνταῥεῖ@ –
ので、私はちょうどそれを残して。 – Izzo
これは正常です。 –