Skip to content

Commit 28a2e15

Browse files
authored
Remove doxygen warnings (#4700, #5011) (#5016)
* Refs #21114: Remove doxygen warnings Signed-off-by: eduponz <[email protected]> * Refs #21114: Apply Miguel's suggestions Signed-off-by: eduponz <[email protected]> --------- Signed-off-by: eduponz <[email protected]>
1 parent d559f71 commit 28a2e15

13 files changed

+95
-69
lines changed

include/fastdds/dds/core/policy/QosPolicies.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -2798,8 +2798,9 @@ class TransportConfigQos : public QosPolicy
27982798
//! Thread settings for the builtin transports reception threads
27992799
rtps::ThreadSettings builtin_transports_reception_threads_;
28002800

2801-
/*! Maximum message size used to avoid fragmentation, set ONLY in LARGE_DATA. If this value is
2802-
* not zero, the network factory will allow the initialization of UDP transports with maxMessageSize
2801+
/*!
2802+
* @brief Maximum message size used to avoid fragmentation, set ONLY in LARGE_DATA.
2803+
* If this value is not zero, the network factory will allow the initialization of UDP transports with maxMessageSize
28032804
* higher than 65500K.
28042805
*/
28052806
uint32_t max_msg_size_no_frag;

include/fastdds/dds/domain/DomainParticipant.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ class DomainParticipant : public Entity
673673
*
674674
* @param[out] participant_handles Reference to the vector where discovered participants will be returned
675675
* @return RETCODE_OK if everything correct, error code otherwise
676+
*
676677
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
677678
*/
678679
RTPS_DllAPI ReturnCode_t get_discovered_participants(
@@ -684,6 +685,7 @@ class DomainParticipant : public Entity
684685
* @param[out] participant_data Reference to the ParticipantBuiltinTopicData object to return the data
685686
* @param participant_handle InstanceHandle of DomainParticipant to retrieve the data from
686687
* @return RETCODE_OK if everything correct, PRECONDITION_NOT_MET if participant does not exist
688+
*
687689
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
688690
*/
689691
RTPS_DllAPI ReturnCode_t get_discovered_participant_data(
@@ -695,6 +697,7 @@ class DomainParticipant : public Entity
695697
*
696698
* @param[out] topic_handles Reference to the vector where discovered topics will be returned
697699
* @return RETCODE_OK if everything correct, error code otherwise
700+
*
698701
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
699702
*/
700703
RTPS_DllAPI ReturnCode_t get_discovered_topics(

include/fastdds/dds/domain/DomainParticipantFactory.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class DomainParticipantFactory
139139
* Returns all participants that belongs to the specified domain_id.
140140
*
141141
* @param domain_id
142-
* @return previously created DomainParticipants within the specified domain
142+
* @return previously created DomainParticipant instances within the specified domain
143143
*/
144144
RTPS_DllAPI std::vector<DomainParticipant*> lookup_participants(
145145
DomainId_t domain_id) const;

include/fastdds/dds/domain/DomainParticipantListener.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ class DomainParticipantListener :
187187
/*!
188188
* This method is called when a participant discovers a new Type
189189
* The ownership of all object belongs to the caller so if needs to be used after the
190-
* method ends, a full copy should be perform (except for dyn_type due to its shared_ptr nature.
191-
* For example:
192-
* fastrtps::types::TypeIdentifier new_type_id = \*identifier;
190+
* method ends, a full copy should be performed (except for dyn_type due to its shared_ptr nature).
193191
*/
194192
virtual void on_type_discovery(
195193
DomainParticipant* participant,

include/fastdds/dds/publisher/DataWriter.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ class DataWriter : public DomainEntity
514514
* @param[out] subscription_data subscription data struct
515515
* @param subscription_handle InstanceHandle_t of the subscription
516516
* @return RETCODE_OK
517+
*
517518
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
518519
*/
519520
RTPS_DllAPI ReturnCode_t get_matched_subscription_data(
@@ -525,6 +526,7 @@ class DataWriter : public DomainEntity
525526
*
526527
* @param[out] subscription_handles Vector where the InstanceHandle_t are returned
527528
* @return RETCODE_OK
529+
*
528530
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
529531
*/
530532
RTPS_DllAPI ReturnCode_t get_matched_subscriptions(

include/fastdds/dds/publisher/Publisher.hpp

+6
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class Publisher : public DomainEntity
217217
* @brief Indicates to FastDDS that the contained DataWriters are about to be modified
218218
*
219219
* @return RETCODE_OK if successful, an error code otherwise
220+
*
220221
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
221222
*/
222223
RTPS_DllAPI ReturnCode_t suspend_publications();
@@ -225,6 +226,7 @@ class Publisher : public DomainEntity
225226
* @brief Indicates to FastDDS that the modifications to the DataWriters are complete.
226227
*
227228
* @return RETCODE_OK if successful, an error code otherwise
229+
*
228230
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
229231
*/
230232
RTPS_DllAPI ReturnCode_t resume_publications();
@@ -233,6 +235,7 @@ class Publisher : public DomainEntity
233235
* @brief Signals the beginning of a set of coherent cache changes using the Datawriters attached to the publisher
234236
*
235237
* @return RETCODE_OK if successful, an error code otherwise
238+
*
236239
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
237240
*/
238241
RTPS_DllAPI ReturnCode_t begin_coherent_changes();
@@ -241,6 +244,7 @@ class Publisher : public DomainEntity
241244
* @brief Signals the end of a set of coherent cache changes
242245
*
243246
* @return RETCODE_OK if successful, an error code otherwise
247+
*
244248
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
245249
*/
246250
RTPS_DllAPI ReturnCode_t end_coherent_changes();
@@ -322,6 +326,8 @@ class Publisher : public DomainEntity
322326
* @param[out] writer_qos
323327
* @param[in] topic_qos
324328
* @return RETCODE_OK if successful, an error code otherwise
329+
*
330+
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
325331
*/
326332
RTPS_DllAPI static ReturnCode_t copy_from_topic_qos(
327333
fastdds::dds::DataWriterQos& writer_qos,

include/fastdds/dds/subscriber/DataReader.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class DataReader : public DomainEntity
136136
*
137137
* @param[in] max_wait Max blocking time for this operation.
138138
* @return RETCODE_OK if there is new unread message, ReturnCode_t::RETCODE_TIMEOUT if timeout
139+
*
139140
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
140141
*/
141142
RTPS_DllAPI ReturnCode_t wait_for_historical_data(
@@ -764,6 +765,7 @@ class DataReader : public DomainEntity
764765
* @param[in] handle
765766
*
766767
* @return Any of the standard return codes.
768+
*
767769
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
768770
*/
769771
RTPS_DllAPI ReturnCode_t get_key_value(
@@ -976,6 +978,7 @@ class DataReader : public DomainEntity
976978
* @param[out] publication_data publication data struct
977979
* @param publication_handle InstanceHandle_t of the publication
978980
* @return RETCODE_OK
981+
*
979982
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
980983
*/
981984
RTPS_DllAPI ReturnCode_t get_matched_publication_data(
@@ -987,6 +990,7 @@ class DataReader : public DomainEntity
987990
*
988991
* @param[out] publication_handles Vector where the InstanceHandle_t are returned
989992
* @return RETCODE_OK
993+
*
990994
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
991995
*/
992996
RTPS_DllAPI ReturnCode_t get_matched_publications(

include/fastdds/dds/subscriber/Subscriber.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ class Subscriber : public DomainEntity
234234
* @param view_states Vector of ViewStateKind
235235
* @param instance_states Vector of InstanceStateKind
236236
* @return RETCODE_OK
237+
*
237238
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
238239
*/
239240
RTPS_DllAPI ReturnCode_t get_datareaders(
@@ -254,6 +255,7 @@ class Subscriber : public DomainEntity
254255
* attached to the Subscriber.
255256
*
256257
* @return RETCODE_OK
258+
*
257259
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
258260
*/
259261
RTPS_DllAPI ReturnCode_t begin_access();
@@ -263,6 +265,7 @@ class Subscriber : public DomainEntity
263265
* the Subscriber.
264266
*
265267
* @return RETCODE_OK
268+
*
266269
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
267270
*/
268271
RTPS_DllAPI ReturnCode_t end_access();
@@ -360,6 +363,8 @@ class Subscriber : public DomainEntity
360363
* @param[in, out] reader_qos
361364
* @param[in] topic_qos
362365
* @return RETCODE_OK if successful, an error code otherwise
366+
*
367+
* @warning Not supported yet. Currently returns RETCODE_UNSUPPORTED
363368
*/
364369
RTPS_DllAPI static ReturnCode_t copy_from_topic_qos(
365370
DataReaderQos& reader_qos,

include/fastdds/rtps/common/ChangeKind_t.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ namespace fastrtps {
2626
namespace rtps {
2727

2828
/**
29-
* @enum ChangeKind_t, different types of CacheChange_t.
30-
* @ingroup COMMON_MODULE
29+
* Enumerates the different types of CacheChange_t.
3130
*/
3231
enum RTPS_DllAPI ChangeKind_t
3332
{

include/fastdds/rtps/common/FragmentNumber.h

+17-16
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,38 @@
1919
#ifndef _FASTDDS_RTPS_RPTS_ELEM_FRAGNUM_H_
2020
#define _FASTDDS_RTPS_RPTS_ELEM_FRAGNUM_H_
2121

22+
#include <algorithm>
23+
#include <cmath>
24+
#include <set>
25+
26+
#include <fastdds/rtps/common/Types.h>
2227
#include <fastrtps/fastrtps_dll.h>
2328
#include <fastrtps/utils/fixed_size_bitmap.hpp>
24-
#include <fastdds/rtps/common/Types.h>
2529

26-
#include <set>
27-
#include <cmath>
28-
#include <algorithm>
29-
30-
namespace eprosima{
31-
namespace fastrtps{
32-
namespace rtps{
30+
namespace eprosima {
31+
namespace fastrtps {
32+
namespace rtps {
3333

3434
using FragmentNumber_t = uint32_t;
3535

3636
//!Structure FragmentNumberSet_t, contains a group of fragmentnumbers.
37-
//!@ingroup COMMON_MODULE
3837
using FragmentNumberSet_t = BitmapRange<FragmentNumber_t>;
3938

40-
inline std::ostream& operator<<(std::ostream& output, const FragmentNumberSet_t& fns)
39+
inline std::ostream& operator <<(
40+
std::ostream& output,
41+
const FragmentNumberSet_t& fns)
4142
{
4243
output << fns.base() << ":";
4344
fns.for_each([&](FragmentNumber_t it)
44-
{
45-
output << it << "-";
46-
});
45+
{
46+
output << it << "-";
47+
});
4748

4849
return output;
4950
}
5051

51-
}
52-
}
53-
}
52+
} // namespace rtps
53+
} // namespace fastrtps
54+
} // namespace eprosima
5455

5556
#endif /* _FASTDDS_RTPS_RPTS_ELEM_FRAGNUM_H_ */

include/fastdds/rtps/common/MatchingInfo.h

+38-22
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,23 @@
2222

2323
#include <fastdds/rtps/common/Guid.h>
2424

25-
namespace eprosima{
26-
namespace fastrtps{
27-
namespace rtps{
25+
namespace eprosima {
26+
namespace fastrtps {
27+
namespace rtps {
2828

2929
/**
30-
* @enum MatchingStatus, indicates whether the matched publication/subscription method of the PublisherListener or SubscriberListener has
30+
* Indicates whether the matched publication/subscription method of the PublisherListener or SubscriberListener has
3131
* been called for a matching or a removal of a remote endpoint.
32-
* @ingroup COMMON_MODULE
3332
*/
3433
#if defined(_WIN32)
35-
enum RTPS_DllAPI MatchingStatus{
34+
enum RTPS_DllAPI MatchingStatus
35+
{
3636
#else
37-
enum MatchingStatus{
38-
#endif
39-
MATCHED_MATCHING,//!< MATCHED_MATCHING, new publisher/subscriber found
40-
REMOVED_MATCHING //!< REMOVED_MATCHING, publisher/subscriber removed
37+
enum MatchingStatus
38+
{
39+
#endif // if defined(_WIN32)
40+
MATCHED_MATCHING, //!< MATCHED_MATCHING, new publisher/subscriber found
41+
REMOVED_MATCHING //!< REMOVED_MATCHING, publisher/subscriber removed
4142

4243
};
4344

@@ -48,21 +49,36 @@ namespace rtps{
4849
class RTPS_DllAPI MatchingInfo
4950
{
5051
public:
51-
//!Default constructor
52-
MatchingInfo():status(MATCHED_MATCHING){};
52+
53+
//! Default constructor
54+
MatchingInfo()
55+
: status(MATCHED_MATCHING)
56+
{
57+
}
58+
5359
/**
54-
* @param stat Status
55-
* @param guid GUID
56-
*/
57-
MatchingInfo(MatchingStatus stat,const GUID_t&guid):status(stat),remoteEndpointGuid(guid){};
58-
~MatchingInfo(){};
59-
//!Status
60+
* @param stat Status
61+
* @param guid GUID
62+
*/
63+
MatchingInfo(
64+
MatchingStatus stat,
65+
const GUID_t& guid)
66+
: status(stat)
67+
, remoteEndpointGuid(guid)
68+
{
69+
}
70+
71+
~MatchingInfo()
72+
{
73+
}
74+
75+
//! Status
6076
MatchingStatus status;
61-
//!Remote endpoint GUID
77+
//! Remote endpoint GUID
6278
GUID_t remoteEndpointGuid;
6379
};
64-
}
65-
}
66-
}
80+
} // namespace rtps
81+
} // namespace fastrtps
82+
} // namespace eprosima
6783

6884
#endif /* _FASTDDS_RTPS_MATCHINGINFO_H_ */

include/fastdds/rtps/common/SequenceNumber.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ namespace eprosima {
3232
namespace fastrtps {
3333
namespace rtps {
3434

35-
3635
//!@brief Structure SequenceNumber_t, different for each change in the same writer.
3736
//!@ingroup COMMON_MODULE
3837
struct RTPS_DllAPI SequenceNumber_t
@@ -42,7 +41,7 @@ struct RTPS_DllAPI SequenceNumber_t
4241
//!
4342
uint32_t low = 0;
4443

45-
//!Default constructor
44+
//! Default constructor
4645
SequenceNumber_t() noexcept
4746
{
4847
high = 0;
@@ -366,8 +365,7 @@ struct SequenceNumberDiff
366365

367366
#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
368367

369-
//!Structure SequenceNumberSet_t, contains a group of sequencenumbers.
370-
//!@ingroup COMMON_MODULE
368+
//! Structure SequenceNumberSet_t, contains a group of sequencenumbers.
371369
using SequenceNumberSet_t = BitmapRange<SequenceNumber_t, SequenceNumberDiff, 256>;
372370

373371
#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC

0 commit comments

Comments
 (0)