STLdoc
STLdocumentation
|
The basic message envelope containing the data payload being passed between messaging blocks. More...
#include <agents.h>
Public Types | |
typedef _Type | type |
A type alias for _Type . More... | |
Public Member Functions | |
message (_Type const &_P) | |
Constructs a message object. More... | |
message (_Type const &_P, runtime_object_identity _Id) | |
Constructs a message object. More... | |
message (message const &_Msg) | |
Constructs a message object. More... | |
message (_In_ message const *_Msg) | |
Constructs a message object. More... | |
virtual | ~message () |
Destroys the message object. More... | |
runtime_object_identity | msg_id () const |
Returns the ID of the message object. More... | |
long | add_ref () |
Adds to the reference count for the message object. Used for message blocks that need reference counting to determine message lifetimes. More... | |
long | remove_ref () |
Subtracts from the reference count for the message object. Used for message blocks that need reference counting to determine message lifetimes. More... | |
Public Member Functions inherited from Concurrency::details::_Runtime_object | |
_CRTIMP2 | _Runtime_object () |
_CRTIMP2 | _Runtime_object (::Concurrency::runtime_object_identity _Id) |
virtual ::Concurrency::runtime_object_identity | _GetId () const |
Public Member Functions inherited from Concurrency::details::_AllocBase | |
void * | operator new (size_t _Size) |
void | operator delete (void *_Ptr) throw () |
void * | operator new (size_t _Size, const std::nothrow_t &) throw () |
void | operator delete (void *_Ptr, const std::nothrow_t &) throw () |
void * | operator new[] (size_t _Size) |
void | operator delete[] (void *_Ptr) throw () |
void * | operator new[] (size_t _Size, const std::nothrow_t &_No_throw) throw () |
void | operator delete[] (void *_Ptr, const std::nothrow_t &_No_throw) throw () |
void * | operator new (size_t, void *_Location) throw () |
void | operator delete (void *, void *) throw () |
void *__cdecl | operator new[] (size_t, void *_Location) throw () |
void __cdecl | operator delete[] (void *, void *) throw () |
Public Attributes | |
_Type const | payload |
The payload of the message object. More... | |
Private Member Functions | |
message< _Type > const & | operator= (message< _Type > const &) |
Private Attributes | |
message * | _M_pNext |
volatile long | _M_refCount |
Friends | |
class | ::Concurrency::details::_Queue< message< _Type > > |
Additional Inherited Members | |
Protected Attributes inherited from Concurrency::details::_Runtime_object | |
::Concurrency::runtime_object_identity | _M_id |
The basic message envelope containing the data payload being passed between messaging blocks.
_Type | The data type of the payload within the message. |
For more information, see Asynchronous Message Blocks.
typedef _Type Concurrency::message< _Type >::type |
A type alias for _Type .
|
inline |
Constructs a message
object.
_P | The payload of this message. |
The constructor that takes a pointer to a message
object as an argument throws an invalid_argument exception if the parameter _Msg is NULL
.
|
inline |
Constructs a message
object.
_P | The payload of this message. |
_Id | The unique ID of this message. |
The constructor that takes a pointer to a message
object as an argument throws an invalid_argument exception if the parameter _Msg is NULL
.
|
inline |
Constructs a message
object.
_Msg | A reference or pointer to a message object. |
The constructor that takes a pointer to a message
object as an argument throws an invalid_argument exception if the parameter _Msg is NULL
.
|
inline |
Constructs a message
object.
_Msg | A reference or pointer to a message object. |
This method throws an invalid_argument exception if the parameter _Msg is NULL
.
|
inlinevirtual |
|
inline |
Adds to the reference count for the message
object. Used for message blocks that need reference counting to determine message lifetimes.
|
inline |
Returns the ID of the message
object.
runtime_object_identity
of the message
object.
|
private |
|
inline |
Subtracts from the reference count for the message
object. Used for message blocks that need reference counting to determine message lifetimes.
|
friend |
|
private |
|
private |
_Type const Concurrency::message< _Type >::payload |
The payload of the message
object.