Babeltrace 2 C API  2.0.0
Open-source trace manipulation framework
Self component classes

Detailed Description

Private views of component classes for class methods.

The bt_self_component_class, bt_self_component_class_source, bt_self_component_class_filter, bt_self_component_class_sink types are private views of a component class from within a component class class method.

As of Babeltrace 2.0, this module only contains functions to upcast the "self" (private) types to their public bt_component_class, bt_component_class_source, bt_component_class_filter, and bt_component_class_sink counterparts.

Types

typedef struct bt_self_component_class bt_self_component_class
 Self component class.
 
typedef struct bt_self_component_class_source bt_self_component_class_source
 Self source component class.
 
typedef struct bt_self_component_class_filter bt_self_component_class_filter
 Self filter component class.
 
typedef struct bt_self_component_class_sink bt_self_component_class_sink
 Self sink component class.
 

Self to public upcast

static const bt_component_classbt_self_component_class_as_component_class (bt_self_component_class *self_component_class)
 Upcasts the self component class self_component_class to the public bt_component_class type. More...
 
static const bt_component_class_sourcebt_self_component_class_source_as_component_class_source (bt_self_component_class_source *self_component_class)
 Upcasts the self source component class self_component_class to the public bt_component_class_source type. More...
 
static const bt_component_class_filterbt_self_component_class_filter_as_component_class_filter (bt_self_component_class_filter *self_component_class)
 Upcasts the self filter component class self_component_class to the public bt_component_class_filter type. More...
 
static const bt_component_class_sinkbt_self_component_class_sink_as_component_class_sink (bt_self_component_class_sink *self_component_class)
 Upcasts the self sink component class self_component_class to the public bt_component_class_sink type. More...
 

Self to common self upcast

static bt_self_component_classbt_self_component_class_source_as_self_component_class (bt_self_component_class_source *self_component_class)
 Upcasts the self source component class self_component_class to the common bt_self_component_class type. More...
 
static bt_self_component_classbt_self_component_class_filter_as_self_component_class (bt_self_component_class_filter *self_component_class)
 Upcasts the self filter component class self_component_class to the common bt_self_component_class type. More...
 
static bt_self_component_classbt_self_component_class_sink_as_self_component_class (bt_self_component_class_sink *self_component_class)
 Upcasts the self sink component class self_component_class to the common bt_self_component_class type. More...
 

Function Documentation

◆ bt_self_component_class_as_component_class()

static const bt_component_class* bt_self_component_class_as_component_class ( bt_self_component_class self_component_class)
inlinestatic

Upcasts the self component class self_component_class to the public bt_component_class type.

Parameters
[in]self_component_class

Component class to upcast.

Can be NULL.

Returns
self_component_class as a public component class.

◆ bt_self_component_class_source_as_component_class_source()

static const bt_component_class_source* bt_self_component_class_source_as_component_class_source ( bt_self_component_class_source self_component_class)
inlinestatic

Upcasts the self source component class self_component_class to the public bt_component_class_source type.

Parameters
[in]self_component_class

Source component class to upcast.

Can be NULL.

Returns
self_component_class as a public source component class.

◆ bt_self_component_class_filter_as_component_class_filter()

static const bt_component_class_filter* bt_self_component_class_filter_as_component_class_filter ( bt_self_component_class_filter self_component_class)
inlinestatic

Upcasts the self filter component class self_component_class to the public bt_component_class_filter type.

Parameters
[in]self_component_class

Filter component class to upcast.

Can be NULL.

Returns
self_component_class as a public filter component class.

◆ bt_self_component_class_sink_as_component_class_sink()

static const bt_component_class_sink* bt_self_component_class_sink_as_component_class_sink ( bt_self_component_class_sink self_component_class)
inlinestatic

Upcasts the self sink component class self_component_class to the public bt_component_class_sink type.

Parameters
[in]self_component_class

Sink component class to upcast.

Can be NULL.

Returns
self_component_class as a public sink component class.

◆ bt_self_component_class_source_as_self_component_class()

static bt_self_component_class* bt_self_component_class_source_as_self_component_class ( bt_self_component_class_source self_component_class)
inlinestatic

Upcasts the self source component class self_component_class to the common bt_self_component_class type.

Parameters
[in]self_component_class

Source component class to upcast.

Can be NULL.

Returns
self_component_class as a common self component class.

◆ bt_self_component_class_filter_as_self_component_class()

static bt_self_component_class* bt_self_component_class_filter_as_self_component_class ( bt_self_component_class_filter self_component_class)
inlinestatic

Upcasts the self filter component class self_component_class to the common bt_self_component_class type.

Parameters
[in]self_component_class

Filter component class to upcast.

Can be NULL.

Returns
self_component_class as a common self component class.

◆ bt_self_component_class_sink_as_self_component_class()

static bt_self_component_class* bt_self_component_class_sink_as_self_component_class ( bt_self_component_class_sink self_component_class)
inlinestatic

Upcasts the self sink component class self_component_class to the common bt_self_component_class type.

Parameters
[in]self_component_class

Sink component class to upcast.

Can be NULL.

Returns
self_component_class as a common self component class.