Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
InformationScripting::TupleSet Class Reference

Public Member Functions

 TupleSet ()=default
 
 TupleSet (const QList< Tuple > &initialTuples)
 
void add (const Tuple &t)
 
template<typename T >
void addPropertiesAsTuples (const QString &tag)
 Adds all properties of type T as single Tuples with tag tag. More...
 
bool isEmpty () const
 
void remove (const Tuple &t)
 
void remove (const TupleSet &tuples)
 
template<typename Condition >
QSet< Tupletake (Condition condition)
 
QSet< Tupletake (const char *tag)
 
QSet< Tupletake (const QString &tag)
 
QSet< TupletakeAll ()
 
QSet< Tupletuples () const
 
template<typename Condition >
QSet< Tupletuples (Condition condition) const
 
QSet< Tupletuples (const char *tag) const
 
QSet< Tupletuples (const QString &tag) const
 Returns all tuples which are tagged with tag. More...
 
void unite (const TupleSet &with)
 

Private Attributes

QHash< QString, QSet< Tuple > > tuples_
 

Constructor & Destructor Documentation

◆ TupleSet() [1/2]

InformationScripting::TupleSet::TupleSet ( )
default

◆ TupleSet() [2/2]

InformationScripting::TupleSet::TupleSet ( const QList< Tuple > &  initialTuples)

Member Function Documentation

◆ add()

void InformationScripting::TupleSet::add ( const Tuple t)
inline

◆ addPropertiesAsTuples()

template<typename T >
void InformationScripting::TupleSet::addPropertiesAsTuples ( const QString &  tag)
inline

Adds all properties of type T as single Tuples with tag tag.

◆ isEmpty()

bool InformationScripting::TupleSet::isEmpty ( ) const
inline

◆ remove() [1/2]

void InformationScripting::TupleSet::remove ( const Tuple t)
inline

◆ remove() [2/2]

void InformationScripting::TupleSet::remove ( const TupleSet tuples)

◆ take() [1/3]

template<typename Condition >
QSet< Tuple > InformationScripting::TupleSet::take ( Condition  condition)
inline

◆ take() [2/3]

QSet< Tuple > InformationScripting::TupleSet::take ( const char *  tag)
inline

◆ take() [3/3]

QSet< Tuple > InformationScripting::TupleSet::take ( const QString &  tag)
inline

◆ takeAll()

QSet< Tuple > InformationScripting::TupleSet::takeAll ( )

◆ tuples() [1/4]

QSet< Tuple > InformationScripting::TupleSet::tuples ( ) const

◆ tuples() [2/4]

template<typename Condition >
QSet< Tuple > InformationScripting::TupleSet::tuples ( Condition  condition) const
inline

◆ tuples() [3/4]

QSet< Tuple > InformationScripting::TupleSet::tuples ( const char *  tag) const
inline

◆ tuples() [4/4]

QSet< Tuple > InformationScripting::TupleSet::tuples ( const QString &  tag) const

Returns all tuples which are tagged with tag.

◆ unite()

void InformationScripting::TupleSet::unite ( const TupleSet with)

Member Data Documentation

◆ tuples_

QHash<QString, QSet<Tuple> > InformationScripting::TupleSet::tuples_
private