#include <BaseIOStatsStrategy.h>
Inheritance diagram for vpr::BaseIOStatsStrategy:


Public Types | |
| enum | { IS_NULL = 0 } |
Public Member Functions | |
| BaseIOStatsStrategy () | |
| virtual | ~BaseIOStatsStrategy () |
| void | setRealObject (vpr::BlockIO *real) |
| virtual void | read_s (vpr::ReturnStatus &status, void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytes_read, const vpr::Interval timeout=vpr::Interval::NoTimeout) |
| virtual void | readn_s (vpr::ReturnStatus &status, void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytes_read, const vpr::Interval timeout=vpr::Interval::NoTimeout) |
| virtual void | write_s (vpr::ReturnStatus &status, const void *buffer, const vpr::Uint32 length, vpr::Uint32 &bytes_written, const vpr::Interval timeout=vpr::Interval::NoTimeout) |
Protected Attributes | |
| vpr::BlockIO * | mRealObject |
This is the interface that the BlockIO class expects to deal with. We add on other stats features using mixins that are added by a template composition adapter.
Definition at line 61 of file BaseIOStatsStrategy.h.
| anonymous enum |
| vpr::BaseIOStatsStrategy::BaseIOStatsStrategy | ( | ) | [inline] |
| virtual vpr::BaseIOStatsStrategy::~BaseIOStatsStrategy | ( | ) | [inline, virtual] |
| void vpr::BaseIOStatsStrategy::setRealObject | ( | vpr::BlockIO * | real | ) |
Definition at line 46 of file BaseIOStatsStrategy.cpp.
References mRealObject.
Referenced by vpr::BlockIO::setIOStatStrategy().
00047 { mRealObject = real; }
| void vpr::BaseIOStatsStrategy::read_s | ( | vpr::ReturnStatus & | status, | |
| void * | buffer, | |||
| const vpr::Uint32 | length, | |||
| vpr::Uint32 & | bytes_read, | |||
| const vpr::Interval | timeout = vpr::Interval::NoTimeout | |||
| ) | [virtual] |
Definition at line 49 of file BaseIOStatsStrategy.cpp.
References mRealObject, and vpr::BlockIO::read_i().
Referenced by vpr::BlockIO::read_s().
00053 { 00054 status = mRealObject->read_i(buffer, length, bytes_read, timeout); 00055 }
| void vpr::BaseIOStatsStrategy::readn_s | ( | vpr::ReturnStatus & | status, | |
| void * | buffer, | |||
| const vpr::Uint32 | length, | |||
| vpr::Uint32 & | bytes_read, | |||
| const vpr::Interval | timeout = vpr::Interval::NoTimeout | |||
| ) | [virtual] |
Definition at line 57 of file BaseIOStatsStrategy.cpp.
References mRealObject, and vpr::BlockIO::readn_i().
Referenced by vpr::BlockIO::readn_s().
00061 { 00062 status = mRealObject->readn_i(buffer, length, bytes_read, timeout); 00063 }
| void vpr::BaseIOStatsStrategy::write_s | ( | vpr::ReturnStatus & | status, | |
| const void * | buffer, | |||
| const vpr::Uint32 | length, | |||
| vpr::Uint32 & | bytes_written, | |||
| const vpr::Interval | timeout = vpr::Interval::NoTimeout | |||
| ) | [virtual] |
Definition at line 65 of file BaseIOStatsStrategy.cpp.
References mRealObject, and vpr::BlockIO::write_i().
Referenced by vpr::BlockIO::write_s().
00069 { 00070 status = mRealObject->write_i(buffer, length, bytes_written, timeout); 00071 }
vpr::BlockIO* vpr::BaseIOStatsStrategy::mRealObject [protected] |
Definition at line 93 of file BaseIOStatsStrategy.h.
Referenced by read_s(), readn_s(), setRealObject(), and write_s().
1.5.1