cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
Loading...
Searching...
No Matches
cppfig::ConfigDiff Class Reference

Result of comparing two configurations. More...

#include <diff.h>

Collaboration diagram for cppfig::ConfigDiff:
[legend]

Public Member Functions

auto HasDifferences () const -> bool
 Checks if there are any differences.
 
auto Size () const -> std::size_t
 Returns the number of differences.
 
auto Filter (DiffType type) const -> std::vector< DiffEntry >
 Filters entries by type.
 
auto Added () const -> std::vector< DiffEntry >
 Returns entries that were added.
 
auto Removed () const -> std::vector< DiffEntry >
 Returns entries that were removed.
 
auto Modified () const -> std::vector< DiffEntry >
 Returns entries that were modified.
 
auto ToString () const -> std::string
 Converts the diff to a human-readable string.
 

Public Attributes

std::vector< DiffEntryentries
 

Detailed Description

Result of comparing two configurations.

Member Function Documentation

◆ Added()

auto cppfig::ConfigDiff::Added ( ) const -> std::vector<DiffEntry>
inline

Returns entries that were added.

◆ Filter()

auto cppfig::ConfigDiff::Filter ( DiffType  type) const -> std::vector<DiffEntry>
inline

Filters entries by type.

◆ HasDifferences()

auto cppfig::ConfigDiff::HasDifferences ( ) const -> bool
inline

Checks if there are any differences.

◆ Modified()

auto cppfig::ConfigDiff::Modified ( ) const -> std::vector<DiffEntry>
inline

Returns entries that were modified.

◆ Removed()

auto cppfig::ConfigDiff::Removed ( ) const -> std::vector<DiffEntry>
inline

Returns entries that were removed.

◆ Size()

auto cppfig::ConfigDiff::Size ( ) const -> std::size_t
inline

Returns the number of differences.

◆ ToString()

auto cppfig::ConfigDiff::ToString ( ) const -> std::string
inline

Converts the diff to a human-readable string.

Member Data Documentation

◆ entries

std::vector<DiffEntry> cppfig::ConfigDiff::entries

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