OpenMAMA
Wombat::MamdaOrderBookBasicDelta Class Reference

MamdaOrderBookBasicDelta is a class that saves information about a basic order book delta. More...

#include <MamdaOrderBookBasicDelta.h>

Inheritance diagram for Wombat::MamdaOrderBookBasicDelta:
Wombat::MamdaOrderBookSimpleDelta Wombat::MamdaOrderBookConcreteSimpleDelta

Public Member Functions

 MamdaOrderBookBasicDelta ()
 
 MamdaOrderBookBasicDelta (const MamdaOrderBookBasicDelta &)
 
virtual ~MamdaOrderBookBasicDelta ()
 
virtual void clear ()
 Clear the delta. More...
 
virtual void set (MamdaOrderBookEntry *entry, MamdaOrderBookPriceLevel *level, mama_quantity_t plDeltaSize, MamdaOrderBookPriceLevel::Action plAction, MamdaOrderBookEntry::Action entryAction)
 Set the delta info. More...
 
void setPriceLevel (MamdaOrderBookPriceLevel *level)
 Set the MamdaOrderBookPriceLevel object to which this entry belongs. More...
 
void setPlDeltaAction (MamdaOrderBookPriceLevel::Action action)
 Set the delta action with respect to the price level. More...
 
void setPlDeltaSize (mama_quantity_t size)
 Set the price level delta size. More...
 
void applyPlDeltaSize (mama_quantity_t size)
 Apply the price level delta size to the existing size, giving the net effect. More...
 
MamdaOrderBookPriceLevel * getPriceLevel () const
 Get the MamdaOrderBookPriceLevel object related to this basic delta. More...
 
MamdaOrderBookEntry * getEntry () const
 Get the MamdaOrderBookEntry object related to this basic delta. More...
 
mama_quantity_t getPlDeltaSize () const
 Get the difference in size for the price level. More...
 
MamdaOrderBookPriceLevel::Action getPlDeltaAction () const
 Get the delta action with respect to the price level. More...
 
MamdaOrderBookEntry::Action getEntryDeltaAction () const
 Get the delta action with respect to the entry. More...
 
void setEntryDeltaAction (MamdaOrderBookEntry::Action action)
 Get the delta action with respect to the entry. More...
 
virtual const MamdaOrderBook * getOrderBook () const
 Get the MamdaOrderBook object to which this delta belongs. More...
 
void dump (ostream &output) const
 Dump the simple update to the output stream. More...
 

Protected Attributes

MamdaOrderBookPriceLevel * mPriceLevel
 
MamdaOrderBookEntry * mEntry
 
mama_quantity_t mPlDeltaSize
 
MamdaOrderBookPriceLevel::Action mPlAction
 
MamdaOrderBookEntry::Action mEntryAction
 

Detailed Description

MamdaOrderBookBasicDelta is a class that saves information about a basic order book delta.

A basic delta is one that affects a single order book entry.

Constructor & Destructor Documentation

◆ MamdaOrderBookBasicDelta() [1/2]

Wombat::MamdaOrderBookBasicDelta::MamdaOrderBookBasicDelta ( )
49  { clear(); }

◆ MamdaOrderBookBasicDelta() [2/2]

Wombat::MamdaOrderBookBasicDelta::MamdaOrderBookBasicDelta ( const MamdaOrderBookBasicDelta &  )

◆ ~MamdaOrderBookBasicDelta()

virtual Wombat::MamdaOrderBookBasicDelta::~MamdaOrderBookBasicDelta ( )
virtual
51 {}

Member Function Documentation

◆ clear()

virtual void Wombat::MamdaOrderBookBasicDelta::clear ( )
virtual

Clear the delta.

◆ set()

virtual void Wombat::MamdaOrderBookBasicDelta::set ( MamdaOrderBookEntry *  entry,
MamdaOrderBookPriceLevel *  level,
mama_quantity_t  plDeltaSize,
MamdaOrderBookPriceLevel::Action  plAction,
MamdaOrderBookEntry::Action  entryAction 
)
virtual

Set the delta info.

◆ setPriceLevel()

void Wombat::MamdaOrderBookBasicDelta::setPriceLevel ( MamdaOrderBookPriceLevel *  level)

Set the MamdaOrderBookPriceLevel object to which this entry belongs.

This method is invoked internally, by the MAMDA API, when an entry is added to a price level.

Parameters
levelThe price level to be associated with.
75  { mPriceLevel = level; }

◆ setPlDeltaAction()

