torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::architecture::xilinx::TileTypeIndex Struct Reference

Encapsulation of a tile type index in an unsigned 16-bit integer. More...

#include <XilinxDatabaseTypes.hpp>

+ Inheritance diagram for torc::architecture::xilinx::TileTypeIndex:
+ Collaboration diagram for torc::architecture::xilinx::TileTypeIndex:

Public Types

typedef EncapsulatedInteger
< boost::uint16_t > 
type
 Alias for the instantiated class type. More...
 
typedef boost::uint16_t pod
 Alias for the encapsulated Plain-Old-Data type. More...
 

Public Member Functions

 TileTypeIndex (void)
 Null constructor. More...
 
 TileTypeIndex (const pod &rhs)
 Data type constructor. More...
 
 TileTypeIndex (const type &rhs)
 Copy constructor. More...
 
bool operator== (const type &rhs) const
 Equality operator (against encapsulated type). More...
 
bool operator== (const boost::uint16_t &rhs) const
 Equality operator. More...
 
 operator const boost::uint16_t & (void) const
 Constant cast operator. More...
 
 operator boost::uint16_t & (void)
 Non-constant cast operator. More...
 
bool isUndefined (void) const
 

Static Public Member Functions

static pod undefined (void)
 

Protected Attributes

boost::uint16_t m
 Encapsulated integer. More...
 

Detailed Description

Encapsulation of a tile type index in an unsigned 16-bit integer.

This type supports tile type indexes between 0 and 65,535 inclusive.

Definition at line 113 of file XilinxDatabaseTypes.hpp.

Member Typedef Documentation

typedef boost::uint16_t torc::common::EncapsulatedInteger< boost::uint16_t >::pod
inherited

Alias for the encapsulated Plain-Old-Data type.

Definition at line 35 of file EncapsulatedInteger.hpp.

typedef EncapsulatedInteger<boost::uint16_t > torc::common::EncapsulatedInteger< boost::uint16_t >::type
inherited

Alias for the instantiated class type.

Definition at line 34 of file EncapsulatedInteger.hpp.

Constructor & Destructor Documentation

torc::architecture::xilinx::TileTypeIndex::TileTypeIndex ( void  )
inlineexplicit

Null constructor.

Definition at line 114 of file XilinxDatabaseTypes.hpp.

torc::architecture::xilinx::TileTypeIndex::TileTypeIndex ( const pod rhs)
inlineexplicit

Data type constructor.

Definition at line 116 of file XilinxDatabaseTypes.hpp.

torc::architecture::xilinx::TileTypeIndex::TileTypeIndex ( const type rhs)
inlineexplicit

Copy constructor.

Definition at line 118 of file XilinxDatabaseTypes.hpp.

Member Function Documentation

bool torc::common::EncapsulatedInteger< boost::uint16_t >::isUndefined ( void  ) const
inlineinherited

Definition at line 61 of file EncapsulatedInteger.hpp.

61 { return m == static_cast<pod>(-1); }
boost::uint16_t pod
Alias for the encapsulated Plain-Old-Data type.
torc::common::EncapsulatedInteger< boost::uint16_t >::operator boost::uint16_t & ( void  )
inlineinherited

Non-constant cast operator.

Definition at line 55 of file EncapsulatedInteger.hpp.

55 { return m; }
torc::common::EncapsulatedInteger< boost::uint16_t >::operator const boost::uint16_t & ( void  ) const
inlineinherited

Constant cast operator.

Definition at line 53 of file EncapsulatedInteger.hpp.

53 { return m; }
bool torc::common::EncapsulatedInteger< boost::uint16_t >::operator== ( const type rhs) const
inlineinherited

Equality operator (against encapsulated type).

Definition at line 49 of file EncapsulatedInteger.hpp.

49 { return m == rhs.m; }
bool torc::common::EncapsulatedInteger< boost::uint16_t >::operator== ( const boost::uint16_t &  rhs) const
inlineinherited

Equality operator.

Definition at line 51 of file EncapsulatedInteger.hpp.

51 { return m == rhs; }
static pod torc::common::EncapsulatedInteger< boost::uint16_t >::undefined ( void  )
inlinestaticinherited

Definition at line 60 of file EncapsulatedInteger.hpp.

60 { return static_cast<pod>(-1); }
boost::uint16_t pod
Alias for the encapsulated Plain-Old-Data type.

+ Here is the caller graph for this function:

Field Documentation

boost::uint16_t torc::common::EncapsulatedInteger< boost::uint16_t >::m
protectedinherited

Encapsulated integer.

Definition at line 31 of file EncapsulatedInteger.hpp.


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