#include <protocol.h>

Public Types | |
| typedef bool(Adapted::* | RecieveResponseFunc )(const Response &) |
Public Member Functions | |
| AdaptingInitiator (const Name &nm, RecieveResponseFunc callback) | |
| void | complete_restart (RecieveResponseFunc callback) |
| bool | recieve_response (const Response &response) |
| void | bind_target (Target *target) |
| void | bind_clock (Clock *clock) |
| Initiator * | operator-> () |
| bool | is_dont_trace () const |
| InitiatorResponseInterface * | get_initiator () const |
| EventListener & | get_request_accepted_event () |
| EventListener & | get_response_accepted_event () |
| bool | send_request (const Request &request) |
| bool | has_pending_request () const |
| bool | accept_response () |
| void | cancel_accept_response () |
| const char * | get_name () const |
| const char * | get_full_name () const |
| name can be ([^. ]+.)*[^. ]+ | |
| Object * | get_parent () const |
| return object containing this one | |
| Object * | get_sibling () const |
| return next object with same parent or NULL if none | |
| Object * | get_first_child () const |
| return first child object or NULL if none | |
| int | is_debug () const |
Public Attributes | |
| Adapted * | m_module |
| RecieveResponseFunc | m_callback |
Protected Types | |
| enum | Severity { S_INFO, S_WARNING, S_ERROR, S_FATAL } |
Protected Member Functions | |
| void | debug (const char *,...) |
| void | error (Severity severity, const char *,...) |
| virtual void | complete_restart () |
Private Member Functions | |
| SAMPA_PERSISTENT (AdaptingInitiator) | |
Definition at line 478 of file protocol.h.
| typedef bool(Adapted::* Sampa::AdaptingInitiator< Adapted >::RecieveResponseFunc)(const Response &) |
Definition at line 481 of file protocol.h.
enum Sampa::Object::Severity [protected, inherited] |
| Sampa::AdaptingInitiator< Adapted >::AdaptingInitiator | ( | const Name & | nm, | |
| RecieveResponseFunc | callback | |||
| ) |
| Sampa::AdaptingInitiator< Adapted >::SAMPA_PERSISTENT | ( | AdaptingInitiator< Adapted > | ) | [private] |
| void Sampa::AdaptingInitiator< Adapted >::complete_restart | ( | RecieveResponseFunc | callback | ) |
| bool Sampa::AdaptingInitiator< Adapted >::recieve_response | ( | const Response & | response | ) | [virtual] |
Implements Sampa::InitiatorResponseInterface.
| void Sampa::Initiator::bind_target | ( | Target * | target | ) | [inherited] |
| void Sampa::Initiator::bind_clock | ( | Clock * | clock | ) | [inherited] |
| Initiator* Sampa::Initiator::operator-> | ( | ) | [inline, inherited] |
Definition at line 409 of file protocol.h.
| bool Sampa::Initiator::is_dont_trace | ( | ) | const [inline, inherited] |
| InitiatorResponseInterface* Sampa::Initiator::get_initiator | ( | ) | const [inline, inherited] |
| EventListener& Sampa::Initiator::get_request_accepted_event | ( | ) | [inline, inherited] |
Definition at line 415 of file protocol.h.
References Sampa::Initiator::e_request_accepted.
Referenced by Sampa::Target::get_request_accepted_event().
| EventListener& Sampa::Initiator::get_response_accepted_event | ( | ) | [inline, inherited] |
Definition at line 417 of file protocol.h.
References Sampa::Initiator::e_response_accepted.
Referenced by Sampa::Target::get_response_accepted_event().
| bool Sampa::Initiator::send_request | ( | const Request & | request | ) | [inherited] |
| bool Sampa::Initiator::has_pending_request | ( | ) | const [inline, inherited] |
| bool Sampa::Initiator::accept_response | ( | ) | [inherited] |
| void Sampa::Initiator::cancel_accept_response | ( | ) | [inherited] |
| const char* Sampa::Object::get_name | ( | ) | const [inherited] |
returns the local name
| const char* Sampa::Object::get_full_name | ( | ) | const [inherited] |
name can be ([^. ]+.)*[^. ]+
| Object* Sampa::Object::get_parent | ( | ) | const [inherited] |
return object containing this one
| Object* Sampa::Object::get_sibling | ( | ) | const [inherited] |
return next object with same parent or NULL if none
| Object* Sampa::Object::get_first_child | ( | ) | const [inherited] |
return first child object or NULL if none
| void Sampa::Object::debug | ( | const char * | , | |
| ... | ||||
| ) | [protected, inherited] |
| void Sampa::Object::error | ( | Severity | severity, | |
| const char * | , | |||
| ... | ||||
| ) | [protected, inherited] |
| virtual void Sampa::Object::complete_restart | ( | ) | [protected, virtual, inherited] |
is called to finalize restart. On restart, one shall update pointers, or reopen ressources (files, ...).
Most of pointers are restored by the thanks to the post++ library provided that the CLASSINFO() was correctly set.
However, some pointers are not relocated by the library. These are for example the method pointers used for the processes. Take a look at
Reimplemented in Sampa::Bridge, Sampa::Dma, Sampa::FixLatencySlave, Sampa::PeriodicTrafficGenerator, Sampa::TwoPortL1Cpu, and Sampa::StochasticCpu.
| Adapted* Sampa::AdaptingInitiator< Adapted >::m_module |
Definition at line 485 of file protocol.h.
| RecieveResponseFunc Sampa::AdaptingInitiator< Adapted >::m_callback |
Definition at line 486 of file protocol.h.
1.5.3