CppTrader  1.0.4.0
C++ Trader
Public Member Functions | Public Attributes | Friends | List of all members
CppTrader::Matching::LevelNode Struct Reference

Price level node. More...

#include <level.h>

Inheritance diagram for CppTrader::Matching::LevelNode:
CppTrader::Matching::Level

Public Member Functions

 LevelNode (LevelType type, uint64_t price) noexcept
 
 LevelNode (const Level &level) noexcept
 
 LevelNode (const LevelNode &) noexcept=default
 
 LevelNode (LevelNode &&) noexcept=default
 
 ~LevelNode () noexcept=default
 
LevelNodeoperator= (const Level &level) noexcept
 
LevelNodeoperator= (const LevelNode &) noexcept=default
 
LevelNodeoperator= (LevelNode &&) noexcept=default
 
- Public Member Functions inherited from CppTrader::Matching::Level
 Level (LevelType type, uint64_t price) noexcept
 
 Level (const Level &) noexcept=default
 
 Level (Level &&) noexcept=default
 
 ~Level () noexcept=default
 
Leveloperator= (const Level &) noexcept=default
 
Leveloperator= (Level &&) noexcept=default
 
bool IsBid () const noexcept
 Is the bid price level? More...
 
bool IsAsk () const noexcept
 Is the ask price level? More...
 

Public Attributes

CppCommon::List< OrderNodeOrderList
 Price level orders. More...
 
- Public Attributes inherited from CppTrader::Matching::Level
LevelType Type
 Level type. More...
 
uint64_t Price
 Level price. More...
 
uint64_t TotalVolume
 Level volume. More...
 
uint64_t HiddenVolume
 Level hidden volume. More...
 
uint64_t VisibleVolume
 Level visible volume. More...
 
size_t Orders
 Level orders. More...
 

Friends

bool operator== (const LevelNode &level1, const LevelNode &level2) noexcept
 
bool operator!= (const LevelNode &level1, const LevelNode &level2) noexcept
 
bool operator< (const LevelNode &level1, const LevelNode &level2) noexcept
 
bool operator> (const LevelNode &level1, const LevelNode &level2) noexcept
 
bool operator<= (const LevelNode &level1, const LevelNode &level2) noexcept
 
bool operator>= (const LevelNode &level1, const LevelNode &level2) noexcept
 

Detailed Description

Price level node.

Definition at line 78 of file level.h.

Constructor & Destructor Documentation

◆ LevelNode() [1/4]

CppTrader::Matching::LevelNode::LevelNode ( LevelType  type,
uint64_t  price 
)
inlinenoexcept

Definition at line 53 of file level.inl.

◆ LevelNode() [2/4]

CppTrader::Matching::LevelNode::LevelNode ( const Level level)
inlinenoexcept

Definition at line 58 of file level.inl.

◆ LevelNode() [3/4]

CppTrader::Matching::LevelNode::LevelNode ( const LevelNode )
defaultnoexcept

◆ LevelNode() [4/4]

CppTrader::Matching::LevelNode::LevelNode ( LevelNode &&  )
defaultnoexcept

◆ ~LevelNode()

CppTrader::Matching::LevelNode::~LevelNode ( )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/3]

LevelNode & CppTrader::Matching::LevelNode::operator= ( const Level level)
inlinenoexcept

Definition at line 62 of file level.inl.

◆ operator=() [2/3]

LevelNode& CppTrader::Matching::LevelNode::operator= ( const LevelNode )
defaultnoexcept

◆ operator=() [3/3]

LevelNode& CppTrader::Matching::LevelNode::operator= ( LevelNode &&  )
defaultnoexcept

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const LevelNode level1,
const LevelNode level2 
)
friend

Definition at line 96 of file level.h.

◆ operator<

bool operator< ( const LevelNode level1,
const LevelNode level2 
)
friend

Definition at line 98 of file level.h.

◆ operator<=

bool operator<= ( const LevelNode level1,
const LevelNode level2 
)
friend

Definition at line 102 of file level.h.

◆ operator==

bool operator== ( const LevelNode level1,
const LevelNode level2 
)
friend

Definition at line 94 of file level.h.

◆ operator>

bool operator> ( const LevelNode level1,
const LevelNode level2 
)
friend

Definition at line 100 of file level.h.

◆ operator>=

bool operator>= ( const LevelNode level1,
const LevelNode level2 
)
friend

Definition at line 104 of file level.h.

Member Data Documentation

◆ OrderList

CppCommon::List<OrderNode> CppTrader::Matching::LevelNode::OrderList

Price level orders.

Definition at line 81 of file level.h.


The documentation for this struct was generated from the following files: