dxFeed Graal CXX API
|
Base abstract "shared entity" class. Has some helpers for dynamic polymorphism. More...
#include <SharedEntity.hpp>
Public Types | |
using | Ptr = std::shared_ptr<SharedEntity> |
The alias to a type of shared pointer to the SharedEntity object. | |
Public Member Functions | |
template<typename T > | |
bool | is () const noexcept |
Checks that pointer to the current type could be converted to type T* In other words: whether type T belongs to the type hierarchy in which the current type resides. | |
template<typename T > | |
std::shared_ptr< T > | sharedAs () noexcept |
Returns a pointer to the current object wrapped in a smart pointer to type T. | |
template<typename T > | |
std::shared_ptr< T > | sharedAs () const noexcept |
Returns a pointer to the current object wrapped in a smart pointer to type T. | |
virtual std::string | toString () const noexcept |
Returns a string representation of the current object. | |
Public Member Functions inherited from dxfcpp::Entity | |
virtual | ~Entity () noexcept=default |
The default virtual d-tor. | |
Base abstract "shared entity" class. Has some helpers for dynamic polymorphism.
Checks that pointer to the current type could be converted to type T* In other words: whether type T belongs to the type hierarchy in which the current type resides.
T | The type to check |
|
inlinenoexcept |
Returns a pointer to the current object wrapped in a smart pointer to type T.
std::shared_ptr<T>(new T(...))
or std::make_shared<T>(...)
T | The type to convert to a pointer to |
|
inlinenoexcept |
Returns a pointer to the current object wrapped in a smart pointer to type T.
std::shared_ptr<T>(new T(...))
or std::make_shared<T>(...)
T | The type to convert to a pointer to |
|
inlinevirtualnoexcept |
Returns a string representation of the current object.
Reimplemented in dxfcpp::DXEndpoint, dxfcpp::DXFeed, dxfcpp::DXFeedSubscription, dxfcpp::DXPublisher, dxfcpp::Candle, dxfcpp::EventType, dxfcpp::AnalyticOrder, dxfcpp::OptionSale, dxfcpp::Order, dxfcpp::Profile, dxfcpp::Quote, dxfcpp::SpreadOrder, dxfcpp::Summary, dxfcpp::TimeAndSale, dxfcpp::Trade, dxfcpp::TradeETH, dxfcpp::Greeks, dxfcpp::Series, dxfcpp::TheoPrice, and dxfcpp::Underlying.