lestes::msg::argument_holder30< P0, P1, P2 > Class Template Reference

Argument holder. More...

#include <argument_holder.hh>

Inheritance diagram for lestes::msg::argument_holder30< P0, P1, P2 >:

object lestes::msg::argument_holder31< P0, P1, P2 > lestes::msg::argument_holder32< P0, P1, P2 > lestes::msg::argument_holder33< P0, P1, P2 > List of all members.

Public Types

typedef ptr< message_stencil3<
P0, P1, P2 > > 
stencil_type
 Type of the stencil.

Public Member Functions

stencil_type stencil_get (void) const
 Returns the stencil.

Static Public Member Functions

static ptr< argument_holder30<
P0, P1, P2 > > 
create (const stencil_type &a_stencil)
 Returns the holder.

Protected Member Functions

 argument_holder30 (int, const stencil_type &a_stencil)
 Creates the holder.
 argument_holder30 (const ptr< argument_holder30< P0, P1, P2 > > &other)
 Creates copy of the holder.
void gc_mark (void)
 Marks the object.

Private Member Functions

 argument_holder30 (const argument_holder30< P0, P1, P2 > &)
 Hides copy constructor.
argument_holder30< P0, P1,
P2 > & 
operator= (const argument_holder30< P0, P1, P2 > &)
 Hides assignment operator.

Private Attributes

srp< message_stencil3< P0,
P1, P2 > > 
stencil
 Stencil for the message.

Detailed Description

template<typename P0, typename P1, typename P2>
class lestes::msg::argument_holder30< P0, P1, P2 >

Argument holder.

Holder for three arguments with no arguments filled.

Parameters:
P0 The type of the zeroth argument.
P1 The type of the first argument.
P2 The type of the second argument.

Definition at line 608 of file argument_holder.hh.


Member Typedef Documentation

template<typename P0, typename P1, typename P2>
typedef ptr< message_stencil3<P0,P1,P2> > lestes::msg::argument_holder30< P0, P1, P2 >::stencil_type

Type of the stencil.

Definition at line 611 of file argument_holder.hh.


Constructor & Destructor Documentation

template<typename P0, typename P1, typename P2>
lestes::msg::argument_holder30< P0, P1, P2 >::argument_holder30 ( int  ,
const stencil_type a_stencil 
) [inline, protected]

Creates the holder.

Creates the holder for three arguments.

Parameters:
a_stencil The stencil for the message.

Definition at line 637 of file argument_holder.hh.

00637                                                                                 :
00638         stencil(checked(a_stencil))
00639 {
00640 }

template<typename P0, typename P1, typename P2>
lestes::msg::argument_holder30< P0, P1, P2 >::argument_holder30 ( const ptr< argument_holder30< P0, P1, P2 > > &  other  )  [inline, protected]

Creates copy of the holder.

Creates holder by copying other holder.

Parameters:
a_other The holder to copy.

Definition at line 647 of file argument_holder.hh.

00647                                                                                              :
00648         stencil(((void)checked(other),other->stencil_get()))
00649 {
00650 }

template<typename P0, typename P1, typename P2>
lestes::msg::argument_holder30< P0, P1, P2 >::argument_holder30 ( const argument_holder30< P0, P1, P2 > &   )  [private]

Hides copy constructor.


Member Function Documentation

template<typename P0, typename P1, typename P2>
argument_holder30< P0, P1, P2 >::stencil_type lestes::msg::argument_holder30< P0, P1, P2 >::stencil_get ( void   )  const [inline]

Returns the stencil.

Returns the stencil.

Returns:
The stored stencil.

Definition at line 657 of file argument_holder.hh.

References lestes::msg::argument_holder30< P0, P1, P2 >::stencil.

00658 {
00659         return stencil;
00660 }

template<typename P0, typename P1, typename P2>
ptr< argument_holder30< P0, P1, P2 > > lestes::msg::argument_holder30< P0, P1, P2 >::create ( const stencil_type a_stencil  )  [inline, static]

Returns the holder.

Returns holder for three arguments.

Precondition:
a_stencil != NULL
Parameters:
a_stencil The stencil for the message.
Returns:
The holder.

Definition at line 669 of file argument_holder.hh.

00670 {
00671         return new argument_holder30<P0,P1,P2>(0,a_stencil);
00672 }

template<typename P0, typename P1, typename P2>
void lestes::msg::argument_holder30< P0, P1, P2 >::gc_mark ( void   )  [inline, protected]

Marks the object.

Marks the object for garbage collection.

Reimplemented in lestes::msg::argument_holder31< P0, P1, P2 >, lestes::msg::argument_holder32< P0, P1, P2 >, and lestes::msg::argument_holder33< P0, P1, P2 >.

Definition at line 678 of file argument_holder.hh.

References lestes::msg::argument_holder30< P0, P1, P2 >::stencil.

00679 {
00680         stencil.gc_mark();
00681         object::gc_mark();
00682 }

template<typename P0, typename P1, typename P2>
argument_holder30<P0,P1,P2>& lestes::msg::argument_holder30< P0, P1, P2 >::operator= ( const argument_holder30< P0, P1, P2 > &   )  [private]

Hides assignment operator.


Member Data Documentation

template<typename P0, typename P1, typename P2>
srp< message_stencil3<P0,P1,P2> > lestes::msg::argument_holder30< P0, P1, P2 >::stencil [private]

Stencil for the message.

Definition at line 625 of file argument_holder.hh.

Referenced by lestes::msg::argument_holder30< P0, P1, P2 >::gc_mark(), and lestes::msg::argument_holder30< P0, P1, P2 >::stencil_get().


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:25:53 2007 for lestes by doxygen 1.5.1-20070107