Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
sick_scan::UniformRandomAsciiString Class Reference

#include <random_generator.h>

Public Member Functions

std::string generate (int length)
 
 UniformRandomAsciiString ()
 

Protected Attributes

UniformRandomInteger m_random_generator
 random number generator More...
 

Static Protected Attributes

static const std::string s_ascii_chars = " !\"#$%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~"
 list of ascii chars: " !\"#$%&'()*+,-./0123456789:;=?@ ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~" More...
 

Detailed Description

class UniformRandomAsciiString generates uniform distributed ascii strings.

Definition at line 104 of file random_generator.h.

Constructor & Destructor Documentation

◆ UniformRandomAsciiString()

sick_scan::UniformRandomAsciiString::UniformRandomAsciiString ( )

UniformRandomAsciiString constructor

Definition at line 98 of file random_generator.cpp.

Member Function Documentation

◆ generate()

std::string sick_scan::UniformRandomAsciiString::generate ( int  length)

Creates and returns a random ascii string

Parameters
[in]lengthlength of string
Returns
random ascii string

Definition at line 107 of file random_generator.cpp.

Member Data Documentation

◆ m_random_generator

UniformRandomInteger sick_scan::UniformRandomAsciiString::m_random_generator
protected

random number generator

Definition at line 126 of file random_generator.h.

◆ s_ascii_chars

const std::string sick_scan::UniformRandomAsciiString::s_ascii_chars = " !\"#$%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~"
staticprotected

list of ascii chars: " !\"#$%&'()*+,-./0123456789:;=?@ ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~"

static list of ascii chars

Definition at line 127 of file random_generator.h.


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


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Wed Sep 7 2022 02:25:06