rdg  1.1.0
Public Member Functions | List of all members
RDG Class Reference

A regex (regula expression) data generator. More...

#include <rdg.hh>

Public Member Functions

 RDG (const std::string &expression)
 Constructs a regex data generator. More...
 
std::string generate ()
 Generates the next result from the data generator. More...
 
size_t permutations () const
 Gets the number of permutations. More...
 

Detailed Description

A regex (regula expression) data generator.

Constructor & Destructor Documentation

◆ RDG()

RDG::RDG ( const std::string &  expression)

Constructs a regex data generator.

Parameters
expressionA regular expression (within the defined subset)

Member Function Documentation

◆ generate()

std::string RDG::generate ( )

Generates the next result from the data generator.

Exceptions
std::length_errorWhen generate is called with no remaining permutations.
Returns
A string containing the permutation

◆ permutations()

size_t RDG::permutations ( ) const

Gets the number of permutations.

Returns
Number of permutations

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