Functions

C:/CVUT/diplomka/Automata_editor/include/utility/utils.h File Reference

#include <QString>
#include <QStringList>
#include <QRegExp>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool appendFilenameSuffix (QString &fileName, const QString &suffix)
 appends suffix if needed, otherwise return false
template<typename T >
QList< T > getUnifiedListKeepOrder (const QList< T > &list)
 make list's items unique
template<typename FROM , typename TO >
QList< QSharedPointer< TO > > trSharedPointerListStaticCast (const QList< QSharedPointer< FROM > > &list)
QString trStringListToString (const QStringList &strings)
 makes string in form "abc" from stringlist ["a","b","c"]

Function Documentation

bool appendFilenameSuffix ( QString &  fileName,
const QString &  suffix 
) [inline]

appends suffix if needed, otherwise return false

Definition at line 32 of file utils.h.

Referenced by AutomataWorkSimulator::getFileName().

Here is the caller graph for this function:

template<typename T >
QList< T > getUnifiedListKeepOrder ( const QList< T > &  list  ) 

make list's items unique

Definition at line 61 of file utils.h.

template<typename FROM , typename TO >
QList< QSharedPointer< TO > > trSharedPointerListStaticCast ( const QList< QSharedPointer< FROM > > &  list  ) 

converts list of SharedPointers to subtype to list of SharedPointers to supertype (TO has to be child of FROM)

Definition at line 44 of file utils.h.

QString trStringListToString ( const QStringList &  strings  )  [inline]

makes string in form "abc" from stringlist ["a","b","c"]

Definition at line 27 of file utils.h.

Referenced by TransitionTableImpl::toLaTeXTable(), and TransitionTableImpl::toStringTable().

Here is the caller graph for this function: