Logo
~Apps~
~Projects~
~Contact~


BTList Class Reference

list in metainfo file More...

#include <BTList.h>

Inheritance diagram for BTList:

Inheritance graph
[legend]
Collaboration diagram for BTList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BTList (size_t i)
 ~BTList ()
char Type ()
void Show ()
size_t GetSize ()
BTObjectGetFirst ()
void AddObject (BTObject *p)
btobject_vGetList ()

Private Attributes

btobject_v m_objects

Detailed Description

list in metainfo file

File ......... BTList.h Published .... 2005-06-14 Author ....... grymse@alhem.net

Definition at line 30 of file BTList.h.


Constructor & Destructor Documentation

BTList::BTList ( size_t  i  )  [inline]

Definition at line 33 of file BTList.h.

00033 : BTObject(i) {}

BTList::~BTList (  )  [inline]

Definition at line 34 of file BTList.h.

References m_objects.

00034                   {
00035                 for (btobject_v::iterator it = m_objects.begin(); it != m_objects.end(); it++)
00036                 {
00037                         delete (*it);
00038                 }
00039         }


Member Function Documentation

char BTList::Type (  )  [inline, virtual]

Implements BTObject.

Definition at line 40 of file BTList.h.

00040 { return 'l'; }

void BTList::Show (  )  [inline, virtual]

Reimplemented from BTObject.

Definition at line 41 of file BTList.h.

References BTObject::GetParent(), and m_objects.

Referenced by BString::Show().

00041                     {
00042                 BTObject *p = GetParent();
00043                 printf("\n");
00044                 while (p)
00045                 {
00046                         printf("  ");
00047                         p = p -> GetParent();
00048                 }
00049                 printf("[ ");
00050                 for (btobject_v::iterator it = m_objects.begin(); it != m_objects.end(); it++)
00051                         (*it) -> Show();
00052                 printf("] ");
00053         }

size_t BTList::GetSize (  )  [inline]

Definition at line 54 of file BTList.h.

References m_objects.

00054                          {
00055                 return m_objects.size();
00056         }

BTObject* BTList::GetFirst (  )  [inline]

Definition at line 57 of file BTList.h.

References m_objects.

00057                              {
00058                 btobject_v::iterator it = m_objects.begin();
00059                 return (*it);
00060         }

void BTList::AddObject ( BTObject p  )  [inline, virtual]

Reimplemented from BTObject.

Definition at line 62 of file BTList.h.

References m_objects.

00062                                     {
00063                 m_objects.push_back(p);
00064         }

btobject_v& BTList::GetList (  )  [inline]

Definition at line 65 of file BTList.h.

References m_objects.

00065 { return m_objects; }


Member Data Documentation

Definition at line 68 of file BTList.h.

Referenced by AddObject(), GetFirst(), GetList(), GetSize(), Show(), and ~BTList().


The documentation for this class was generated from the following file:
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4