#include <YCPExternal.h>
Inheritance diagram for YCPExternalRep:

Public Member Functions | |
| void * | payload () const |
| string | magic () const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| YCPValueType | valuetype () const |
Protected Member Functions | |
| YCPExternalRep (void *payload, string magic, void(*destructor)(void *, string)=0) | |
| ~YCPExternalRep () | |
Private Attributes | |
| void * | m_payload |
| string | m_magic |
| void(* | m_destructor )(void *, string) |
Friends | |
| class | YCPExternal |
| YCPExternalRep::YCPExternalRep | ( | void * | payload, | |
| string | magic, | |||
| void(*)(void *, string) | destructor = 0 | |||
| ) | [protected] |
Creates a new blackbox
| payload | the data stored | |
| magic | the magic identification for external entity to identify its payload |
| YCPExternalRep::~YCPExternalRep | ( | ) | [protected] |
Cleans up
| void * YCPExternalRep::payload | ( | ) | const |
| string YCPExternalRep::magic | ( | ) | const |
| string YCPExternalRep::toString | ( | ) | const [virtual] |
Returns an ASCII representation of the payload.
Implements YCPElementRep.
| std::ostream & YCPExternalRep::toStream | ( | std::ostream & | str | ) | const [virtual] |
Output value as bytecode to stream Generates an error, because it's not possible to store the data in persistent stream.
Implements YCPElementRep.
| YCPValueType YCPExternalRep::valuetype | ( | ) | const [virtual] |
Returns YT_EXTERNAL. See YCPValueRep::valuetype.
Implements YCPValueRep.
friend class YCPExternal [friend] |
void* YCPExternalRep::m_payload [private] |
string YCPExternalRep::m_magic [private] |
void(* YCPExternalRep::m_destructor)(void *, string) [private] |
1.5.0