lestes::msg::argument_holder20< P0, P1 > Class Template Reference

Argument holder. More...

#include <argument_holder.hh>

Inheritance diagram for lestes::msg::argument_holder20< P0, P1 >:

object lestes::msg::argument_holder21< P0, P1 > lestes::msg::argument_holder22< P0, P1 > List of all members.

Public Types

typedef ptr< message_stencil2<
P0, P1 > > 
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_holder20<
P0, P1 > > 
create (const stencil_type &a_stencil)
 Returns the holder.

Protected Member Functions

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

Private Member Functions

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

Private Attributes

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

Detailed Description

template<typename P0, typename P1>
class lestes::msg::argument_holder20< P0, P1 >

Argument holder.

Holder for two arguments with no arguments filled.

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

Definition at line 358 of file argument_holder.hh.


Member Typedef Documentation

template<typename P0, typename P1>
typedef ptr< message_stencil2<P0,P1> > lestes::msg::argument_holder20< P0, P1 >::stencil_type

Type of the stencil.

Definition at line 361 of file argument_holder.hh.


Constructor & Destructor Documentation

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

Creates the holder.

Creates the holder for two arguments.

Parameters:
a_stencil The stencil for the message.

Definition at line 387 of file argument_holder.hh.

00387                                                                              :
00388         stencil(checked(a_stencil))
00389 {
00390 }

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

Creates copy of the holder.

Creates holder by copying other holder.

Parameters:
a_other The holder to copy.

Definition at line 397 of file argument_holder.hh.

00397                                                                                        :
00398         stencil(((void)checked(other),other->stencil_get()))
00399 {
00400 }

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

Hides copy constructor.


Member Function Documentation

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

Returns the stencil.

Returns the stencil.

Returns:
The stored stencil.

Definition at line 407 of file argument_holder.hh.

References lestes::msg::argument_holder20< P0, P1 >::stencil.

00408 {
00409         return stencil;
00410 }

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

Returns the holder.

Returns holder for two arguments.

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

Definition at line 419 of file argument_holder.hh.

00420 {
00421         return new argument_holder20<P0,P1>(0,a_stencil);
00422 }

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

Marks the object.

Marks the object for garbage collection.

Reimplemented in lestes::msg::argument_holder21< P0, P1 >, and lestes::msg::argument_holder22< P0, P1 >.

Definition at line 428 of file argument_holder.hh.

References lestes::msg::argument_holder20< P0, P1 >::stencil.

00429 {
00430         stencil.gc_mark();
00431         object::gc_mark();
00432 }

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

Hides assignment operator.


Member Data Documentation

template<typename P0, typename P1>
srp< message_stencil2<P0,P1> > lestes::msg::argument_holder20< P0, P1 >::stencil [private]

Stencil for the message.

Definition at line 375 of file argument_holder.hh.

Referenced by lestes::msg::argument_holder20< P0, P1 >::gc_mark(), and lestes::msg::argument_holder20< P0, P1 >::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