projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cpp-common/bt2: add `wrap(bt_graph *)`
[babeltrace.git]
/
src
/
cpp-common
/
bt2
/
wrap.hpp
diff --git
a/src/cpp-common/bt2/wrap.hpp
b/src/cpp-common/bt2/wrap.hpp
index 2d745154df5074c533fe10e686d6fc9bf74b0a19..3b8a86f8e15de0d377806e549795932c4675ffda 100644
(file)
--- a/
src/cpp-common/bt2/wrap.hpp
+++ b/
src/cpp-common/bt2/wrap.hpp
@@
-14,6
+14,7
@@
#include "component-port.hpp"
#include "field-class.hpp"
#include "field.hpp"
#include "component-port.hpp"
#include "field-class.hpp"
#include "field.hpp"
+#include "graph.hpp"
#include "integer-range-set.hpp"
#include "integer-range.hpp"
#include "message-iterator.hpp"
#include "integer-range-set.hpp"
#include "integer-range.hpp"
#include "message-iterator.hpp"
@@
-29,6
+30,11
@@
namespace bt2 {
namespace bt2 {
+inline Graph wrap(bt_graph * const libObjPtr) noexcept
+{
+ return Graph {libObjPtr};
+}
+
inline ClockClass wrap(bt_clock_class * const libObjPtr) noexcept
{
return ClockClass {libObjPtr};
inline ClockClass wrap(bt_clock_class * const libObjPtr) noexcept
{
return ClockClass {libObjPtr};
This page took
0.023509 seconds
and
4
git commands to generate.