GNU Radio's SATNOGS Package
gr::satnogs::shift_reg Class Reference

Implements a bit shift register. More...

#include <shift_reg.h>

Public Member Functions

 shift_reg (size_t len)
 
 ~shift_reg ()
 
void reset ()
 
void set ()
 
size_t len () const
 
size_t size () const
 
size_t count ()
 
shift_reg operator| (const shift_reg &rhs)
 
shift_reg operator & (const shift_reg &rhs)
 
shift_reg operator^ (const shift_reg &rhs)
 
shift_regoperator>>= (bool bit)
 
bool & operator[] (size_t pos)
 
bool operator[] (size_t pos) const
 
shift_regoperator<<= (bool bit)
 
void push_front (bool bit)
 
void push_back (bool bit)
 
bool front ()
 
bool back ()
 

Friends

std::ostream & operator<< (std::ostream &os, const shift_reg &reg)
 

Detailed Description

Implements a bit shift register.

Constructor & Destructor Documentation

◆ shift_reg()

gr::satnogs::shift_reg::shift_reg ( size_t  len)

◆ ~shift_reg()

gr::satnogs::shift_reg::~shift_reg ( )

Member Function Documentation

◆ back()

bool gr::satnogs::shift_reg::back ( )

◆ count()

size_t gr::satnogs::shift_reg::count ( )

◆ front()

bool gr::satnogs::shift_reg::front ( )

◆ len()

size_t gr::satnogs::shift_reg::len ( ) const

◆ operator &()

shift_reg gr::satnogs::shift_reg::operator& ( const shift_reg rhs)

◆ operator<<=()

shift_reg& gr::satnogs::shift_reg::operator<<= ( bool  bit)

◆ operator>>=()

shift_reg& gr::satnogs::shift_reg::operator>>= ( bool  bit)

◆ operator[]() [1/2]

bool& gr::satnogs::shift_reg::operator[] ( size_t  pos)

◆ operator[]() [2/2]

bool gr::satnogs::shift_reg::operator[] ( size_t  pos) const

◆ operator^()

shift_reg gr::satnogs::shift_reg::operator^ ( const shift_reg rhs)

◆ operator|()

shift_reg gr::satnogs::shift_reg::operator| ( const shift_reg rhs)

◆ push_back()

void gr::satnogs::shift_reg::push_back ( bool  bit)

◆ push_front()

void gr::satnogs::shift_reg::push_front ( bool  bit)

◆ reset()

void gr::satnogs::shift_reg::reset ( )

◆ set()

void gr::satnogs::shift_reg::set ( )

◆ size()

size_t gr::satnogs::shift_reg::size ( ) const

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const shift_reg reg 
)
friend

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