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

#include <Spartan3E.hpp>

Public Member Functions

 FrameAddress (void)
 
 FrameAddress (uint32_t inColumn, uint32_t inMajor, uint32_t inMinor)
 
 FrameAddress (uint32_t inAddress)
 
bool operator== (const FrameAddress &rhs) const
 
bool operator< (const FrameAddress &rhs) const
 

Data Fields

uint32_t mColumn
 
uint32_t mMajor
 
uint32_t mMinor
 

Protected Member Functions

void assign (uint32_t inAddress)
 

Friends

std::ostream & operator<< (std::ostream &os, const Spartan3E::FrameAddress &rhs)
 

Detailed Description

Definition at line 140 of file Spartan3E.hpp.

Constructor & Destructor Documentation

torc::bitstream::Spartan3E::FrameAddress::FrameAddress ( void  )
inline
torc::bitstream::Spartan3E::FrameAddress::FrameAddress ( uint32_t  inColumn,
uint32_t  inMajor,
uint32_t  inMinor 
)
inline

Definition at line 149 of file Spartan3E.hpp.

torc::bitstream::Spartan3E::FrameAddress::FrameAddress ( uint32_t  inAddress)
inline

Definition at line 151 of file Spartan3E.hpp.

151 { assign(inAddress); }

+ Here is the call graph for this function:

Member Function Documentation

bool torc::bitstream::Spartan3E::FrameAddress::operator< ( const FrameAddress rhs) const
inline

Definition at line 158 of file Spartan3E.hpp.

158  {
159  int diffColumn = mColumn - rhs.mColumn;
160  if(diffColumn) return diffColumn < 0;
161  int diffMajor = mMajor - rhs.mMajor;
162  if(diffMajor) return diffMajor < 0;
163  return mMinor < rhs.mMinor;
164  }
bool torc::bitstream::Spartan3E::FrameAddress::operator== ( const FrameAddress rhs) const
inline

Definition at line 155 of file Spartan3E.hpp.

155  {
156  return mColumn == rhs.mColumn && mMajor == rhs.mMajor && mMinor == rhs.mMinor;
157  }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Spartan3E::FrameAddress rhs 
)
friend

Definition at line 165 of file Spartan3E.hpp.

165  {
166  return os << rhs.mColumn << "(" << rhs.mMajor << "." << rhs.mMinor << ")";
167  }

Field Documentation

uint32_t torc::bitstream::Spartan3E::FrameAddress::mColumn

Definition at line 152 of file Spartan3E.hpp.

uint32_t torc::bitstream::Spartan3E::FrameAddress::mMajor

Definition at line 153 of file Spartan3E.hpp.

uint32_t torc::bitstream::Spartan3E::FrameAddress::mMinor

Definition at line 154 of file Spartan3E.hpp.


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