#include <clock.h>

Public Types | |
| enum | Mode { RISE_ONLY, FALL_ONLY, RISE_AND_FALL } |
Public Member Functions | |
| Divider (const Name &name) | |
| void | bind_clock (Clock *) |
| EventListener & | get_rising_event () |
| EventListener & | get_falling_event () |
| const Time & | get_period () const |
| unsigned long long | get_rising_count () const |
| 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 |
Protected Types | |
| enum | Severity { S_INFO, S_WARNING, S_ERROR, S_FATAL } |
Protected Member Functions | |
| ActualEvent * | wait_n_rising (int n) |
| ActualEvent * | wait_n_falling (int n) |
| void | debug (const char *,...) |
| void | error (Severity severity, const char *,...) |
| virtual void | complete_restart () |
Static Protected Member Functions | |
| static void | start_at (ActualClock *, const Time &) |
Protected Attributes | |
| TimeParameter | m_period |
| ActualClock * | m_rising_clock |
| ActualClock * | m_falling_clock |
| EventListener | e_rising_edge |
| EventListener | e_falling_edge |
Private Member Functions | |
| SAMPA_PERSISTENT (Divider) | |
Friends | |
| class | ClockedEvent |
| class | ClockedEventSingle |
| class | Divider |
Definition at line 61 of file clock.h.
enum Sampa::Clock::Mode [inherited] |
enum Sampa::Object::Severity [protected, inherited] |
| Sampa::Divider::Divider | ( | const Name & | name | ) |
| Sampa::Divider::SAMPA_PERSISTENT | ( | Divider | ) | [private] |
| void Sampa::Divider::bind_clock | ( | Clock * | ) |
| EventListener& Sampa::Clock::get_rising_event | ( | ) | [inline, inherited] |
| EventListener& Sampa::Clock::get_falling_event | ( | ) | [inline, inherited] |
| const Time& Sampa::Clock::get_period | ( | ) | const [inline, inherited] |
| unsigned long long Sampa::Clock::get_rising_count | ( | ) | const [inherited] |
| static void Sampa::Clock::start_at | ( | ActualClock * | , | |
| const Time & | ||||
| ) | [static, protected, inherited] |
| ActualEvent* Sampa::Clock::wait_n_rising | ( | int | n | ) | [protected, inherited] |
| ActualEvent* Sampa::Clock::wait_n_falling | ( | int | n | ) | [protected, 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.
friend class ClockedEvent [friend, inherited] |
friend class ClockedEventSingle [friend, inherited] |
TimeParameter Sampa::Clock::m_period [protected, inherited] |
ActualClock* Sampa::Clock::m_rising_clock [protected, inherited] |
ActualClock* Sampa::Clock::m_falling_clock [protected, inherited] |
EventListener Sampa::Clock::e_rising_edge [protected, inherited] |
EventListener Sampa::Clock::e_falling_edge [protected, inherited] |
1.5.3