wrapper_pool Class Reference

#include <rc_wrapper_pool.h>

List of all members.


Detailed Description

This class represents an interface wrapper handle pool.

Definition at line 65 of file rc_wrapper_pool.h.


Public Member Functions

wrapper_handle get (sc_interface &wrapped_if, wrapper_factory *factory=NULL)
void add (rc_interface_wrapper_base &wrapper)
unsigned int size () const
unsigned int available () const
unsigned int available (sc_interface &wrapped_if) const
 ~wrapper_pool ()

Private Types

typedef std::set
< wrapper_handle * > 
wrapper_handle_set
typedef
std::multimap
< sc_interface *,
rc_interface_wrapper_base * > 
if_wrapper_multimap
typedef std::pair
< if_wrapper_multimap::iterator,
if_wrapper_multimap::iterator > 
multimap_range

Private Member Functions

void release (wrapper_handle &wrapper_handle_)

Private Attributes

if_wrapper_multimap p_if_wrapper_multimap
 multimap: interface -> wrappper
unsigned int p_num_taken
 number of wrappers taken from the pool

Friends

class wrapper_handle

Member Typedef Documentation

typedef std::set<wrapper_handle*> wrapper_handle_set [private]

Definition at line 70 of file rc_wrapper_pool.h.

typedef std::multimap< sc_interface*, rc_interface_wrapper_base* > if_wrapper_multimap [private]

Definition at line 74 of file rc_wrapper_pool.h.

typedef std::pair< if_wrapper_multimap::iterator, if_wrapper_multimap::iterator > multimap_range [private]

Definition at line 78 of file rc_wrapper_pool.h.


Constructor & Destructor Documentation

~wrapper_pool (  ) 

Definition at line 43 of file rc_wrapper_pool.cpp.


Member Function Documentation

wrapper_handle get ( sc_interface &  wrapped_if,
wrapper_factory factory = NULL 
)

Definition at line 54 of file rc_wrapper_pool.cpp.

Referenced by rc_exportal_base::open().

void add ( rc_interface_wrapper_base wrapper  ) 

Definition at line 74 of file rc_wrapper_pool.cpp.

unsigned int size (  )  const [inline]

Definition at line 86 of file rc_wrapper_pool.h.

unsigned int available (  )  const [inline]

Definition at line 89 of file rc_wrapper_pool.h.

unsigned int available ( sc_interface &  wrapped_if  )  const [inline]

Definition at line 92 of file rc_wrapper_pool.h.

void release ( wrapper_handle wrapper_handle_  )  [private]

Definition at line 82 of file rc_wrapper_pool.cpp.

Referenced by wrapper_handle::release().


Friends And Related Function Documentation

friend class wrapper_handle [friend]

Definition at line 67 of file rc_wrapper_pool.h.

Referenced by wrapper_pool::get().


Member Data Documentation

if_wrapper_multimap p_if_wrapper_multimap [private]

multimap: interface -> wrappper

Definition at line 103 of file rc_wrapper_pool.h.

Referenced by wrapper_pool::add(), wrapper_pool::available(), wrapper_pool::get(), wrapper_pool::release(), wrapper_pool::size(), and wrapper_pool::~wrapper_pool().

unsigned int p_num_taken [private]

number of wrappers taken from the pool

Definition at line 106 of file rc_wrapper_pool.h.

Referenced by wrapper_pool::get(), wrapper_pool::release(), and wrapper_pool::size().


The documentation for this class was generated from the following files:
Generated on Tue Jan 1 23:14:16 2008 for ReChannel by  doxygen 1.5.3