PacketImpl
Public Member Functions | Protected Member Functions | Friends | List of all members # bmf_sdk::PacketImpl Class Reference
packetimpl.h
Public Member Functions
PacketImpl ()=delete
PacketImpl (const PacketImpl &)=delete
PacketImpl ( PacketImpl &&)=default
~PacketImpl ()
T & get ()
const T & get () const
bool is () const
const TypeInfo & type_info () const
void set_timestamp (int64_t timestamp )
int64_t timestamp () const
double time () const
Protected Member Functions
PacketImpl (void *obj, const TypeInfo * type_info , const std::function< void(void *)> &del)
Friends
class Packet
Constructor & Destructor Documentation
PacketImpl() [1/4]
bmf_sdk::PacketImpl::PacketImpl ( )
deletedelete
PacketImpl() [2/4]
bmf_sdk::PacketImpl::PacketImpl ( const PacketImpl & )
deletedelete
PacketImpl() [3/4]
bmf_sdk::PacketImpl::PacketImpl ( PacketImpl && )
defaultdefault
~PacketImpl()
bmf_sdk::PacketImpl::~PacketImpl ( )
PacketImpl() [4/4]
bmf_sdk::PacketImpl::PacketImpl ( void * obj,
const TypeInfo *type_info,
const std::function< void(void *)> & del
)
protectedprotected
Member Function Documentation
get() [1/2]
T& bmf_sdk::PacketImpl::get ( )
inlineinline
{
if(bmf_sdk::type_info<T>() != *type_info_){
throw std::bad_cast();
}
return *static_cast<T*>(obj_);
}
get() [2/2]
const T& bmf_sdk::PacketImpl::get ( ) const
inlineinline
{
if(bmf_sdk::type_info<T>() != *type_info_){
throw std::bad_cast();
}
return *static_cast<const T*>(obj_);
}
is()
bool bmf_sdk::PacketImpl::is ( ) const
inlineinline
{
return bmf_sdk::type_info<T>() == *type_info_;
}
set_time()
void bmf_sdk::PacketImpl::set_time ( double time )
inlineinline
{
time_ = time;
}
set_timestamp()
void bmf_sdk::PacketImpl::set_timestamp ( int64_t timestamp )
inlineinline
{
timestamp_ = timestamp;
}
time()
double bmf_sdk::PacketImpl::time ( ) const
inlineinline
{
return time_;
}
timestamp()
int64_t bmf_sdk::PacketImpl::timestamp ( ) const
inlineinline
{
return timestamp_;
}
type_info()
const TypeInfo & bmf_sdk::PacketImpl::type_info( ) const
inlineinline
{
return *type_info_;
}
Friends And Related Function Documentation
Packet
friend class Packet
friendfriend
- /20230627/doxygen_converter/bmf/bmf/sdk/cpp_sdk/include/bmf/sdk/ packet.h
Last modified
September 30, 2024
: Python docs done (14a4999)