Bitstream Interpretation Library (BIL)
0.1
|
Models the topmost XDLRC entity. More...
#include <xdlrc/model/Device.hpp>
Public Member Functions | |
Device () | |
Constructs a new Device instance. | |
std::string & | name () |
Gets device name. | |
const std::string & | name () const |
Gets device name read only. | |
Tiles & | tiles () |
Gets tiles. | |
const Tiles & | tiles () const |
Gets tiles read only. | |
unsigned | maxRowIndex () const |
Gets maximum row index found in all tiles. | |
unsigned | maxColumnIndex () const |
Gets maximum column index found in all tiles. | |
TileTypes & | tileTypes () |
Gets tile types. | |
const TileTypes & | tileTypes () const |
Gets tile types read only. | |
PrimitiveTypes & | primitiveTypes () |
Gets primitive types. | |
const PrimitiveTypes & | primitiveTypes () const |
Gets primitive types read only. | |
void | clear () |
Resets all properties to default values. |
Friends | |
void | writeBinary (const Device &data, std::ostream &outputStream) |
Writes data from a Device into a binary stream. | |
void | readBinary (Device &data, std::istream &inputStream) |
Reads data into a Device from a binary stream. |
Models the topmost XDLRC entity.
XDLRC data is a hierarchical tree structure of distinct entities carrying data. The Device class models the root of this tree containing the Tiles, TileTypes, and PrimitiveTypes subtrees. The structure is mostly the same as found in an XDLRC file, with some adjustments for much less memory requirements and simpler traversal.
Definition at line 27 of file Device.hpp.
Device::Device | ( | ) |
Constructs a new Device instance.
Definition at line 11 of file Device.cpp.
std::string & Device::name | ( | ) |
const std::string & Device::name | ( | ) | const |
Tiles & Device::tiles | ( | ) |
const Tiles & Device::tiles | ( | ) | const |
unsigned Device::maxRowIndex | ( | ) | const |
Gets maximum row index found in all tiles.
Definition at line 45 of file Device.cpp.
unsigned Device::maxColumnIndex | ( | ) | const |
Gets maximum column index found in all tiles.
Definition at line 58 of file Device.cpp.
TileTypes & Device::tileTypes | ( | ) |
const TileTypes & Device::tileTypes | ( | ) | const |
PrimitiveTypes & Device::primitiveTypes | ( | ) |
const PrimitiveTypes & Device::primitiveTypes | ( | ) | const |
Gets primitive types read only.
Definition at line 89 of file Device.cpp.
void Device::clear | ( | ) |
Resets all properties to default values.
Definition at line 95 of file Device.cpp.
|
friend |
|
friend |