Packet

Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members # bmf_sdk::Packet Class Reference

packet.h ## Public Member Functions

Packet ()=default

Packet (const T &data)

Packet (const Packet &data)

Packet (T &data)

Packet ( Packet &data)

Packet (T &&data)

Packet ( Packet &&data)

Packet (RefPtr< PacketImpl > &impl)

Packet & operator= (const Packet &other)=default

operator bool () const

T & get ()

const T & get () const

bool is () const

const TypeInfo & type_info () const

void set_timestamp (int64_t timestamp )

int64_t timestamp () const

void set_time (double time )

double time () const

PacketImpl * unsafe_self ()

const PacketImpl * unsafe_self () const

静态公有成员函数

static Packet generate_eos_packet ()

static Packet generate_eof_packet ()

受保护的成员函数

Packet (T *obj)

构造函数和析构函数文档

 Packet() [1/9]

bmf_sdk::Packet::Packet (  )  

defaultdefault

 Packet() [2/9]

bmf_sdk::Packet::Packet ( const T & data )  

inlineinline

 : Packet(new T(data)) {}

 Packet() [3/9]

bmf_sdk::Packet::Packet ( const Packet &data )  

inlineinline

 : self(data.self) {}

 Packet() [4/9]

bmf_sdk::Packet::Packet ( T & data )  

inlineinline

 : Packet(new T(data)) {}

 Packet() [5/9]

bmf_sdk::Packet::Packet (  Packet &data )  

inlineinline

 : self(data.self) {}

 Packet() [6/9]

bmf_sdk::Packet::Packet ( T && data )  

inlineinline

 : Packet(new T(std::move(data))) {}

 Packet() [7/9]

bmf_sdk::Packet::Packet (  Packet &&data )  

inlineinline

 : self(std::move(data.self)) {}

 Packet() [8/9]

bmf_sdk::Packet::Packet ( RefPtr< PacketImpl > &impl )  

inlineinline

 : self(impl) {}

 Packet() [9/9]

bmf_sdk::Packet::Packet ( T * obj )  

inlineprotectedinline

protected

     {
         auto impl = new PacketImpl(obj, 
                 &bmf_sdk::type_info<T>(), 
                 [](void *obj) { delete (T*)obj; });
         self = RefPtr<PacketImpl>::take(impl, true);
     }

成员函数文档

 generate_eof_packet()

static Packet bmf_sdk::Packet::generate_eof_packet(  )  

staticstatic

 generate_eos_packet()

static Packet bmf_sdk::Packet::generate_eos_packet(  )  

staticstatic

 get() [1/2]

T& bmf_sdk::Packet::get (  )  

inlineinline

     {
         return self->get<T>();
     }

 get() [2/2]

const T& bmf_sdk::Packet::get (  ) const 

inlineinline

     {
         return self->get<T>();
     }

 is()

bool bmf_sdk::Packet::is (  ) const 

inlineinline

     {
         return self->is<T>();
     }

 operator bool()

bmf_sdk::Packet::operator bool (  ) const 

inlineinline

 { return bool(self); }

 operator=()

Packet & bmf_sdk::Packet::operator=( const Packet &other )  

defaultdefault

 set_time()

void bmf_sdk::Packet::set_time ( double time )  

 set_timestamp()

void bmf_sdk::Packet::set_timestamp ( int64_t timestamp )  

 time()

double bmf_sdk::Packet::time (  ) const 

 timestamp()

int64_t bmf_sdk::Packet::timestamp (  ) const 

 type_info()

const TypeInfo & bmf_sdk::Packet::type_info(  ) const 

 unsafe_self() [1/2]

 PacketImpl * bmf_sdk::Packet::unsafe_self(  )  

 unsafe_self() [2/2]

const PacketImpl * bmf_sdk::Packet::unsafe_self(  ) const 
  • /20230627/doxygen_converter/bmf/bmf/sdk/cpp_sdk/include/bmf/sdk/ packet.h

最后修改 September 30, 2024 : Python docs done (14a4999)