User Manual, Developers Guide and API Documentation

wns::ObjectManager< OBJECT > Class Template Reference

Generic object manager.

#include <ObjManager.hpp>

Collaboration diagram for wns::ObjectManager< OBJECT >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef OBJECT Object
typedef SmartPtr< OBJECT > ObjPtr

Public Member Functions

void append (const OBJECT &obj)
template<class >
void clear ()
template<class FUNCTION>
FUNCTION for_each (FUNCTION function)
 Execute a function for all objects.
size_t size () const

Protected Attributes

std::list< Objectobjects


Detailed Description

template<class OBJECT>
class wns::ObjectManager< OBJECT >

Definition at line 30 of file ObjManager.hpp.


Member Typedef Documentation

template<class OBJECT>
typedef OBJECT wns::ObjectManager< OBJECT >::Object

Definition at line 34 of file ObjManager.hpp.

template<class OBJECT>
typedef SmartPtr<OBJECT> wns::ObjectManager< OBJECT >::ObjPtr

Definition at line 33 of file ObjManager.hpp.


Member Function Documentation

template<class OBJECT>
void wns::ObjectManager< OBJECT >::append ( const OBJECT &  obj  )  [inline]

Definition at line 44 of file ObjManager.hpp.

template<class OBJECT>
template<class >
void wns::ObjectManager< OBJECT >::clear (  )  [inline]

Definition at line 39 of file ObjManager.hpp.

template<class OBJECT>
template<class FUNCTION>
FUNCTION wns::ObjectManager< OBJECT >::for_each ( FUNCTION  function  )  [inline]

Definition at line 51 of file ObjManager.hpp.

template<class OBJECT>
size_t wns::ObjectManager< OBJECT >::size (  )  const [inline]

Definition at line 56 of file ObjManager.hpp.


Member Data Documentation

template<class OBJECT>
std::list< Object > wns::ObjectManager< OBJECT >::objects [protected]

Definition at line 63 of file ObjManager.hpp.


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

Generated on Sat May 26 03:32:51 2012 for openWNS by  doxygen 1.5.5