#include <DDBStreamHelper.hpp>
Public Types | |
typedef torc::common::EncapsulatedInteger < int > | IWordIndex |
Encapsulation of a stream iword used as a pword index. | |
Static Public Member Functions | |
static IWordIndex | getIWordIndex (std::ostream &os) |
Return the iword index for this stream, or allocate it if not defined. | |
static class DDB * | getDDBPtr (std::ostream &os) |
Return the device database pointer associated with this stream. | |
Protected Types | |
typedef std::map< std::ostream *, int > | OStreamToIntMap |
Map of streams to iwords. | |
Static Protected Attributes | |
static OStreamToIntMap | sIWordIndexes |
Map of streams to iwords. |
This helper class allows the caller to associate a device database with an output stream. This allows extremely lightweight classes like Tilewire to decorate their output with additional information, without requiring their own database reference.
std::cout << ddb << ...;
Definition at line 35 of file DDBStreamHelper.hpp.
typedef std::map<std::ostream*, int> torc::architecture::DDBStreamHelper::OStreamToIntMap [protected] |
Encapsulation of a stream iword used as a pword index.
Definition at line 46 of file DDBStreamHelper.hpp.
static IWordIndex torc::architecture::DDBStreamHelper::getIWordIndex | ( | std::ostream & | os | ) | [inline, static] |
Return the iword index for this stream, or allocate it if not defined.
Definition at line 49 of file DDBStreamHelper.hpp.
static class DDB* torc::architecture::DDBStreamHelper::getDDBPtr | ( | std::ostream & | os | ) | [inline, static] |
Return the device database pointer associated with this stream.
Definition at line 61 of file DDBStreamHelper.hpp.
DDBStreamHelper::OStreamToIntMap torc::architecture::DDBStreamHelper::sIWordIndexes [static, protected] |