GeoGen API Reference
Classes | Functions
geogen::utils Namespace Reference

Contains assorted utility classes and functions used throughout the project. More...

Classes

class  OwningMap
 Base for classes that contains a collection of exclusively owned items indexed by string names. More...
 

Functions

std::vector< StringStringToLines (String const &str)
 Converts a string into a collection of lines. More...
 
String FormatFileSize (unsigned sizeInBytes)
 Format a number as a file size (with appropriate file size units). More...
 

Detailed Description

Contains assorted utility classes and functions used throughout the project.

Function Documentation

String geogen::utils::FormatFileSize ( unsigned  sizeInBytes)

Format a number as a file size (with appropriate file size units).

Parameters
sizeInBytesThe size in bytes.
Returns
The formatted file size.
vector< String > geogen::utils::StringToLines ( String const &  str)

Converts a string into a collection of lines.

Parameters
strThe string.
Returns
A collection of lines;