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

Public Types

using const_iterator = QList< NamedProperty >::ConstIterator
 
using iterator = QList< NamedProperty >::Iterator
 

Public Member Functions

 Tuple ()=delete
 
 Tuple (const QString &tag, QList< NamedProperty > initialValues)
 
 Tuple (const QString &tag, std::initializer_list< NamedProperty > initialValues)
 
 Tuple (QList< NamedProperty > initialValues)
 
 Tuple (std::initializer_list< NamedProperty > initialValues)
 
void add (const NamedProperty &p)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool contains (const QString &name) const
 
iterator end ()
 
const_iterator end () const
 
iterator find (const QString &name)
 
const_iterator find (const QString &name) const
 
uint hashValue (uint seed=0) const
 
bool operator== (const Tuple &other) const
 
Propertyoperator[] (const QString &name)
 
const Propertyoperator[] (const QString &name) const
 
NamedPropertyoperator[] (int index)
 
const NamedPropertyoperator[] (int index) const
 
int size () const
 
QString tag () const
 
template<typename T >
QList< T > valuesOfType () const
 

Private Attributes

QString tag_
 
QList< NamedPropertyvalues_
 

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ Tuple() [1/5]

InformationScripting::Tuple::Tuple ( )
delete

◆ Tuple() [2/5]

InformationScripting::Tuple::Tuple ( const QString &  tag,
std::initializer_list< NamedProperty initialValues 
)

◆ Tuple() [3/5]

InformationScripting::Tuple::Tuple ( const QString &  tag,
QList< NamedProperty initialValues 
)

◆ Tuple() [4/5]

InformationScripting::Tuple::Tuple ( std::initializer_list< NamedProperty initialValues)

◆ Tuple() [5/5]

InformationScripting::Tuple::Tuple ( QList< NamedProperty initialValues)

Member Function Documentation

◆ add()

void InformationScripting::Tuple::add ( const NamedProperty p)

◆ begin() [1/2]

Tuple::iterator InformationScripting::Tuple::begin ( )
inline

◆ begin() [2/2]

Tuple::const_iterator InformationScripting::Tuple::begin ( ) const
inline

◆ cbegin()

Tuple::const_iterator InformationScripting::Tuple::cbegin ( ) const
inline

◆ cend()

Tuple::const_iterator InformationScripting::Tuple::cend ( ) const
inline

◆ contains()

bool InformationScripting::Tuple::contains ( const QString &  name) const
inline

◆ end() [1/2]

Tuple::iterator InformationScripting::Tuple::end ( )
inline

◆ end() [2/2]

Tuple::const_iterator InformationScripting::Tuple::end ( ) const
inline

◆ find() [1/2]

Tuple::iterator InformationScripting::Tuple::find ( const QString &  name)

◆ find() [2/2]

Tuple::const_iterator InformationScripting::Tuple::find ( const QString &  name) const

◆ hashValue()

uint InformationScripting::Tuple::hashValue ( uint  seed = 0) const

◆ operator==()

bool InformationScripting::Tuple::operator== ( const Tuple other) const
inline

◆ operator[]() [1/4]

Property & InformationScripting::Tuple::operator[] ( const QString &  name)

◆ operator[]() [2/4]

const Property & InformationScripting::Tuple::operator[] ( const QString &  name) const

◆ operator[]() [3/4]

NamedProperty & InformationScripting::Tuple::operator[] ( int  index)
inline

◆ operator[]() [4/4]

const NamedProperty & InformationScripting::Tuple::operator[] ( int  index) const
inline

◆ size()

int InformationScripting::Tuple::size ( ) const
inline

◆ tag()

QString InformationScripting::Tuple::tag ( ) const
inline

◆ valuesOfType()

template<typename T >
QList< T > InformationScripting::Tuple::valuesOfType
inline

Member Data Documentation

◆ tag_

QString InformationScripting::Tuple::tag_
private

◆ values_

QList<NamedProperty> InformationScripting::Tuple::values_
private