Bitstream Interpretation Library (BIL)
0.1
|
Models a Virtex bitstream. More...
#include <bitstream/Bitstream.hpp>
Public Member Functions | |
void | append (std::auto_ptr< Packet > packet) |
Appends a packet to the bitstream. | |
void | insert (std::auto_ptr< Packet > packet, size_t packetIndex) |
Inserts a packet into the bitstream. | |
void | erase (size_t packetIndex) |
Erases a packet from bitstream. | |
void | clear () |
Erases all packets. | |
size_t | size () const |
Gets the number of contained packets. | |
Packet & | at (size_t packetIndex) |
Gets the packet at the specified index. | |
const Packet & | at (size_t packetIndex) const |
Gets the packet at the specified index read only. | |
void | runVisitor (PacketVisitor &visitor) const |
Visits every packet with specified visitor. |
Models a Virtex bitstream.
All bitstreams for Virtex devices consist of an ordered list of packets of different types, depending on their purpose. The Bitstream class is a polymorphic container holding the different packets in sequence.
Definition at line 24 of file Bitstream.hpp.
void Bitstream::append | ( | std::auto_ptr< Packet > | packet | ) |
Appends a packet to the bitstream.
packet | The new packet. |
Definition at line 12 of file Bitstream.cpp.
void Bitstream::insert | ( | std::auto_ptr< Packet > | packet, |
size_t | packetIndex | ||
) |
Inserts a packet into the bitstream.
packet | The new packet. |
packetIndex | Index at which packet is inserted. |
Definition at line 18 of file Bitstream.cpp.
void Bitstream::erase | ( | size_t | packetIndex | ) |
Erases a packet from bitstream.
packetIndex | Index of packet to erase. |
Definition at line 25 of file Bitstream.cpp.
void Bitstream::clear | ( | ) |
Erases all packets.
Definition at line 32 of file Bitstream.cpp.
size_t Bitstream::size | ( | ) | const |
Gets the number of contained packets.
Definition at line 38 of file Bitstream.cpp.
Packet & Bitstream::at | ( | size_t | packetIndex | ) |
Gets the packet at the specified index.
packetIndex | Index of packet to get. |
. |
Definition at line 44 of file Bitstream.cpp.
const Packet & Bitstream::at | ( | size_t | packetIndex | ) | const |
Gets the packet at the specified index read only.
packetIndex | Index of packet to get. |
. |
Definition at line 51 of file Bitstream.cpp.
void Bitstream::runVisitor | ( | PacketVisitor & | visitor | ) | const |
Visits every packet with specified visitor.
visitor | Visitor to call. |
Definition at line 58 of file Bitstream.cpp.