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

#include <Spartan6.hpp>

Public Member Functions

 FrameMajorAddress (void)
 
 FrameMajorAddress (uint16_t inMajBlock, uint16_t inMajRow, uint16_t inMajMajor)
 
 FrameMajorAddress (uint16_t inMajAddress)
 
bool operator== (const FrameMajorAddress &rhs) const
 
bool operator< (const FrameMajorAddress &rhs) const
 

Data Fields

uint16_t mMajBlock
 
uint16_t mMajRow
 
uint16_t mMajMajor
 

Protected Member Functions

void assign (uint16_t inMajAddress)
 

Detailed Description

Definition at line 122 of file Spartan6.hpp.

Constructor & Destructor Documentation

torc::bitstream::Spartan6::FrameMajorAddress::FrameMajorAddress ( void  )
inline
torc::bitstream::Spartan6::FrameMajorAddress::FrameMajorAddress ( uint16_t  inMajBlock,
uint16_t  inMajRow,
uint16_t  inMajMajor 
)
inline

Definition at line 131 of file Spartan6.hpp.

torc::bitstream::Spartan6::FrameMajorAddress::FrameMajorAddress ( uint16_t  inMajAddress)
inline

Definition at line 133 of file Spartan6.hpp.

133 { assign(inMajAddress); }
void assign(uint16_t inMajAddress)
Definition: Spartan6.hpp:124

+ Here is the call graph for this function:

Member Function Documentation

bool torc::bitstream::Spartan6::FrameMajorAddress::operator< ( const FrameMajorAddress rhs) const
inline

Definition at line 142 of file Spartan6.hpp.

142  {
143  int diffMajBlock = mMajBlock - rhs.mMajBlock;
144  if(diffMajBlock) return diffMajBlock < 0;
145  int diffMajRow = mMajRow - rhs.mMajRow;
146  if(diffMajRow) return diffMajRow < 0;
147  return mMajMajor < rhs.mMajMajor;
148  }
bool torc::bitstream::Spartan6::FrameMajorAddress::operator== ( const FrameMajorAddress rhs) const
inline

Definition at line 138 of file Spartan6.hpp.

138  {
139  return mMajBlock == rhs.mMajBlock && mMajRow == rhs.mMajRow
140  && mMajMajor == rhs.mMajMajor;
141  }

Field Documentation

uint16_t torc::bitstream::Spartan6::FrameMajorAddress::mMajBlock

Definition at line 134 of file Spartan6.hpp.

uint16_t torc::bitstream::Spartan6::FrameMajorAddress::mMajMajor

Definition at line 136 of file Spartan6.hpp.

uint16_t torc::bitstream::Spartan6::FrameMajorAddress::mMajRow

Definition at line 135 of file Spartan6.hpp.


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