metatest::suite_path

suite_path instances represent locations in the test suite hierarchy. Instances are immutable, thus their state can not be changed after construction.

#include <metatest/suite_path.hpp>

Types

suite_path::iterator

Bi-directional, read-only iterator of the elements of the path.

Constructors

suite_path::suite_path()

Construct an empty path.

suite_path::suite_path(const std::string &)

Construct a single element path.

suite_path::suite_path(const std::list<std::string> &)

Construct a path with multiple elements.

Methods

None of the methods throws an exception.

suite_path::iterator suite_path::begin() const

Iterator to the first element.

suite_path::iterator suite_path::end() const

Iterator pointing after the last element.

suite_path suite_path::operator()(const std::string &) const

Append a new element to the end of the path.

Example

const suite_path suite = suite_path("util")("curry");

[up]