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

Abstraction of the transformation source module. More...

#include <ndn-cxx/security/transform/transform-base.hpp>

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

Public Member Functions

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

Protected Member Functions

 Source ()=default
 
void appendChain (unique_ptr< Downstream > tail)
 Connect to the 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 the constructor.

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

Constructor & Destructor Documentation

◆ Source()

ndn::security::transform::Source::Source ( )
protecteddefault

Member Function Documentation

◆ appendChain()

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

Connect to the next transformation module.

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

◆ getIndex()

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

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

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

◆ getNext()

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

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

◆ operator>>() [1/2]

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 149 of file transform-base.cpp.

◆ operator>>() [2/2]

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

Connect to an intermediate transformation module.

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

◆ pump()

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

Pump all data into next transformation module.

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

Member Data Documentation

◆ m_next

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

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