defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 #include "container.hpp" 00012 00013 using namespace Queue; 00014 00015 Container::Container(QObject *parent) : 00016 QObject(parent) 00017 { 00018 } 00019 00020 unsigned Container::size() const 00021 { 00022 return children.size(); 00023 } 00024 00025 bool Container::empty() const 00026 { 00027 return children.empty(); 00028 } 00029 00030 const QueueableDeque& Container::getChildren() const 00031 { 00032 return children; 00033 } 00034 00035 QString Container::name() const 00036 { 00037 // This generic method should be overriden to give more details 00038 return QString("Container<%1>").arg((qlonglong)this); 00039 }