NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::transform::BoolSink Class Reference

A sink which outputs only one boolean value. More...

#include <bool-sink.hpp>

Inheritance diagram for ndn::security::transform::BoolSink:
Collaboration diagram for ndn::security::transform::BoolSink:

Public Member Functions

 BoolSink (bool &value)
 Create a bool sink whose output will be stored in value. More...
 
- Public Member Functions inherited from ndn::security::transform::Downstream
virtual ~Downstream ()=default
 
size_t write (const uint8_t *buf, size_t size)
 Accept input data and perform transformation. More...
 
void end ()
 Close the input interface of a module. More...
 
bool isEnd () const
 Check if the input interface of a module is closed. More...
 
void setIndex (size_t index)
 Set the module index. More...
 
size_t getIndex () const
 Get the module index. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ndn::security::transform::Downstream
 Downstream ()
 

Detailed Description

A sink which outputs only one boolean value.

It checks the first byte that is ever written into the sink, and set output true if the byte is non-zero, otherwise false.

Definition at line 37 of file bool-sink.hpp.

Constructor & Destructor Documentation

◆ BoolSink()

ndn::security::transform::BoolSink::BoolSink ( bool &  value)
explicit

Create a bool sink whose output will be stored in value.

Definition at line 28 of file bool-sink.cpp.


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