|
Bitstream Interpretation Library (BIL)
0.1
|
A primitive type. More...
#include <xdlrc/model/PrimitiveType.hpp>
Public Member Functions | |
| PrimitiveType () | |
| Constructs a new PrimitiveType instance. | |
| std::string & | name () |
| Gets type name. | |
| const std::string & | name () const |
| Gets type name read only. | |
| Pins & | pins () |
| Gets pins. | |
| const Pins & | pins () const |
| Gets pins read only. | |
| Elements & | elements () |
| Gets elements. | |
| const Elements & | elements () const |
| Gets elements read only. | |
| void | tag (size_t t) |
| Gets tag. | |
| size_t | tag () const |
| Gets tag. | |
| void | clear () |
| Resets all properties to default values. | |
Friends | |
| void | writeBinary (const PrimitiveType &data, std::ostream &outputStream) |
| Writes data from a PrimitiveType into a binary stream. | |
| void | readBinary (PrimitiveType &data, std::istream &inputStream) |
| Reads data into a PrimitiveType from a binary stream. | |
A primitive type.
Primitives are a basic logic units of a certain type. The PrimitiveType class describes such a type by providing its name, its pins (connecting the primitive to the outside), and its list of elements (making up its configurable parts).
Definition at line 25 of file PrimitiveType.hpp.
| PrimitiveType::PrimitiveType | ( | ) |
Constructs a new PrimitiveType instance.
Definition at line 11 of file PrimitiveType.cpp.
| std::string & PrimitiveType::name | ( | ) |
| const std::string & PrimitiveType::name | ( | ) | const |
| Pins & PrimitiveType::pins | ( | ) |
| const Pins & PrimitiveType::pins | ( | ) | const |
| Elements & PrimitiveType::elements | ( | ) |
| const Elements & PrimitiveType::elements | ( | ) | const |
| void PrimitiveType::tag | ( | size_t | t | ) |
| size_t PrimitiveType::tag | ( | ) | const |
| void PrimitiveType::clear | ( | ) |
Resets all properties to default values.
Definition at line 69 of file PrimitiveType.cpp.
|
friend |
Writes data from a PrimitiveType into a binary stream.
| data | The PrimitiveType to write. |
| outputStream | The stream to write into. |
| . |
|
friend |
Reads data into a PrimitiveType from a binary stream.
| data | The PrimitiveType to read into. |
| inputStream | The stream to read from. |
| . |
1.8.1.1