Class eva::IReaderAdapter¶
template <class T>
ClassList > eva > IReaderAdapter
Adapter that converts any class with getValue() into an IReader .More...
#include <evaIReader.h>
Inherits the following classes: eva::IReader, T
Public Functions¶
| Type | Name |
|---|---|
| virtual signed short | getValue () override |
| virtual bool | isValid () override |
Public Functions inherited from eva::IReader¶
See eva::IReader
| Type | Name |
|---|---|
| virtual signed short | getValue () = 0 |
| virtual bool | isValid () = 0 |
Detailed Description¶
This adapter serves as a bridge between the template-based library core and the interface-based library boundary. It allows: * Using template-based readers polymorphically * Passing library readers to functions expecting IReader* * Users to work with interfaces instead of templates when preferred
Template parameters:
TClass that implements getValue() (typically a reader decorator or a user-defined reader)
Note:
This adapter incurs a virtual call overhead, so use it at API boundaries, not in performance-critical internal loops where templates are preferred.
Public Functions Documentation¶
function getValue¶
inline virtual signed short eva::IReaderAdapter::getValue () override
Implements eva::IReader::getValue
function isValid¶
inline virtual bool eva::IReaderAdapter::isValid () override
Implements eva::IReader::isValid
The documentation for this class was generated from the following file src/evaIReader.h