YPC  0.2.0
Public Member Functions | Protected Attributes | List of all members
ypc::sealed_data_provider< Crypto > Class Template Reference
Inheritance diagram for ypc::sealed_data_provider< Crypto >:
Inheritance graph
[legend]
Collaboration diagram for ypc::sealed_data_provider< Crypto >:
Collaboration graph
[legend]

Public Member Functions

 sealed_data_provider (const stbox::bytes &data_hash, const stbox::bytes &private_key)
 
virtual bool process ()
 
virtual data_source_output_t output_value ()
 
virtual const bytesdata_hash () const
 
const bytesprivate_key () const
 
- Public Member Functions inherited from ypc::data_source_with_dhash
 data_source_with_dhash (const stbox::bytes &data_hash)
 
const bytesexpect_data_hash () const
 
void reset_reach_end ()
 
- Public Member Functions inherited from hpda::functor
void reset_done_value ()
 
virtual void done_value ()
 
bool has_value () const
 
engineget_engine () const
 
void set_engine (engine *e)
 
void add_predecessor (functor *pred)
 
const std::vector< functor * > predecessors () const
 

Protected Attributes

bytes m_actual_data_hash
 
std::vector< stbox::bytes > m_items
 
size_t m_item_index
 
bytes m_private_key
 
- Protected Attributes inherited from ypc::data_source_with_dhash
bytes m_expect_data_hash
 
bool m_data_reach_end
 
uint32_t m_counter
 
- Protected Attributes inherited from hpda::functor
bool m_has_value
 
std::vector< functor * > m_predecessors
 
enginem_engine
 
uint32_t m_status
 

Additional Inherited Members

- Public Types inherited from ypc::data_source< bytes >
typedef ::ff::util::ntobject< typename nt< bytes >::data > data_source_output_t
 
- Public Types inherited from hpda::internal::processor_with_output< ::ff::util::ntobject< nt< bytes >::data > >
typedef ::ff::util::ntobject< nt< bytes >::data > output_type
 

Member Function Documentation

◆ process()

template<typename Crypto >
virtual bool ypc::sealed_data_provider< Crypto >::process ( )
inlinevirtual

this memory is allocated in next_sealed_item_data, so we need to deallocate it

Implements hpda::functor.


The documentation for this class was generated from the following file: