ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Attributes
ListController< T > Class Template Reference

#include <Controller.h>

Inheritance diagram for ListController< T >:
Inheritance graph
[legend]
Collaboration diagram for ListController< T >:
Collaboration graph
[legend]

Public Member Functions

 ListController ()
 
virtual ~ListController ()
 
void AddController (T *control)
 Common Function for dealing with the list, need a name, may call other controllers... More...
 
void RemoveController (T *control)
 
T * GetController (std::string name)
 
T * GetFirstController ()
 get the first controller in list, useful after a delete More...
 
virtual void DeleteList (bool call_delete=true)
 Iterative call for deleting child controller. More...
 
virtual unsigned int GetSizeListController () const
 

Protected Types

typedef std::list< T * >::iterator it_list
 useful typedef for the class ( and derivatives !) More...
 

Protected Attributes

std::list< T * > list_controller
 list more convenient, remove if not shown ?, or insert More...
 

Detailed Description

template<class T>
class ListController< T >

Definition at line 104 of file Controller.h.

Member Typedef Documentation

template<class T>
typedef std::list<T *>::iterator ListController< T >::it_list
protected

useful typedef for the class ( and derivatives !)

Definition at line 110 of file Controller.h.

Constructor & Destructor Documentation

template<class T>
ListController< T >::ListController ( )
inline

Definition at line 122 of file Controller.h.

template<class T>
virtual ListController< T >::~ListController ( )
inlinevirtual

Definition at line 128 of file Controller.h.

Member Function Documentation

template<class T>
void ListController< T >::AddController ( T *  control)
inline

Common Function for dealing with the list, need a name, may call other controllers...

Definition at line 134 of file Controller.h.

template<class T>
virtual void ListController< T >::DeleteList ( bool  call_delete = true)
inlinevirtual

Iterative call for deleting child controller.

Parameters
call_delete: optional, default true delete all controller of the list before

Should overloaded by derive class otherwise only call ControllerBase !, solved by pure virtual function in base class

Definition at line 163 of file Controller.h.

template<class T>
T* ListController< T >::GetController ( std::string  name)
inline

Definition at line 156 of file Controller.h.

template<class T>
T* ListController< T >::GetFirstController ( )
inline

get the first controller in list, useful after a delete

Definition at line 158 of file Controller.h.

template<class T>
virtual unsigned int ListController< T >::GetSizeListController ( ) const
inlinevirtual

Definition at line 186 of file Controller.h.

template<class T>
void ListController< T >::RemoveController ( T *  control)
inline

Definition at line 139 of file Controller.h.

Field Documentation

template<class T>
std::list<T *> ListController< T >::list_controller
protected

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