GCC Middle and Back End API Reference
ana::concrete::range< ConcreteValueType > Class Template Reference

#include <concrete-ranges.h>

Inheritance diagram for ana::concrete::range< ConcreteValueType >:

Public Member Functions

 range ()=default
 range (ConcreteValueType start_offset, ConcreteValueType size)
void dump () const
void dump_to_pp (pretty_printer *pp) const
void dump_to_pp_pretty (pretty_printer *pp) const
ConcreteValueType get_start_offset () const
ConcreteValueType get_size () const
ConcreteValueType get_last_offset () const
ConcreteValueType get_next_offset () const
bool contains_p (ConcreteValueType offset) const
bool intersects_p (const range &other, range *out=nullptr) const
bool exceeds_p (ConcreteValueType offset, range< ConcreteValueType > *out) const
bool falls_short_of_p (ConcreteValueType offset, range< ConcreteValueType > *out) const
bool operator== (const range< ConcreteValueType > &other) const
bool operator< (const range< ConcreteValueType > &other) const
std::unique_ptr< json::object > to_json () const
std::unique_ptr< diagnostics::markup::node > make_markup_node () const

Static Public Member Functions

static int cmp (const range< ConcreteValueType > &lhs, const range< ConcreteValueType > &rhs)

Private Attributes

ConcreteValueType m_start_offset
ConcreteValueType m_size

Detailed Description

template<typename ConcreteValueType>
class ana::concrete::range< ConcreteValueType >
Concrete ranges of bits or bytes (or unitless).   

Constructor & Destructor Documentation

◆ range() [1/2]

template<typename ConcreteValueType>
ana::concrete::range< ConcreteValueType >::range ( )
default

◆ range() [2/2]

template<typename ConcreteValueType>
ana::concrete::range< ConcreteValueType >::range ( ConcreteValueType start_offset,
ConcreteValueType size )
inline

Member Function Documentation

◆ cmp()

template<typename ConcreteValueType>
int ana::concrete::range< ConcreteValueType >::cmp ( const range< ConcreteValueType > & lhs,
const range< ConcreteValueType > & rhs )
static

◆ contains_p()

template<typename ConcreteValueType>
bool ana::concrete::range< ConcreteValueType >::contains_p ( ConcreteValueType offset) const
inline

◆ dump()

template<typename ConcreteValueType>
void ana::concrete::range< ConcreteValueType >::dump ( ) const

◆ dump_to_pp()

template<typename ConcreteValueType>
void ana::concrete::range< ConcreteValueType >::dump_to_pp ( pretty_printer * pp) const

◆ dump_to_pp_pretty()

template<typename ConcreteValueType>
void ana::concrete::range< ConcreteValueType >::dump_to_pp_pretty ( pretty_printer * pp) const

◆ exceeds_p()

template<typename ConcreteValueType>
bool ana::concrete::range< ConcreteValueType >::exceeds_p ( ConcreteValueType offset,
range< ConcreteValueType > * out ) const

◆ falls_short_of_p()

template<typename ConcreteValueType>
bool ana::concrete::range< ConcreteValueType >::falls_short_of_p ( ConcreteValueType offset,
range< ConcreteValueType > * out ) const

◆ get_last_offset()

template<typename ConcreteValueType>
ConcreteValueType ana::concrete::range< ConcreteValueType >::get_last_offset ( ) const
inline

◆ get_next_offset()

template<typename ConcreteValueType>
ConcreteValueType ana::concrete::range< ConcreteValueType >::get_next_offset ( ) const
inline

◆ get_size()

template<typename ConcreteValueType>
ConcreteValueType ana::concrete::range< ConcreteValueType >::get_size ( ) const
inline

◆ get_start_offset()

template<typename ConcreteValueType>
ConcreteValueType ana::concrete::range< ConcreteValueType >::get_start_offset ( ) const
inline

◆ intersects_p()

template<typename ConcreteValueType>
bool ana::concrete::range< ConcreteValueType >::intersects_p ( const range< ConcreteValueType > & other,
range< ConcreteValueType > * out = nullptr ) const

◆ make_markup_node()

template<typename ConcreteValueType>
std::unique_ptr< diagnostics::markup::node > ana::concrete::range< ConcreteValueType >::make_markup_node ( ) const

◆ operator<()

template<typename ConcreteValueType>
bool ana::concrete::range< ConcreteValueType >::operator< ( const range< ConcreteValueType > & other) const
inline

◆ operator==()

template<typename ConcreteValueType>
bool ana::concrete::range< ConcreteValueType >::operator== ( const range< ConcreteValueType > & other) const
inline

◆ to_json()

template<typename ConcreteValueType>
std::unique_ptr< json::object > ana::concrete::range< ConcreteValueType >::to_json ( ) const

Field Documentation

◆ m_size

template<typename ConcreteValueType>
ConcreteValueType ana::concrete::range< ConcreteValueType >::m_size
private

◆ m_start_offset

template<typename ConcreteValueType>
ConcreteValueType ana::concrete::range< ConcreteValueType >::m_start_offset
private

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