Regina 7.0 Calculation Engine
Namespaces | Functions
tightencoding.h File Reference

Provides short ASCII printable encodings for various objects. More...

#include <iostream>
#include <string>
#include <sstream>
#include "utilities/intutils.h"

Namespaces

namespace  regina
 Contains the entire Regina calculation engine.
 
namespace  regina::detail
 Contains implementation details and common functionality for Regina's dimension-agnostic classes.
 

Functions

void regina::tightEncode (std::ostream &out, int value)
 Writes the tight encoding of the given signed integer to the given output stream. More...
 
std::string regina::tightEncoding (int value)
 Returns the tight encoding of the given signed integer. More...
 
void regina::tightEncode (std::ostream &out, long value)
 Writes the tight encoding of the given signed long integer to the given output stream. More...
 
std::string regina::tightEncoding (long value)
 Returns the tight encoding of the given signed long integer. More...
 
void regina::tightEncode (std::ostream &out, long long value)
 Writes the tight encoding of the given signed long long integer to the given output stream. More...
 
std::string regina::tightEncoding (long long value)
 Returns the tight encoding of the given signed long long integer. More...
 
void regina::tightEncode (std::ostream &out, unsigned value)
 Writes the tight encoding of the given unsigned integer to the given output stream. More...
 
std::string regina::tightEncoding (unsigned value)
 Returns the tight encoding of the given unsigned integer. More...
 
void regina::tightEncode (std::ostream &out, unsigned long value)
 Writes the tight encoding of the given unsigned long integer to the given output stream. More...
 
std::string regina::tightEncoding (unsigned long value)
 Returns the tight encoding of the given unsigned long integer. More...
 
void regina::tightEncode (std::ostream &out, unsigned long long value)
 Writes the tight encoding of the given unsigned long long integer to the given output stream. More...
 
std::string regina::tightEncoding (unsigned long long value)
 Returns the tight encoding of the given unsigned long long integer. More...
 
template<typename Int >
void regina::detail::tightEncodeInteger (std::ostream &out, Int value)
 Internal function that writes the tight encoding of the given integer to the given output stream. More...
 

Detailed Description

Provides short ASCII printable encodings for various objects.


Copyright © 1999-2021, The Regina development team
This software is released under the GNU General Public License, with some additional permissions; see the source code for details.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@maths.uq.edu.au).