INET Framework for OMNeT++/OMNEST
inet::FailureProtectionConfigurator::Tree Class Reference

#include <FailureProtectionConfigurator.h>

Public Member Functions

 Tree (const std::vector< Path > &paths)
 

Public Attributes

std::vector< Pathpaths
 

Friends

std::ostream & operator<< (std::ostream &os, const FailureProtectionConfigurator::Tree &tree)
 

Constructor & Destructor Documentation

◆ Tree()

inet::FailureProtectionConfigurator::Tree::Tree ( const std::vector< Path > &  paths)
inline
48 : paths(paths) { }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const FailureProtectionConfigurator::Tree tree 
)
friend
51  {
52  os << "{";
53  for (int i = 0; i < tree.paths.size(); i++) {
54  auto path = tree.paths[i];
55  if (i != 0)
56  os << ", ";
57  os << path;
58  }
59  os << "}";
60  return os;
61  }

Member Data Documentation

◆ paths


The documentation for this class was generated from the following file:
inet::FailureProtectionConfigurator::Tree::paths
std::vector< Path > paths
Definition: FailureProtectionConfigurator.h:45