#include <message_stencil.hh>
Inheritance diagram for lestes::msg::message_stencil2< P0, P1 >:
Public Types | |
typedef formatter< P0 > | f0_type |
The type of formatter for zeroth parameter. | |
typedef formatter< P1 > | f1_type |
The type of formatter for first parameter. | |
Public Member Functions | |
ptr< message > | format (const P0 &p0, const P1 &p1) const |
Formats a message according to the stencil. | |
Static Public Member Functions | |
static ptr< message_stencil2< P0, P1 > > | create (const lstring &a_format, flags_type a_flags, const ptr< f0_type > &a_f0, const ptr< f1_type > &a_f1) |
Returns new stencil. | |
Protected Member Functions | |
message_stencil2 (const lstring &a_format, flags_type a_flags, const ptr< f0_type > &a_f0, const ptr< f1_type > &a_f1) | |
Creates new stencil. | |
void | gc_mark (void) |
Marks the object. | |
Private Member Functions | |
message_stencil2 (const message_stencil2< P0, P1 > &) | |
Hides copy constructor. | |
message_stencil2< P0, P1 > & | operator= (const message_stencil2< P0, P1 > &) |
Hides assignment operator. | |
Private Attributes | |
srp< f0_type > | f0 |
The formatter for the zeroth parameter. | |
srp< f1_type > | f1 |
The formatter for the first parameter. |
Represents message stencil with two formatted parameter.
P0 | The type of the zeroth parameter. | |
P1 | The type of the first parameter. |
typedef formatter<P0> lestes::msg::message_stencil2< P0, P1 >::f0_type |
The type of formatter for zeroth parameter.
typedef formatter<P1> lestes::msg::message_stencil2< P0, P1 >::f1_type |
The type of formatter for first parameter.
lestes::msg::message_stencil2< P0, P1 >::message_stencil2 | ( | const lstring & | a_text, | |
flags_type | a_flags, | |||
const ptr< f0_type > & | a_f0, | |||
const ptr< f1_type > & | a_f1 | |||
) | [inline, protected] |
lestes::msg::message_stencil2< P0, P1 >::message_stencil2 | ( | const message_stencil2< P0, P1 > & | ) | [private] |
Hides copy constructor.
ptr< message > lestes::msg::message_stencil2< P0, P1 >::format | ( | const P0 & | p0, | |
const P1 & | p1 | |||
) | const [inline] |
ptr< message_stencil2< P0, P1 > > lestes::msg::message_stencil2< P0, P1 >::create | ( | const lstring & | a_format, | |
flags_type | a_flags, | |||
const ptr< f0_type > & | a_f0, | |||
const ptr< f1_type > & | a_f1 | |||
) | [inline, static] |
Returns new stencil.
Returns the two-parameter stencil, initializes with values to fill into the message.
a_f0 != NULL
a_f1 != NULL
a_format | The format for the message, with % designating indexed parameter slots. | |
a_flags | The flags for the message. | |
a_f0 | The formatter for the zeroth parameter. | |
a_f1 | The formatter for the first parameter. |
void lestes::msg::message_stencil2< P0, P1 >::gc_mark | ( | void | ) | [inline, protected, virtual] |
Marks the object.
Marks the object for garbage collection.
Reimplemented from lestes::msg::message_stencil.
message_stencil2<P0,P1>& lestes::msg::message_stencil2< P0, P1 >::operator= | ( | const message_stencil2< P0, P1 > & | ) | [private] |
Hides assignment operator.
srp<f0_type> lestes::msg::message_stencil2< P0, P1 >::f0 [private] |
The formatter for the zeroth parameter.
srp<f1_type> lestes::msg::message_stencil2< P0, P1 >::f1 [private] |
The formatter for the first parameter.