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

Argument holder. More...

#include <argument_holder.hh>

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

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

Public Types

typedef convert< P0 >::to_ptr p0_type
 Type of the zeroth argument.

Public Member Functions

p0_type p0_get (void) const
 Returns the zeroth argument.

Static Public Member Functions

static ptr< argument_holder21<
P0, P1 > > 
create (const ptr< argument_holder20< P0, P1 > > &parent, const p0_type &a_p0)
 Returns the holder.

Protected Member Functions

 argument_holder21 (const ptr< argument_holder20< P0, P1 > > &parent, const p0_type &a_p0)
 Creates the holder.
 argument_holder21 (const ptr< argument_holder21< P0, P1 > > &other)
 Creates a copy of the holder.
void gc_mark (void)
 Marks the object.

Private Member Functions

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

Private Attributes

convert< P0 >::to_srp p0
 The zeroth argument.

Detailed Description

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

Argument holder.

Holder for two arguments with one argument filled.

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

Definition at line 442 of file argument_holder.hh.


Member Typedef Documentation

template<typename P0, typename P1>
typedef convert<P0>::to_ptr lestes::msg::argument_holder21< P0, P1 >::p0_type

Type of the zeroth argument.

Definition at line 445 of file argument_holder.hh.


Constructor & Destructor Documentation

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

Creates the holder.

Creates the holder for two arguments.

Parameters:
a_parent The parent of this holder.
a_p0 The zeroth argument for the message.

Definition at line 472 of file argument_holder.hh.

00472                                                                                                              :
00473         argument_holder20<P0,P1>(checked(parent)),
00474         p0(a_p0)
00475 {
00476 }

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

Creates a copy of the holder.

Creates the holder by copying other holder.

Parameters:
a_other The holder to copy.

Definition at line 483 of file argument_holder.hh.

00483                                                                                        :
00484         argument_holder20<P0,P1>(checked(other)),
00485         p0(other->p0_get())
00486 {
00487 }

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

Hides copy constructor.


Member Function Documentation

template<typename P0, typename P1>
argument_holder21< P0, P1 >::p0_type lestes::msg::argument_holder21< P0, P1 >::p0_get ( void   )  const [inline]

Returns the zeroth argument.

Returns the zeroth argument.

Returns:
The zeroth argument.

Definition at line 494 of file argument_holder.hh.

References lestes::msg::argument_holder21< P0, P1 >::p0.

00495 {
00496         return p0;
00497 }

template<typename P0, typename P1>
ptr< argument_holder21< P0, P1 > > lestes::msg::argument_holder21< P0, P1 >::create ( const ptr< argument_holder20< P0, P1 > > &  parent,
const p0_type a_p0 
) [inline, static]

Returns the holder.

Returns the holder for two arguments.

Precondition:
parent != NULL
Parameters:
parent The parent of this holder.
a_p0 The zeroth argument for the message.
Returns:
The holder.

Definition at line 507 of file argument_holder.hh.

00509 {
00510         return new argument_holder21<P0,P1>(parent,a_p0);
00511 }

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

Marks the object.

Marks the object for garbage collection.

Reimplemented from lestes::msg::argument_holder20< P0, P1 >.

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

Definition at line 517 of file argument_holder.hh.

References lestes::gc_mark_srp(), and lestes::msg::argument_holder21< P0, P1 >::p0.

00518 {
00519         gc_mark_srp(p0);
00520         argument_holder20<P0,P1>::gc_mark();
00521 }

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

Hides assignment operator.


Member Data Documentation

template<typename P0, typename P1>
convert<P0>::to_srp lestes::msg::argument_holder21< P0, P1 >::p0 [private]

The zeroth argument.

Definition at line 459 of file argument_holder.hh.

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