The Finite Resolution Dynamics Software
Functions
savecover.h File Reference

Saving a cover to a file. More...

#include <iostream>
#include <fstream>
#include "streams.h"
#include "covboxes.h"

Go to the source code of this file.

Functions

void byte2hex (std::ostream &out, unsigned int byte)
 Writes a given unsigned byte in the hexadecimal way. More...
 
void double2hex (std::ostream &out, const double &x)
 Writes a double precision floating-point number in the hexadecimal way as bytes. More...
 
void saveCover (const tCoverBoxes< double > &cover, const char *filename)
 Saves the given cover to a text file. More...
 
template<class UnknownCover >
void saveCover (const UnknownCover &cover, const char *filename)
 Throws an exception because of an unknown cover is to be saved. More...
 

Detailed Description

Saving a cover to a file.

This file contains the definition of a function that saves a cover to a text file.

Author
Pawel Pilarczyk

Definition in file savecover.h.

Function Documentation

◆ byte2hex()

void byte2hex ( std::ostream &  out,
unsigned int  byte 
)
inline

Writes a given unsigned byte in the hexadecimal way.

Definition at line 51 of file savecover.h.

Referenced by double2hex().

◆ double2hex()

void double2hex ( std::ostream &  out,
const double &  x 
)
inline

Writes a double precision floating-point number in the hexadecimal way as bytes.

Definition at line 61 of file savecover.h.

References byte2hex().

Referenced by saveCover().

◆ saveCover() [1/2]

void saveCover ( const tCoverBoxes< double > &  cover,
const char *  filename 
)
inline

Saves the given cover to a text file.

Definition at line 94 of file savecover.h.

References double2hex().

Referenced by henonAttractor().

◆ saveCover() [2/2]

template<class UnknownCover >
void saveCover ( const UnknownCover &  cover,
const char *  filename 
)
inline

Throws an exception because of an unknown cover is to be saved.

Definition at line 139 of file savecover.h.