rmw  master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
Functions
allocators.h File Reference
#include "rmw/types.h"
#include "rmw/visibility_control.h"
Include dependency graph for allocators.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * rmw_allocate (size_t size)
 Allocate memory of size in bytes using rcutils default allocator's allocate() More...
 
void rmw_free (void *pointer)
 Free memory using rcutils default allocator's deallocate() More...
 
rmw_node_trmw_node_allocate (void)
 Allocate memory for an rmw_node_t using rcutils default allocator's allocate() More...
 
void rmw_node_free (rmw_node_t *node)
 Free memory allocated to this node pointer using rcutils default allocator's deallocate() More...
 
rmw_publisher_trmw_publisher_allocate (void)
 Allocate memory for an rmw_publisher_t using rcutils default allocator's allocate() More...
 
void rmw_publisher_free (rmw_publisher_t *publisher)
 Free memory using rcutils default allocator's deallocate() More...
 
rmw_subscription_trmw_subscription_allocate (void)
 Allocate memory for an rmw_subscription_t using rcutils default allocator's allocate() More...
 
void rmw_subscription_free (rmw_subscription_t *subscription)
 Free memory using rcutils default allocator's deallocate() More...
 
rmw_guard_condition_trmw_guard_condition_allocate (void)
 Allocate memory for an rmw_guard_condition_t using rcutils default allocator's allocate() More...
 
void rmw_guard_condition_free (rmw_guard_condition_t *guard_condition)
 Free memory using rcutils default allocator's deallocate() More...
 
rmw_client_trmw_client_allocate (void)
 Allocate memory for an rmw_client_t using rcutils default allocator's allocate() More...
 
void rmw_client_free (rmw_client_t *client)
 Free memory using rcutils default allocator's deallocate() More...
 
rmw_service_trmw_service_allocate (void)
 Allocate memory for an rmw_service_t using rcutils default allocator's allocate() More...
 
void rmw_service_free (rmw_service_t *service)
 Free memory using rcutils default allocator's deallocate() More...
 
rmw_wait_set_trmw_wait_set_allocate (void)
 Allocate memory for an rmw_wait_set_t using rcutils default allocator's allocate() More...
 
void rmw_wait_set_free (rmw_wait_set_t *wait_set)
 Free memory using rcutils default allocator's deallocate() More...
 

Function Documentation

◆ rmw_allocate()

void* rmw_allocate ( size_t  size)

Allocate memory of size in bytes using rcutils default allocator's allocate()

Parameters
[in]sizeThe number of bytes to allocate
Returns
pointer to allocated memory

◆ rmw_free()

void rmw_free ( void *  pointer)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory

◆ rmw_node_allocate()

rmw_node_t* rmw_node_allocate ( void  )

Allocate memory for an rmw_node_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_node_free()

void rmw_node_free ( rmw_node_t node)

Free memory allocated to this node pointer using rcutils default allocator's deallocate()

Parameters
[in]pointerto allocated memory

◆ rmw_publisher_allocate()

rmw_publisher_t* rmw_publisher_allocate ( void  )

Allocate memory for an rmw_publisher_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_publisher_free()

void rmw_publisher_free ( rmw_publisher_t publisher)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory

◆ rmw_subscription_allocate()

rmw_subscription_t* rmw_subscription_allocate ( void  )

Allocate memory for an rmw_subscription_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_subscription_free()

void rmw_subscription_free ( rmw_subscription_t subscription)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory

◆ rmw_guard_condition_allocate()

rmw_guard_condition_t* rmw_guard_condition_allocate ( void  )

Allocate memory for an rmw_guard_condition_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_guard_condition_free()

void rmw_guard_condition_free ( rmw_guard_condition_t guard_condition)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory

◆ rmw_client_allocate()

rmw_client_t* rmw_client_allocate ( void  )

Allocate memory for an rmw_client_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_client_free()

void rmw_client_free ( rmw_client_t client)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory

◆ rmw_service_allocate()

rmw_service_t* rmw_service_allocate ( void  )

Allocate memory for an rmw_service_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_service_free()

void rmw_service_free ( rmw_service_t service)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory

◆ rmw_wait_set_allocate()

rmw_wait_set_t* rmw_wait_set_allocate ( void  )

Allocate memory for an rmw_wait_set_t using rcutils default allocator's allocate()

Returns
pointer to allocated memory

◆ rmw_wait_set_free()

void rmw_wait_set_free ( rmw_wait_set_t wait_set)

Free memory using rcutils default allocator's deallocate()

Parameters
[in]sizepointer to allocated memory