/usr/include/tao/Incoming_Message_Stack.inl is in libtao-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | // -*- C++ -*-
//
//$Id: Incoming_Message_Stack.inl 82307 2008-07-14 18:48:22Z johnnyw $
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/************************************************************************/
// Methods for TAO_Incoming_Message_Stack
/************************************************************************/
namespace TAO
{
ACE_INLINE
Incoming_Message_Stack::Incoming_Message_Stack()
: top_(0)
{
}
ACE_INLINE
Incoming_Message_Stack::~Incoming_Message_Stack()
{
// Delete all the nodes left behind
TAO_Queued_Data *del = 0;
while (this->pop (del) != -1)
{
TAO_Queued_Data::release (del);
}
}
ACE_INLINE void
Incoming_Message_Stack::push(TAO_Queued_Data *data)
{
data->next (this->top_);
this->top_ = data;
}
/* @return 0 for Ok, -1 for error */
ACE_INLINE int
Incoming_Message_Stack::pop (TAO_Queued_Data* &data)
{
if (this->top_ == 0)
return -1;
data = this->top_;
this->top_ = data->next ();
return 0;
}
ACE_INLINE int
Incoming_Message_Stack::top (TAO_Queued_Data* &data) const
{
if (this->top_ == 0)
return -1;
data = this->top_;
return 0;
}
} /* namespace TAO */
TAO_END_VERSIONED_NAMESPACE_DECL
|