Diana Software
Public Member Functions | Private Attributes | List of all members
QEventList Class Reference

list of references to const QEvent (s) More...

Public Member Functions

 QEventList ()
 constructor More...
 
 ~QEventList ()
 destructor More...
 
void Push (const QEvent *obj)
 add a QEvent More...
 
void Pop ()
 remove the first QEvent in the list More...
 
size_t Size () const
 number of QEvent (s) More...
 
bool Empty () const
 check if the list is empty More...
 
void Clear ()
 reset list to 0 elements More...
 
const QEventoperator[] (const size_t i)
 operator[], if out of range throws an exception More...
 
const QEventoperator[] (const size_t i) const
 operator[], const version, if out of range throws an exception More...
 

Private Attributes

std::vector< const QEvent * > fEvents
 underlying vector of QEvent (s) references More...
 

Detailed Description

list of references to const QEvent (s)

Author
Marco Vignati

This class implements a list of QEvent (s). QEvent (s) are owned by the caller and are not modified nor deleted by this class.

Definition at line 20 of file QEventList.hh.

Constructor & Destructor Documentation

◆ QEventList()

Q_BEGIN_NAMESPACE QEventList::QEventList ( )

constructor

Definition at line 9 of file QEventList.cc.

◆ ~QEventList()

QEventList::~QEventList ( )

destructor

Definition at line 13 of file QEventList.cc.

Member Function Documentation

◆ Clear()

void QEventList::Clear ( )
inline

◆ Empty()

bool QEventList::Empty ( ) const
inline

check if the list is empty

Definition at line 39 of file QEventList.hh.

References fEvents.

Referenced by MFilterWithNeighboursResult::Filter(), MFilterNeighbourExists::Filter(), and QSequence::PrintEvents().

◆ operator[]() [1/2]

const QEvent & QEventList::operator[] ( const size_t  i)

operator[], if out of range throws an exception

Definition at line 38 of file QEventList.cc.

References fEvents, QERR_OUT_OF_RANGE, and Size().

◆ operator[]() [2/2]

const QEvent & QEventList::operator[] ( const size_t  i) const

operator[], const version, if out of range throws an exception

Definition at line 27 of file QEventList.cc.

References fEvents, QERR_OUT_OF_RANGE, and Size().

◆ Pop()

void QEventList::Pop ( )

remove the first QEvent in the list

Definition at line 22 of file QEventList.cc.

References fEvents.

◆ Push()

void QEventList::Push ( const QEvent obj)

◆ Size()

size_t QEventList::Size ( ) const
inline

Member Data Documentation

◆ fEvents

std::vector<const QEvent*> QEventList::fEvents
private

underlying vector of QEvent (s) references

Definition at line 52 of file QEventList.hh.

Referenced by Clear(), Empty(), operator[](), Pop(), Push(), and Size().


The documentation for this class was generated from the following files: