Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

Misc.hpp File Reference

#include <sstream>
#include <string>
#include <vector>
#include "Benzene.hpp"
#include "Types.hpp"

Go to the source code of this file.

Namespaces

namespace  MiscUtil
 

Misc.


Functions

void MiscUtil::WordToBytes (unsigned word, byte *out)
 Converts a word to an array of bytes.
unsigned MiscUtil::BytesToWord (const byte *bytes)
 Converts an array of four bytes into a word.
int MiscUtil::NumBytesToHoldBits (int bits)
 Returns the number of bytes need to hold the given number of bits.
template<typename TYPE >
std::string MiscUtil::PrintVector (const std::vector< TYPE > &v)
 Prints a vector with a space between elements.

Detailed Description

Definition in file Misc.hpp.


6 Jan 2011 Doxygen 1.6.3