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

#include <Virtex2.hpp>

+ Inheritance diagram for torc::bitstream::Virtex2::FrameAddress:
+ Collaboration diagram for torc::bitstream::Virtex2::FrameAddress:

Public Member Functions

 FrameAddress (void)
 
 FrameAddress (EFarBlockType inBlockType, uint32_t inMajor, uint32_t inMinor)
 
 FrameAddress (uint32_t inAddress)
 
virtual bool operator== (const VirtexFrameAddress &vrhs) const
 
virtual bool operator< (const VirtexFrameAddress &vrhs) const
 

Data Fields

EFarBlockType mBlockType
 
uint32_t mMajor
 
uint32_t mMinor
 

Protected Types

typedef boost::uint32_t uint32_t
 Imported type name. More...
 

Protected Member Functions

virtual void assign (uint32_t inAddress)
 

Friends

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

Detailed Description

Definition at line 146 of file Virtex2.hpp.

Member Typedef Documentation

typedef boost::uint32_t torc::bitstream::VirtexFrameAddress::uint32_t
protectedinherited

Imported type name.

Definition at line 32 of file VirtexFrameAddress.hpp.

Constructor & Destructor Documentation

torc::bitstream::Virtex2::FrameAddress::FrameAddress ( void  )
inline
torc::bitstream::Virtex2::FrameAddress::FrameAddress ( EFarBlockType  inBlockType,
uint32_t  inMajor,
uint32_t  inMinor 
)
inline

Definition at line 155 of file Virtex2.hpp.

155  :
156  mBlockType(inBlockType), mMajor(inMajor), mMinor(inMinor) {}
torc::bitstream::Virtex2::FrameAddress::FrameAddress ( uint32_t  inAddress)
inline

Definition at line 157 of file Virtex2.hpp.

157 { assign(inAddress); }
virtual void assign(uint32_t inAddress)
Definition: Virtex2.hpp:148

+ Here is the call graph for this function:

Member Function Documentation

virtual void torc::bitstream::Virtex2::FrameAddress::assign ( uint32_t  inAddress)
inlineprotectedvirtual
virtual bool torc::bitstream::Virtex2::FrameAddress::operator< ( const VirtexFrameAddress vrhs) const
inlinevirtual

Implements torc::bitstream::VirtexFrameAddress.

Definition at line 165 of file Virtex2.hpp.

165  {
166  const FrameAddress& rhs = reinterpret_cast<const FrameAddress&>(vrhs);
167  int diffBlockType = mBlockType - rhs.mBlockType;
168  if(diffBlockType) return diffBlockType < 0;
169  int diffMajor = mMajor - rhs.mMajor;
170  if(diffMajor) return diffMajor < 0;
171  return mMinor < rhs.mMinor;
172  }
virtual bool torc::bitstream::Virtex2::FrameAddress::operator== ( const VirtexFrameAddress vrhs) const
inlinevirtual

Implements torc::bitstream::VirtexFrameAddress.

Definition at line 161 of file Virtex2.hpp.

161  {
162  const FrameAddress& rhs = reinterpret_cast<const FrameAddress&>(vrhs);
163  return mBlockType == rhs.mBlockType && mMajor == rhs.mMajor && mMinor == rhs.mMinor;
164  }

Friends And Related Function Documentation

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

Definition at line 173 of file Virtex2.hpp.

173  {
174  return os << rhs.mBlockType << "(" << rhs.mMajor << "." << rhs.mMinor << ")";
175  }

Field Documentation

EFarBlockType torc::bitstream::Virtex2::FrameAddress::mBlockType

Definition at line 158 of file Virtex2.hpp.

uint32_t torc::bitstream::Virtex2::FrameAddress::mMajor

Definition at line 159 of file Virtex2.hpp.

uint32_t torc::bitstream::Virtex2::FrameAddress::mMinor

Definition at line 160 of file Virtex2.hpp.


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