#include <protocol.h>

Public Types | |
| typedef bool(Adapted::* | RecieveRequestFunc )(const Request &) |
Public Member Functions | |
| AdaptingTarget (const Name &nm, RecieveRequestFunc callback) | |
| void | complete_restart (RecieveRequestFunc callback) |
| bool | recieve_request (const Request &response) |
| void | bind_initiator (Initiator *initiator) |
| TargetRequestInterface * | get_target () const |
| void | bind_clock (Clock *clock) |
| Clock * | get_clock () const |
| Target * | operator-> () |
| bool | send_response (const Response &response) |
| bool | has_pending_response () const |
| EventListener & | get_response_accepted_event () |
| EventListener & | get_request_accepted_event () |
| bool | accept_request () |
| void | cancel_accept_request () |
| 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 |
| RecieveRequestFunc | 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 (AdaptingTarget) | |
Definition at line 490 of file protocol.h.
| typedef bool(Adapted::* Sampa::AdaptingTarget< Adapted >::RecieveRequestFunc)(const Request &) |
Definition at line 493 of file protocol.h.
enum Sampa::Object::Severity [protected, inherited] |
| Sampa::AdaptingTarget< Adapted >::AdaptingTarget | ( | const Name & | nm, | |
| RecieveRequestFunc | callback | |||
| ) |
| Sampa::AdaptingTarget< Adapted >::SAMPA_PERSISTENT | ( | AdaptingTarget< Adapted > | ) | [private] |
| void Sampa::AdaptingTarget< Adapted >::complete_restart | ( | RecieveRequestFunc | callback | ) |
| bool Sampa::AdaptingTarget< Adapted >::recieve_request | ( | const Request & | response | ) | [virtual] |
Implements Sampa::TargetRequestInterface.
| void Sampa::Target::bind_initiator | ( | Initiator * | initiator | ) | [inline, inherited] |
| TargetRequestInterface* Sampa::Target::get_target | ( | ) | const [inline, inherited] |
| void Sampa::Target::bind_clock | ( | Clock * | clock | ) | [inherited] |
| Clock* Sampa::Target::get_clock | ( | ) | const [inline, inherited] |
| Target* Sampa::Target::operator-> | ( | ) | [inline, inherited] |
Definition at line 456 of file protocol.h.
| bool Sampa::Target::send_response | ( | const Response & | response | ) | [inline, inherited] |
Definition at line 458 of file protocol.h.
References Sampa::Target::p_initiator, and Sampa::Initiator::send_response().
Referenced by Sampa::Cache::fill_instruction(), Sampa::Cache::forward_data_response(), and Sampa::Cache::forward_inst_response().
| bool Sampa::Target::has_pending_response | ( | ) | const [inline, inherited] |
Definition at line 460 of file protocol.h.
References Sampa::Initiator::has_pending_response(), and Sampa::Target::p_initiator.
| EventListener& Sampa::Target::get_response_accepted_event | ( | ) | [inline, inherited] |
Definition at line 462 of file protocol.h.
References Sampa::Initiator::get_response_accepted_event(), and Sampa::Target::p_initiator.
| EventListener& Sampa::Target::get_request_accepted_event | ( | ) | [inline, inherited] |
Definition at line 464 of file protocol.h.
References Sampa::Initiator::get_request_accepted_event(), and Sampa::Target::p_initiator.
| bool Sampa::Target::accept_request | ( | ) | [inline, inherited] |
Definition at line 466 of file protocol.h.
References Sampa::Initiator::accept_request(), and Sampa::Target::p_initiator.
| void Sampa::Target::cancel_accept_request | ( | ) | [inline, inherited] |
Definition at line 468 of file protocol.h.
References Sampa::Initiator::cancel_accept_request(), and Sampa::Target::p_initiator.
| 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::AdaptingTarget< Adapted >::m_module |
Definition at line 497 of file protocol.h.
| RecieveRequestFunc Sampa::AdaptingTarget< Adapted >::m_callback |
Definition at line 498 of file protocol.h.
1.5.3