OKlibrary  0.2.1.6
OKlib::Messages::Utilities::TrivialMessageC< X > Class Template Reference

Message object TrivialMessageC<X>(x) prints x. More...

#include <TrivialMessage.hpp>

Inheritance diagram for OKlib::Messages::Utilities::TrivialMessageC< X >:
OKlib::Messages::MessagesBase

List of all members.

Public Types

typedef X value_type

Public Member Functions

 TrivialMessageC (const value_type x)
std::ostream & print (std::ostream &out) const

Detailed Description

template<typename X>
class OKlib::Messages::Utilities::TrivialMessageC< X >

Message object TrivialMessageC<X>(x) prints x.

Different from Utilities::TrivialMessage, here x is passed by value ("C" in the name is for "copy").

Definition at line 51 of file TrivialMessage.hpp.


Member Typedef Documentation

template<typename X >
typedef X OKlib::Messages::Utilities::TrivialMessageC< X >::value_type

Definition at line 52 of file TrivialMessage.hpp.


Constructor & Destructor Documentation

template<typename X >
OKlib::Messages::Utilities::TrivialMessageC< X >::TrivialMessageC ( const value_type  x) [inline, explicit]

Definition at line 53 of file TrivialMessage.hpp.


Member Function Documentation

template<typename X >
std::ostream& OKlib::Messages::Utilities::TrivialMessageC< X >::print ( std::ostream &  out) const [inline, virtual]

Implements OKlib::Messages::MessagesBase.

Definition at line 54 of file TrivialMessage.hpp.


The documentation for this class was generated from the following file: