Project

General

Profile

Bug #5167

Data product sizes reported by FileDumperOutput

Added by Rob Kutschke over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/08/2014
Due date:
% Done:

0%

Estimated time:
Occurs In:
Scope:
Internal
Experiment:
Mu2e
SSI Package:
Duration:

Description

For most Mu2e data products, the collection type is defined by:

namespace mu2e {
typedef std::vector<Foo> FooCollection;
}

In a few cases we have collection types defined by:

namespace mu2e {
FooCollection : public std::vector<Foo> {};
}

We have used the FileDumperOutput module to look at a file containing both kinds of collections. For data products that are defined using the typedef style definition, the size is reported correctly. For data products that are defined using public inheritance from std::vector the module reports a size of "-" ; that is, it believes that the data product class does not have a size function.

History

#1 Updated by Christopher Green over 5 years ago

  • Status changed from New to Rejected

Rejected per conversation with ROb K. In general, one should not inherit from STL classes because they do not have virtual destructors.



Also available in: Atom PDF