ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | Friends | List of all members
anna::diameter::comm::Timer Class Reference

#include <Timer.hpp>

Inheritance diagram for anna::diameter::comm::Timer:
Inheritance graph
[legend]
Collaboration diagram for anna::diameter::comm::Timer:
Collaboration graph
[legend]

Classes

struct  Type
 

Public Member Functions

ResponsegetResponse ()
 
const ResponsegetResponse () const
 
SessiongetSession ()
 
const SessiongetSession () const
 
LocalServergetLocalServer ()
 
const LocalServergetLocalServer () const
 
std::string asString () const
 
- Public Member Functions inherited from anna::timex::Transaction
 Transaction ()
 
 Transaction (const Id id, const Millisecond &timeout)
 
 Transaction (const Id id, const Millisecond &timeout, void *context)
 
void * getContext ()
 
const void * getContext () const
 
void setContext (void *context)
 
- Public Member Functions inherited from anna::timex::TimeEvent
virtual ~TimeEvent ()
 
Id getId () const
 
const MillisecondgetTimeout () const
 
const TimeEventObservergetObserver () const
 
void setId (const Id id)
 
void setTimeout (const Millisecond &timeout)
 
void setObserver (TimeEventObserver *observer)
 
bool isActive () const
 
- Public Member Functions inherited from anna::timex::Meter
 Meter ()
 
 Meter (const Meter &other)
 
Millisecond setControlPoint ()
 
void setTopReference (const Millisecond &topReference)
 
void clearTopReference ()
 
Millisecond getDelay () const
 
Meteroperator= (const Millisecond &timestamp)
 
Meteroperator= (const Meter &other)
 

Friends

class TimerManager
 
class anna::Allocator< Timer >
 

Additional Inherited Members

- Public Types inherited from anna::timex::TimeEvent
typedef anna::ptrnumber Id
 
- Protected Member Functions inherited from anna::timex::TimeEvent
 TimeEvent ()
 
 TimeEvent (const Id id, const Millisecond &timeout)
 
virtual void stop () noexcept(false)
 

Member Function Documentation

◆ asString()

std::string anna::diameter::comm::Timer::asString ( void  ) const
virtual

Devuelve una cadena con la informacion referente a este temporizador.

Returns
Una cadena con la informacion referenta a este temporizador.

Reimplemented from anna::timex::Transaction.

◆ getLocalServer() [1/2]

LocalServer* anna::diameter::comm::Timer::getLocalServer ( )
inline
44 { return reinterpret_cast <LocalServer*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getLocalServer() [2/2]

const LocalServer* anna::diameter::comm::Timer::getLocalServer ( ) const
inline
45 { return reinterpret_cast <const LocalServer*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getResponse() [1/2]

Response* anna::diameter::comm::Timer::getResponse ( )
inline
36 { return reinterpret_cast <Response*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getResponse() [2/2]

const Response* anna::diameter::comm::Timer::getResponse ( ) const
inline
37 { return reinterpret_cast <const Response*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getSession() [1/2]

Session* anna::diameter::comm::Timer::getSession ( )
inline
40 { return reinterpret_cast <Session*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getSession() [2/2]

const Session* anna::diameter::comm::Timer::getSession ( ) const
inline
41 { return reinterpret_cast <const Session*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

Friends And Related Function Documentation

◆ anna::Allocator< Timer >

friend class anna::Allocator< Timer >
friend

◆ TimerManager

friend class TimerManager
friend

The documentation for this class was generated from the following file: