GemaCoreLib
The GeMA Core library
Namespaces | Functions
gmVectorUtils.cpp File Reference

Implementation of utilitary functions for working with vectors. More...

#include "gmVectorUtils.h"
#include "gmTrace.h"
#include <luaTable.h>
Include dependency graph for gmVectorUtils.cpp:

Namespaces

 GmVectorUtils
 Groups utilitary routines for working with vectors.
 

Functions

void GmVectorUtils::print (const GmVector &v, const GmLogCategory &logger, GmLogLevel level, int fieldWidth, char format, int precision)
 Prints the vector using the specified logger, level and precision fields. Values are separated by spaces.
 
QString GmVectorUtils::toString (const GmVector &v, int fieldWidth, char format, int precision, bool noBraces)
 Serializes the vector to a string using the specified precision fields. Coordinates are surrounded by [] (unless noBraces is true) and values separated by ', '.
 
void GmVectorUtils::fillFromLuaTable (GmVector &v, LuaTable &t)
 Resizes and fills the vector v to receive the data stored in a lua table.
 
bool GmVectorUtils::fillFromLuaTable (GmVector &v, LuaTable &t, int n)
 Resizes and fills the vector v to receive the data stored in a lua table. More...
 

Detailed Description

Implementation of utilitary functions for working with vectors.

Author
Carlos Augusto Teixeira Mendes
Date
july, 2015