Skip to content

Commit bebd30e

Browse files
ferdymercurydpiparo
authored andcommitted
[skip-ci] document memory management in streamerinfoactions
1 parent 7b461b5 commit bebd30e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

io/io/src/TStreamerInfoActions.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,9 @@ namespace TStreamerInfoActions
15141514
template<typename Looper>
15151515
struct CollectionLooper {
15161516

1517+
/// \param loopConfig pointer ownership stays at the caller, a copy is performed and transferred to the
1518+
/// TActionSequence class (stored as public fLoopConfig internally, will be deleted in destructor) \return unique
1519+
/// pointer of type TActionSequence
15171520
static std::unique_ptr<TStreamerInfoActions::TActionSequence>
15181521
CreateReadActionSquence(TStreamerInfo &info, TLoopConfiguration *loopConfig)
15191522
{
@@ -1523,6 +1526,9 @@ namespace TStreamerInfoActions
15231526
return actions;
15241527
}
15251528

1529+
/// \param loopConfig pointer ownership stays at the caller, a copy is performed and transferred to the
1530+
/// TActionSequence class (stored as public fLoopConfig internally, will be deleted in destructor) \return unique
1531+
/// pointer of type TActionSequence
15261532
static std::unique_ptr<TStreamerInfoActions::TActionSequence>
15271533
CreateWriteActionSquence(TStreamerInfo &info, TLoopConfiguration *loopConfig)
15281534
{
@@ -5309,7 +5315,10 @@ TStreamerInfoActions::TActionSequence *TStreamerInfoActions::TActionSequence::Cr
53095315
}
53105316

53115317
////////////////////////////////////////////////////////////////////////////////
5312-
/// Create the bundle of the actions necessary for the streaming memberwise of the content described by 'info' into the collection described by 'proxy'
5318+
/// Create the bundle of the actions necessary for the streaming memberwise of the content described by 'info' into the
5319+
/// collection described by 'proxy' \param loopConfig pointer ownership is taken from the caller and transferred to the
5320+
/// TActionSequence class (stored as public fLoopConfig internally, will be deleted in destructor) \return new
5321+
/// `sequence` pointer of type TActionSequence, the memory ownership is transferred to caller, must delete it later
53135322

53145323
TStreamerInfoActions::TActionSequence *TStreamerInfoActions::TActionSequence::CreateWriteMemberWiseActions(TVirtualStreamerInfo &info, TLoopConfiguration *loopConfig)
53155324
{

0 commit comments

Comments
 (0)