FinanceSim 0.1.0
Financial Simulation Library
Loading...
Searching...
No Matches
financesim::TransferEvent Class Reference

Event emitted when funds are transferred between accounts. More...

#include <event.hpp>

Inheritance diagram for financesim::TransferEvent:
[legend]
Collaboration diagram for financesim::TransferEvent:
[legend]

Public Member Functions

 TransferEvent (SimTime timestamp, std::string source_id, std::string from_account, std::string to_account, double amount, std::string reason)
 
const char * type_name () const override
 Returns the type name of this event (for debugging/logging)
 
const std::string & from_account () const
 
const std::string & to_account () const
 
double amount () const
 
const std::string & reason () const
 
- Public Member Functions inherited from financesim::Event
virtual ~Event ()=default
 
SimTime timestamp () const
 Time at which this event was generated.
 
const std::string & source_id () const
 Source model ID that generated this event.
 

Private Attributes

std::string from_account_
 
std::string to_account_
 
double amount_
 
std::string reason_
 

Additional Inherited Members

- Protected Member Functions inherited from financesim::Event
 Event (SimTime timestamp, std::string source_id)
 

Detailed Description

Event emitted when funds are transferred between accounts.

Definition at line 155 of file event.hpp.

Constructor & Destructor Documentation

◆ TransferEvent()

financesim::TransferEvent::TransferEvent ( SimTime  timestamp,
std::string  source_id,
std::string  from_account,
std::string  to_account,
double  amount,
std::string  reason 
)
inline

Definition at line 157 of file event.hpp.

Member Function Documentation

◆ amount()

double financesim::TransferEvent::amount ( ) const
inline

Definition at line 170 of file event.hpp.

References amount_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ from_account()

const std::string & financesim::TransferEvent::from_account ( ) const
inline

Definition at line 168 of file event.hpp.

References from_account_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ reason()

const std::string & financesim::TransferEvent::reason ( ) const
inline

Definition at line 171 of file event.hpp.

References reason_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ to_account()

const std::string & financesim::TransferEvent::to_account ( ) const
inline

Definition at line 169 of file event.hpp.

References to_account_.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ type_name()

const char * financesim::TransferEvent::type_name ( ) const
inlineoverridevirtual

Returns the type name of this event (for debugging/logging)

Implements financesim::Event.

Definition at line 166 of file event.hpp.

Member Data Documentation

◆ amount_

double financesim::TransferEvent::amount_
private

Definition at line 176 of file event.hpp.

Referenced by amount().

◆ from_account_

std::string financesim::TransferEvent::from_account_
private

Definition at line 174 of file event.hpp.

Referenced by from_account().

◆ reason_

std::string financesim::TransferEvent::reason_
private

Definition at line 177 of file event.hpp.

Referenced by reason().

◆ to_account_

std::string financesim::TransferEvent::to_account_
private

Definition at line 175 of file event.hpp.

Referenced by to_account().


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