void Wombat::MamdaOrderBookBasicDelta::setPlDeltaAction ( MamdaOrderBookPriceLevel::Action  action)

Set the delta action with respect to the price level.

Parameters
actionThe price level action
83  { mPlAction = action; }

◆ setPlDeltaSize()

void Wombat::MamdaOrderBookBasicDelta::setPlDeltaSize ( mama_quantity_t  size)

Set the price level delta size.

Parameters
actionThe price level action
91  { mPlDeltaSize = size; }

◆ applyPlDeltaSize()

void Wombat::MamdaOrderBookBasicDelta::applyPlDeltaSize ( mama_quantity_t  size)

Apply the price level delta size to the existing size, giving the net effect.

Parameters
actionThe price level action
101  { mPlDeltaSize += size; }

◆ getPriceLevel()

MamdaOrderBookPriceLevel* Wombat::MamdaOrderBookBasicDelta::getPriceLevel ( ) const

Get the MamdaOrderBookPriceLevel object related to this basic delta.

Returns
The price level.
109  { return mPriceLevel; }

◆ getEntry()

MamdaOrderBookEntry* Wombat::MamdaOrderBookBasicDelta::getEntry ( ) const

Get the MamdaOrderBookEntry object related to this basic delta.

Returns
The entry.
117  { return mEntry; }

◆ getPlDeltaSize()

mama_quantity_t Wombat::MamdaOrderBookBasicDelta::getPlDeltaSize ( ) const

Get the difference in size for the price level.

Returns
The price level size delta.
125  { return mPlDeltaSize; }

◆ getPlDeltaAction()

MamdaOrderBookPriceLevel::Action Wombat::MamdaOrderBookBasicDelta::getPlDeltaAction ( ) const

Get the delta action with respect to the price level.

Returns
The price level action.
133  { return mPlAction; }

◆ getEntryDeltaAction()

MamdaOrderBookEntry::Action Wombat::MamdaOrderBookBasicDelta::getEntryDeltaAction ( ) const

Get the delta action with respect to the entry.

Returns
The entry action.
141  { return mEntryAction; }

◆ setEntryDeltaAction()

void Wombat::MamdaOrderBookBasicDelta::setEntryDeltaAction ( MamdaOrderBookEntry::Action  action)

Get the delta action with respect to the entry.

148  { mEntryAction = action; }

◆ getOrderBook()

virtual const MamdaOrderBook* Wombat::MamdaOrderBookBasicDelta::getOrderBook ( ) const
virtual

Get the MamdaOrderBook object to which this delta belongs.

Returns
The order book related to this delta.

◆ dump()

void Wombat::MamdaOrderBookBasicDelta::dump ( ostream &  output) const

Dump the simple update to the output stream.

Parameters
outputThe ostream to write the update to.

Member Data Documentation

◆ mPriceLevel

MamdaOrderBookPriceLevel* Wombat::MamdaOrderBookBasicDelta::mPriceLevel
protected

◆ mEntry

MamdaOrderBookEntry* Wombat::MamdaOrderBookBasicDelta::mEntry
protected

◆ mPlDeltaSize

mama_quantity_t Wombat::MamdaOrderBookBasicDelta::mPlDeltaSize
protected

◆ mPlAction

MamdaOrderBookPriceLevel::Action Wombat::MamdaOrderBookBasicDelta::mPlAction
protected

◆ mEntryAction

MamdaOrderBookEntry::Action Wombat::MamdaOrderBookBasicDelta::mEntryAction
protected

The documentation for this class was generated from the following file:
Wombat::MamdaOrderBookBasicDelta::mPlDeltaSize
mama_quantity_t mPlDeltaSize
Definition: MamdaOrderBookBasicDelta.h:167
Wombat::MamdaOrderBookBasicDelta::mEntryAction
MamdaOrderBookEntry::Action mEntryAction
Definition: MamdaOrderBookBasicDelta.h:169
Wombat::MamdaOrderBookBasicDelta::mPriceLevel
MamdaOrderBookPriceLevel * mPriceLevel
Definition: MamdaOrderBookBasicDelta.h:165
Wombat::MamdaOrderBookBasicDelta::mEntry
MamdaOrderBookEntry * mEntry
Definition: MamdaOrderBookBasicDelta.h:166
Wombat::MamdaOrderBookBasicDelta::clear
virtual void clear()
Clear the delta.
Wombat::MamdaOrderBookBasicDelta::mPlAction
MamdaOrderBookPriceLevel::Action mPlAction
Definition: MamdaOrderBookBasicDelta.h:168


© 2012 Linux Foundation