Project
Loading...
Searching...
No Matches
o2::rans::BitPtr Class Reference

#include <BitPtr.h>

Public Types

using bitAddress_type = intptr_t
 

Public Member Functions

constexpr BitPtr () noexcept
 
constexpr BitPtr (intptr_t bitAdr) noexcept
 
template<typename T >
constexpr BitPtr (const T *ptr, intptr_t offset=0) noexcept
 
constexpr const bitAddress_typegetBitAddress () const noexcept
 
constexpr bitAddress_typegetBitAddress () noexcept
 
template<typename T >
constexpr intptr_t getOffset () const noexcept
 
template<typename T >
constexpr T * toPtr () const noexcept
 
constexpr operator intptr_t () const noexcept
 
template<typename T >
constexpr operator T* () const noexcept
 
constexpr BitPtroperator++ () noexcept
 
constexpr BitPtr operator++ (int) noexcept
 
constexpr BitPtroperator-- () noexcept
 
constexpr BitPtr operator-- (int) noexcept
 
constexpr BitPtroperator+= (intptr_t bitOffset) noexcept
 
constexpr BitPtr operator+ (intptr_t bitOffset) const noexcept
 
constexpr BitPtroperator-= (intptr_t bitOffset) noexcept
 
constexpr BitPtr operator- (intptr_t bitOffset) const noexcept
 
constexpr intptr_t operator- (const BitPtr &other) const noexcept
 
constexpr bool operator== (const BitPtr &other) const noexcept
 
constexpr bool operator!= (const BitPtr &other) const noexcept
 
constexpr bool operator< (const BitPtr &other) const noexcept
 
constexpr bool operator> (const BitPtr &other) const noexcept
 
constexpr bool operator>= (const BitPtr &other) const noexcept
 
constexpr bool operator<= (const BitPtr &other) const noexcept
 

Friends

BitPtr operator+ (intptr_t bitOffset, const BitPtr &bitPtr)
 
void swap (BitPtr &first, BitPtr &second)
 

Detailed Description

Definition at line 30 of file BitPtr.h.

Member Typedef Documentation

◆ bitAddress_type

Definition at line 33 of file BitPtr.h.

Constructor & Destructor Documentation

◆ BitPtr() [1/3]

constexpr o2::rans::BitPtr::BitPtr ( )
inlineconstexprnoexcept

Definition at line 35 of file BitPtr.h.

◆ BitPtr() [2/3]

constexpr o2::rans::BitPtr::BitPtr ( intptr_t  bitAdr)
inlineconstexprnoexcept

Definition at line 37 of file BitPtr.h.

◆ BitPtr() [3/3]

template<typename T >
constexpr o2::rans::BitPtr::BitPtr ( const T *  ptr,
intptr_t  offset = 0 
)
inlineconstexprnoexcept

Definition at line 40 of file BitPtr.h.

Member Function Documentation

◆ getBitAddress() [1/2]

constexpr const bitAddress_type & o2::rans::BitPtr::getBitAddress ( ) const
inlineconstexprnoexcept

Definition at line 45 of file BitPtr.h.

◆ getBitAddress() [2/2]

constexpr bitAddress_type & o2::rans::BitPtr::getBitAddress ( )
inlineconstexprnoexcept

Definition at line 47 of file BitPtr.h.

◆ getOffset()

template<typename T >
constexpr intptr_t o2::rans::BitPtr::getOffset ( ) const
inlineconstexprnoexcept

Definition at line 50 of file BitPtr.h.

◆ operator intptr_t()

constexpr o2::rans::BitPtr::operator intptr_t ( ) const
inlineexplicitconstexprnoexcept

Definition at line 69 of file BitPtr.h.

◆ operator T*()

template<typename T >
constexpr o2::rans::BitPtr::operator T* ( ) const
inlineexplicitconstexprnoexcept

Definition at line 75 of file BitPtr.h.

◆ operator!=()

constexpr bool o2::rans::BitPtr::operator!= ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 143 of file BitPtr.h.

◆ operator+()

constexpr BitPtr o2::rans::BitPtr::operator+ ( intptr_t  bitOffset) const
inlineconstexprnoexcept

Definition at line 113 of file BitPtr.h.

◆ operator++() [1/2]

constexpr BitPtr & o2::rans::BitPtr::operator++ ( )
inlineconstexprnoexcept

Definition at line 81 of file BitPtr.h.

◆ operator++() [2/2]

constexpr BitPtr o2::rans::BitPtr::operator++ ( int  )
inlineconstexprnoexcept

Definition at line 87 of file BitPtr.h.

◆ operator+=()

constexpr BitPtr & o2::rans::BitPtr::operator+= ( intptr_t  bitOffset)
inlineconstexprnoexcept

Definition at line 107 of file BitPtr.h.

◆ operator-() [1/2]

constexpr intptr_t o2::rans::BitPtr::operator- ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 131 of file BitPtr.h.

◆ operator-() [2/2]

constexpr BitPtr o2::rans::BitPtr::operator- ( intptr_t  bitOffset) const
inlineconstexprnoexcept

Definition at line 125 of file BitPtr.h.

◆ operator--() [1/2]

constexpr BitPtr & o2::rans::BitPtr::operator-- ( )
inlineconstexprnoexcept

Definition at line 94 of file BitPtr.h.

◆ operator--() [2/2]

constexpr BitPtr o2::rans::BitPtr::operator-- ( int  )
inlineconstexprnoexcept

Definition at line 100 of file BitPtr.h.

◆ operator-=()

constexpr BitPtr & o2::rans::BitPtr::operator-= ( intptr_t  bitOffset)
inlineconstexprnoexcept

Definition at line 119 of file BitPtr.h.

◆ operator<()

constexpr bool o2::rans::BitPtr::operator< ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 144 of file BitPtr.h.

◆ operator<=()

constexpr bool o2::rans::BitPtr::operator<= ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 147 of file BitPtr.h.

◆ operator==()

constexpr bool o2::rans::BitPtr::operator== ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 142 of file BitPtr.h.

◆ operator>()

constexpr bool o2::rans::BitPtr::operator> ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 145 of file BitPtr.h.

◆ operator>=()

constexpr bool o2::rans::BitPtr::operator>= ( const BitPtr other) const
inlineconstexprnoexcept

Definition at line 146 of file BitPtr.h.

◆ toPtr()

template<typename T >
constexpr T * o2::rans::BitPtr::toPtr ( ) const
inlineconstexprnoexcept

Definition at line 58 of file BitPtr.h.

Friends And Related Symbol Documentation

◆ operator+

BitPtr operator+ ( intptr_t  bitOffset,
const BitPtr bitPtr 
)
friend

Definition at line 136 of file BitPtr.h.

◆ swap

void swap ( BitPtr first,
BitPtr second 
)
friend

Definition at line 149 of file BitPtr.h.


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