/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | Private Member Functions | Static Private Attributes | Friends
UserBufMgr Class Reference

#include <UserBufMgr.h>

Inheritance diagram for UserBufMgr:
Inheritance graph
[legend]
Collaboration diagram for UserBufMgr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void tryPushBack (PhyEvent *evt)
void synchronize (PhyEventBuf *buf)

Static Public Member Functions

static UserBufMgrinstance ()
static void release ()
static PhyEventBufbufWithSelector (const std::string &selector)

Protected Types

typedef UserBuffer *(* ElementCreator )(const std::string &)
typedef std::map< std::string,
ElementCreator
Type2CreatorMap

Protected Member Functions

const std::string & name ()
virtual bool initialize ()
virtual bool finalize ()

Static Protected Member Functions

static UserBufferget (const std::string &objName, bool create=false)
static ConcreteType * get (const std::string &objName, bool create=false)

Static Protected Attributes

static std::list< UserBuffer * > m_elements
static std::map< std::string,
UserBuffer * > 
name2obj
static std::map< std::string,
ElementCreator
elementCreatorMap

Private Member Functions

 UserBufMgr (const std::string &name)

Static Private Attributes

static UserBufMgr_instance = 0

Friends

class UserBufFactory

Detailed Description

Definition at line 7 of file UserBufMgr.h.


Member Typedef Documentation

typedef UserBuffer *(* ElementMgr< UserBuffer >::ElementCreator)(const std::string &) [protected, inherited]

Definition at line 41 of file ElementMgr.h.

typedef std::map<std::string, ElementCreator> ElementMgr< UserBuffer >::Type2CreatorMap [protected, inherited]

Definition at line 42 of file ElementMgr.h.


Constructor & Destructor Documentation

UserBufMgr::UserBufMgr ( const std::string &  name) [private]

Definition at line 79 of file UserBufMgr.cc.

    : ElementMgr<UserBuffer>(objname)
{
}

Member Function Documentation

UserBufMgr * UserBufMgr::instance ( ) [static]

Definition at line 42 of file UserBufMgr.cc.

{
    if ( _instance == 0 ) {
        _instance = new UserBufMgr("UserBufMgr");
    }
    return _instance;
}
void UserBufMgr::release ( ) [static]

Definition at line 50 of file UserBufMgr.cc.

{
    if ( _instance != 0 ) {
        delete _instance;
        _instance = 0;
    }
}
PhyEventBuf * UserBufMgr::bufWithSelector ( const std::string &  selector) [static]

Definition at line 58 of file UserBufMgr.cc.

{
    return get(selector, false);
}
void UserBufMgr::tryPushBack ( PhyEvent evt)

Definition at line 63 of file UserBufMgr.cc.

{
    for ( std::list<UserBuffer*>::iterator it = m_elements.begin();
            it != m_elements.end(); ++it ) {
        (*it)->tryPushBack(evt);
    }
}
void UserBufMgr::synchronize ( PhyEventBuf buf)

Definition at line 71 of file UserBufMgr.cc.

{
    for ( std::list<UserBuffer*>::iterator it = m_elements.begin();
            it != m_elements.end(); ++it ) {
        (*it)->synchronize(buf);
    }
}
const std::string& ElementMgr< UserBuffer >::name ( void  ) [inline, inherited]

Definition at line 16 of file ElementMgr.h.

{ return m_name; }
static UserBuffer * ElementMgr< UserBuffer >::get ( const std::string &  objName,
bool  create = false 
) [static, inherited]
static ConcreteType* ElementMgr< UserBuffer >::get ( const std::string &  objName,
bool  create = false 
) [static, inherited]
bool ElementMgr< UserBuffer >::initialize ( ) [virtual, inherited]

Definition at line 32 of file UserBufMgr.cc.

{
    return true;
}
bool ElementMgr< UserBuffer >::finalize ( ) [virtual, inherited]

Definition at line 37 of file UserBufMgr.cc.

{
    return true;
}

Friends And Related Function Documentation

friend class UserBufFactory [friend]

Definition at line 24 of file UserBufMgr.h.


Member Data Documentation

UserBufMgr * UserBufMgr::_instance = 0 [static, private]

Definition at line 25 of file UserBufMgr.h.

std::list<UserBuffer *> ElementMgr< UserBuffer >::m_elements [static, protected, inherited]

Definition at line 37 of file ElementMgr.h.

std::map<std::string, UserBuffer *> ElementMgr< UserBuffer >::name2obj [static, protected, inherited]

Definition at line 39 of file ElementMgr.h.

std::map<std::string, ElementCreator> ElementMgr< UserBuffer >::elementCreatorMap [static, protected, inherited]

Definition at line 43 of file ElementMgr.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:18 for LafKernel by doxygen 1.7.4