Platform.Data.Doublets C++
Loading...
Searching...
No Matches
ILinksExtensions.Structure.h File Reference
#include <concepts>
#include <ostream>
#include <sstream>
#include <string>
#include <unordered_set>

Go to the source code of this file.

Namespaces

namespace  Platform
namespace  Platform::Data
namespace  Platform::Data::Doublets

Functions

template<typename TStorage, typename TIsElement, typename TAppendElement>
void Platform::Data::Doublets::AppendStructure (TStorage &storage, std::ostream &output, std::unordered_set< typename TStorage::LinkAddressType > &visited, typename TStorage::LinkAddressType address, const TIsElement &isElement, const TAppendElement &appendElement, bool renderIndex=false, bool renderDebug=false)
template<typename TStorage, typename TIsElement, typename TAppendElement>
requires std::invocable<const TAppendElement&, std::ostream&, const Link<typename TStorage::LinkAddressType>&>
std::string Platform::Data::Doublets::FormatStructure (TStorage &storage, typename TStorage::LinkAddressType address, const TIsElement &isElement, const TAppendElement &appendElement, bool renderIndex=false, bool renderDebug=false)
 Formats a structure with custom rendering for links accepted by isElement.
template<typename TStorage, typename TIsElement>
std::string Platform::Data::Doublets::FormatStructure (TStorage &storage, typename TStorage::LinkAddressType address, const TIsElement &isElement, bool renderIndex=false, bool renderDebug=false)
 Formats a structure as parenthesized source/target pairs, matching the C# formatter.