LCOV - code coverage report
Current view: top level - envoy/server - process_context.h (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 1 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include "envoy/common/pure.h"
       4             : 
       5             : #include "absl/types/optional.h"
       6             : 
       7             : namespace Envoy {
       8             : 
       9             : /**
      10             :  * Represents some other part of the process.
      11             :  */
      12             : class ProcessObject {
      13             : public:
      14             :   virtual ~ProcessObject() = default;
      15             : };
      16             : 
      17             : using ProcessObjectOptRef = absl::optional<std::reference_wrapper<ProcessObject>>;
      18             : 
      19             : /**
      20             :  * Context passed to filters to access resources from non-Envoy parts of the
      21             :  * process.
      22             :  */
      23             : class ProcessContext {
      24             : public:
      25           0 :   virtual ~ProcessContext() = default;
      26             : 
      27             :   /**
      28             :    * @return the ProcessObject for this context.
      29             :    */
      30             :   virtual ProcessObject& get() const PURE;
      31             : };
      32             : 
      33             : using ProcessContextOptRef = absl::optional<std::reference_wrapper<ProcessContext>>;
      34             : 
      35             : } // namespace Envoy

Generated by: LCOV version 1.15