Motr  M0
ext.h File Reference
#include "format/format.h"
#include "format/format_xc.h"
Include dependency graph for ext.h:

Go to the source code of this file.

Data Structures

struct  m0_ext
 

Macros

#define __MOTR_LIB_EXT_H__
 
#define M0_EXT(start, end)   ((struct m0_ext){ .e_start = (start), .e_end = (end) })
 
#define EXT_F   "[%" PRIx64 ", %" PRIx64 ")"
 
#define EXT_P(x)   (x)->e_start, (x)->e_end
 

Enumerations

enum  m0_ext_format_version { M0_EXT_FORMAT_VERSION_1 = 1, M0_EXT_FORMAT_VERSION = M0_EXT_FORMAT_VERSION_1 }
 

Functions

struct m0_ext M0_XCA_DOMAIN (be|rpc)
 
M0_INTERNAL void m0_ext_init (struct m0_ext *ext)
 
M0_INTERNAL m0_bcount_t m0_ext_length (const struct m0_ext *ext)
 
M0_INTERNAL bool m0_ext_is_in (const struct m0_ext *ext, m0_bindex_t index)
 
M0_INTERNAL bool m0_ext_are_overlapping (const struct m0_ext *e0, const struct m0_ext *e1)
 
M0_INTERNAL bool m0_ext_is_partof (const struct m0_ext *super, const struct m0_ext *sub)
 
M0_INTERNAL bool m0_ext_equal (const struct m0_ext *a, const struct m0_ext *b)
 
M0_INTERNAL bool m0_ext_is_empty (const struct m0_ext *ext)
 
M0_INTERNAL void m0_ext_intersection (const struct m0_ext *e0, const struct m0_ext *e1, struct m0_ext *result)
 
M0_INTERNAL void m0_ext_sub (const struct m0_ext *minuend, const struct m0_ext *subtrahend, struct m0_ext *difference)
 
M0_INTERNAL void m0_ext_add (const struct m0_ext *term0, const struct m0_ext *term1, struct m0_ext *sum)
 
M0_INTERNAL m0_bindex_t m0_ext_cap (const struct m0_ext *ext2, m0_bindex_t val)
 
M0_INTERNAL bool m0_ext_is_valid (const struct m0_ext *ext)
 

Variables

struct m0_format_header e_header
 
m0_bindex_t e_start
 
m0_bindex_t e_end
 
struct m0_format_footer e_footer
 
enum m0_ext_format_version M0_XCA_DOMAIN
 

Macro Definition Documentation

◆ __MOTR_LIB_EXT_H__

#define __MOTR_LIB_EXT_H__

Definition at line 26 of file ext.h.

Variable Documentation

◆ e_end

m0_bindex_t e_end

Definition at line 97 of file ext.h.

◆ e_footer

struct m0_format_footer e_footer

Definition at line 98 of file ext.h.

◆ e_header

struct m0_format_header e_header

Definition at line 95 of file ext.h.

◆ e_start

m0_bindex_t e_start

Definition at line 96 of file ext.h.