User Guide
nmodl::utils Namespace Reference

file/string manipulation functions More...

Detailed Description

file/string manipulation functions

Classes

class  Blame
 
class  NoBlame
 
struct  PerfStat
 Helper class to collect performance statistics. More...
 
class  SingletonRandomString
 Singleton class for random strings. More...
 
class  TableData
 Class to construct and pretty-print tabular data. More...
 

Typedefs

using ShortBlame = NoBlame
 
using DetailedBlame = NoBlame
 

Enumerations

enum  BlameLevel { BlameLevel::Short, BlameLevel::Detailed }
 
enum  UseNumbersInString : bool { WithNumbers = true, WithoutNumbers = false }
 Enum to wrap bool variable to select if random string should have numbers or not. More...
 

Functions

std::unique_ptr< Blamemake_blame (size_t blame_line, BlameLevel blame_level)
 
std::string generate_random_string (int len, UseNumbersInString use_numbers)
 Generate random std::string of length len based on a uniform distribution. More...
 
template<typename Iter , typename Cont >
bool is_last (Iter iter, const Cont &cont)
 Check if the iterator is pointing to last element in the container. More...
 
PerfStat operator+ (const PerfStat &first, const PerfStat &second)
 

Variables

static constexpr char envpathsep {':'}
 The character conventionally used by the operating system to separate search path components. More...
 

Typedef Documentation

◆ DetailedBlame

Definition at line 125 of file blame.cpp.

◆ ShortBlame

Definition at line 124 of file blame.cpp.

Enumeration Type Documentation

◆ BlameLevel

Enumerator
Short 
Detailed 

Definition at line 30 of file blame.hpp.

Function Documentation

◆ make_blame()

std::unique_ptr< Blame > nmodl::utils::make_blame ( size_t  blame_line,
BlameLevel  blame_level 
)

Definition at line 128 of file blame.cpp.

◆ operator+()

PerfStat nmodl::utils::operator+ ( const PerfStat first,
const PerfStat second 
)

Definition at line 18 of file perf_stat.cpp.