ndn::security::transform::Source Class Referenceabstract

Abstraction of the transformation source module. More...

#include <transform-base.hpp>

+ Inheritance diagram for ndn::security::transform::Source:
+ Collaboration diagram for ndn::security::transform::Source:

Public Member Functions

Sourceoperator>> (unique_ptr< Transform > transform)
 Connect to an intermediate transformation module. More...
 
void operator>> (unique_ptr< Sink > sink)
 Connect to the last transformation module. More...
 

Protected Member Functions

 Source ()
 
void appendChain (unique_ptr< Downstream > tail)
 connect to next transformation module More...
 
size_t getIndex () const
 Get the source module index (should always be 0). More...
 
DownstreamgetNext ()
 
void pump ()
 Pump all data into next transformation module. More...
 

Protected Attributes

unique_ptr< Downstreamm_next
 

Detailed Description

Abstraction of the transformation source module.

This module can only accept input data from constructor

Definition at line 288 of file transform-base.hpp.

Constructor & Destructor Documentation

ndn::security::transform::Source::Source ( )
protected

Definition at line 154 of file transform-base.cpp.

Member Function Documentation

void ndn::security::transform::Upstream::appendChain ( unique_ptr< Downstream tail)
protectedinherited

connect to next transformation module

Definition at line 67 of file transform-base.cpp.

size_t ndn::security::transform::Source::getIndex ( ) const
inlineprotected

Get the source module index (should always be 0).

Definition at line 319 of file transform-base.hpp.

Downstream* ndn::security::transform::Upstream::getNext ( )
inlineprotectedinherited

Definition at line 173 of file transform-base.hpp.

Source & ndn::security::transform::Source::operator>> ( unique_ptr< Transform transform)

Connect to an intermediate transformation module.

Definition at line 166 of file transform-base.cpp.

void ndn::security::transform::Source::operator>> ( unique_ptr< Sink sink)

Connect to the last transformation module.

This method will trigger the source to pump data into the transformation pipeline.

Definition at line 176 of file transform-base.cpp.

void ndn::security::transform::Source::pump ( )
protected

Pump all data into next transformation module.

Definition at line 160 of file transform-base.cpp.

Member Data Documentation

unique_ptr<Downstream> ndn::security::transform::Upstream::m_next
protectedinherited

Definition at line 179 of file transform-base.hpp.