torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::bitstream::Spartan6::FrameMinorAddress Class Reference

#include <Spartan6.hpp>

Public Member Functions

 FrameMinorAddress (void)
 
 FrameMinorAddress (uint16_t inMinBlock, uint16_t inMinMinor)
 
 FrameMinorAddress (uint16_t inMinAddress)
 
bool operator== (const FrameMinorAddress &rhs) const
 
bool operator< (const FrameMinorAddress &rhs) const
 

Data Fields

uint16_t mMinBlock
 
uint16_t mMinMinor
 

Protected Member Functions

void assign (uint16_t inMinAddress)
 

Detailed Description

Definition at line 152 of file Spartan6.hpp.

Constructor & Destructor Documentation

torc::bitstream::Spartan6::FrameMinorAddress::FrameMinorAddress ( void  )
inline
torc::bitstream::Spartan6::FrameMinorAddress::FrameMinorAddress ( uint16_t  inMinBlock,
uint16_t  inMinMinor 
)
inline

Definition at line 160 of file Spartan6.hpp.

160  : mMinBlock(inMinBlock),
161  mMinMinor(inMinMinor) {}
torc::bitstream::Spartan6::FrameMinorAddress::FrameMinorAddress ( uint16_t  inMinAddress)
inline

Definition at line 162 of file Spartan6.hpp.

162 { assign(inMinAddress); }
void assign(uint16_t inMinAddress)
Definition: Spartan6.hpp:154

+ Here is the call graph for this function:

Member Function Documentation

void torc::bitstream::Spartan6::FrameMinorAddress::assign ( uint16_t  inMinAddress)
inlineprotected
bool torc::bitstream::Spartan6::FrameMinorAddress::operator< ( const FrameMinorAddress rhs) const
inline

Definition at line 169 of file Spartan6.hpp.

169  {
170  int diffMinBlock = mMinBlock - rhs.mMinBlock;
171  if(diffMinBlock) return diffMinBlock < 0;
172  return mMinMinor < rhs.mMinMinor;
173  }
bool torc::bitstream::Spartan6::FrameMinorAddress::operator== ( const FrameMinorAddress rhs) const
inline

Definition at line 166 of file Spartan6.hpp.

166  {
167  return mMinBlock == rhs.mMinBlock && mMinMinor == rhs.mMinMinor;
168  }

Field Documentation

uint16_t torc::bitstream::Spartan6::FrameMinorAddress::mMinBlock

Definition at line 163 of file Spartan6.hpp.

uint16_t torc::bitstream::Spartan6::FrameMinorAddress::mMinMinor

Definition at line 164 of file Spartan6.hpp.


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