GCC Middle and Back End API Reference
ana::byte_range Struct Reference

#include <store.h>

Public Member Functions

 byte_range (byte_offset_t start_byte_offset, byte_size_t size_in_bytes)
 
void dump_to_pp (pretty_printer *pp) const
 
void dump () const
 
std::unique_ptr< json::objectto_json () const
 
bool empty_p () const
 
bool contains_p (byte_offset_t offset) const
 
bool contains_p (const byte_range &other, byte_range *out) const
 
bool operator== (const byte_range &other) const
 
byte_offset_t get_start_byte_offset () const
 
byte_offset_t get_next_byte_offset () const
 
byte_offset_t get_last_byte_offset () const
 
bit_range as_bit_range () const
 
bit_offset_t get_start_bit_offset () const
 
bit_offset_t get_next_bit_offset () const
 

Static Public Member Functions

static int cmp (const byte_range &br1, const byte_range &br2)
 

Data Fields

byte_offset_t m_start_byte_offset
 
byte_size_t m_size_in_bytes
 

Detailed Description

A concrete range of bytes.   

Constructor & Destructor Documentation

◆ byte_range()

ana::byte_range::byte_range ( byte_offset_t start_byte_offset,
byte_size_t size_in_bytes )
inline

Member Function Documentation

◆ as_bit_range()

bit_range ana::byte_range::as_bit_range ( ) const
inline

◆ cmp()

static int ana::byte_range::cmp ( const byte_range & br1,
const byte_range & br2 )
static

◆ contains_p() [1/2]

bool ana::byte_range::contains_p ( byte_offset_t offset) const
inline

◆ contains_p() [2/2]

bool ana::byte_range::contains_p ( const byte_range & other,
byte_range * out ) const

◆ dump()

void ana::byte_range::dump ( ) const

◆ dump_to_pp()

void ana::byte_range::dump_to_pp ( pretty_printer * pp) const

◆ empty_p()

bool ana::byte_range::empty_p ( ) const
inline

References m_size_in_bytes.

Referenced by get_last_byte_offset().

◆ get_last_byte_offset()

byte_offset_t ana::byte_range::get_last_byte_offset ( ) const
inline

◆ get_next_bit_offset()

bit_offset_t ana::byte_range::get_next_bit_offset ( ) const
inline

◆ get_next_byte_offset()

byte_offset_t ana::byte_range::get_next_byte_offset ( ) const
inline

◆ get_start_bit_offset()

bit_offset_t ana::byte_range::get_start_bit_offset ( ) const
inline

References m_start_byte_offset.

◆ get_start_byte_offset()

byte_offset_t ana::byte_range::get_start_byte_offset ( ) const
inline

References m_start_byte_offset.

Referenced by contains_p().

◆ operator==()

bool ana::byte_range::operator== ( const byte_range & other) const
inline

◆ to_json()

std::unique_ptr< json::object > ana::byte_range::to_json ( ) const

Field Documentation

◆ m_size_in_bytes

byte_size_t ana::byte_range::m_size_in_bytes

◆ m_start_byte_offset


The documentation for this struct was generated from the following file: