Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

pool_object_keeper< P > Class Template Reference

object from pool keeper More...

#include <template.h>

List of all members.

Public Types

typedef TYPENAME P::CREATOR::TYPE TYPE
 type of object
typedef TYPENAME P::CREATOR::ARG ARG
 argument for creator

Public Member Functions

 pool_object_keeper (P *pool_, TYPE *obj)
 constructor takes and keeps external object
 pool_object_keeper (P *pool_, const ARG &arg, size_t timeout)
 constructor object will be created inside
 ~pool_object_keeper ()
 destructor
TYPENAME pool_object_keeper< P >
::TYPE
operator-> ()
 operator->
const TYPENAME
pool_object_keeper< P >::TYPE
operator-> () const
 operator-> (const)
 operator TYPENAME pool_object_keeper< P >::TYPE * ()
 operator TYPE*
 operator const TYPENAME pool_object_keeper< P >::TYPE * () const
 operator TYPE* (const)
bool operator! () const
 checks object

Private Attributes

P * _pool
 pointer to pool
TYPENAME pool_object_keeper< P >
::TYPE
_obj
 pointer to object


Detailed Description

template<class P>
class pool_object_keeper< P >

object from pool keeper

Definition at line 217 of file template.h.


Member Typedef Documentation

template<class P>
pool_object_keeper< P >::TYPE

type of object

Definition at line 222 of file template.h.

template<class P>
pool_object_keeper< P >::ARG

argument for creator

Definition at line 225 of file template.h.


Constructor & Destructor Documentation

template<class P>
pool_object_keeper< P >::pool_object_keeper ( P *  pool_,
TYPE obj 
) [inline, explicit]

constructor takes and keeps external object

Parameters:
pool_  pointer to pool
obj  pointer to external object

Definition at line 331 of file template.hpp.

template<class P>
pool_object_keeper< P >::pool_object_keeper ( P *  pool_,
const ARG arg,
size_t  timeout 
) [inline, explicit]

constructor object will be created inside

Parameters:
pool_  pointer to pool
arg  creator argument
timeout  timeout in milliseconds

Definition at line 337 of file template.hpp.

References pool_object_keeper< P >::_obj, and pool_object_keeper< P >::_pool.

template<class P>
pool_object_keeper< P >::~pool_object_keeper (  )  [inline]

destructor

Definition at line 344 of file template.hpp.

References pool_object_keeper< P >::_obj, and pool_object_keeper< P >::_pool.


Member Function Documentation

template<class P>
TYPENAME pool_object_keeper< P >::TYPE * pool_object_keeper< P >::operator-> (  )  [inline]

operator->

Definition at line 353 of file template.hpp.

References pool_object_keeper< P >::_obj.

template<class P>
const TYPENAME pool_object_keeper< P >::TYPE * pool_object_keeper< P >::operator-> (  )  const [inline]

operator-> (const)

Definition at line 361 of file template.hpp.

References pool_object_keeper< P >::_obj.

template<class P>
pool_object_keeper< P >::operator TYPENAME pool_object_keeper< P >::TYPE * (  )  [inline]

operator TYPE*

Definition at line 247 of file template.h.

References pool_object_keeper< P >::_obj.

template<class P>
pool_object_keeper< P >::operator const TYPENAME pool_object_keeper< P >::TYPE * (  )  const [inline]

operator TYPE* (const)

Definition at line 253 of file template.h.

References pool_object_keeper< P >::_obj.

template<class P>
bool pool_object_keeper< P >::operator! (  )  const [inline]

checks object

Definition at line 369 of file template.hpp.

References pool_object_keeper< P >::_obj.


Member Data Documentation

template<class P>
P* pool_object_keeper< P >::_pool [private]


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


© Copyright Terimber 2003-.