Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
protocols::wum2::WUQueue Class Reference

#include <WUQueue.hh>

Collaboration diagram for protocols::wum2::WUQueue:
Collaboration graph
[legend]

Public Member Functions

 WUQueue ()
 
 ~WUQueue ()
 
boost::uint64_t current_mem ()
 
boost::uint64_t size_front ()
 
void push_front (WorkUnitSP wu)
 
void push_back (WorkUnitSP wu)
 
void push_back (std::vector< WorkUnitSP > wulist)
 
WorkUnitSP pop_front ()
 
std::vector< WorkUnitSPpop_all ()
 
bool empty ()
 
void clear ()
 
int size ()
 

Private Types

typedef std::pair
< boost::uint64_t, WorkUnitSP
wu_mem_pair
 
typedef std::deque
< wu_mem_pair >::iterator 
iterator
 

Private Member Functions

boost::uint64_t serialized_size (WorkUnitSP wu)
 

Private Attributes

boost::uint64_t current_mem_
 
std::deque< wu_mem_pairdeque_
 

Member Typedef Documentation

typedef std::pair< boost::uint64_t, WorkUnitSP > protocols::wum2::WUQueue::wu_mem_pair
private

Constructor & Destructor Documentation

protocols::wum2::WUQueue::WUQueue ( )
inline
protocols::wum2::WUQueue::~WUQueue ( )
inline

Member Function Documentation

void protocols::wum2::WUQueue::clear ( )
inline

References deque_.

boost::uint64_t protocols::wum2::WUQueue::current_mem ( )
inline

References current_mem_.

bool protocols::wum2::WUQueue::empty ( )
inline

References deque_.

Referenced by pop_front(), and size_front().

std::vector< WorkUnitSP > protocols::wum2::WUQueue::pop_all ( )

References deque_.

WorkUnitSP protocols::wum2::WUQueue::pop_front ( )

References current_mem_, deque_, and empty().

void protocols::wum2::WUQueue::push_back ( WorkUnitSP  wu)

References current_mem_, deque_, and serialized_size().

Referenced by push_back().

void protocols::wum2::WUQueue::push_back ( std::vector< WorkUnitSP wulist)

References push_back().

void protocols::wum2::WUQueue::push_front ( WorkUnitSP  wu)
boost::uint64_t protocols::wum2::WUQueue::serialized_size ( WorkUnitSP  wu)
private

Referenced by push_back(), and push_front().

int protocols::wum2::WUQueue::size ( )
inline

References deque_.

boost::uint64_t protocols::wum2::WUQueue::size_front ( )
inline

References deque_, and empty().

Member Data Documentation

boost::uint64_t protocols::wum2::WUQueue::current_mem_
private
std::deque< wu_mem_pair > protocols::wum2::WUQueue::deque_
private

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