Public Member Functions | Protected Attributes

SocketT< T > Class Template Reference

Sockets of various types. More...

#include <sockets.h>

Inheritance diagram for SocketT< T >:
Socket ParameterT< T >

List of all members.

Public Member Functions

 operator T () const
 Get the socket value.
TGetPointer ()
 Get a pointer to the payload data.
const Toperator= (const T value)
 Assignment.
const Toperator+= (const T value)
 Assignment by addition.
const Toperator-= (const T value)
 Assignment by subtraction.
const Toperator*= (const T value)
 Assignment by multiplication.
const Toperator/= (const T value)
 Assignment by division.
virtual const char * GetType ()
 Get the class type name.
virtual void Print (class Print &dest)
 Print the contents of the socket to the given print destination.
virtual void * GetPayload (int &size)
 Get the underlying data as raw memory.

Protected Attributes

T m_data

Detailed Description

template<class T>
class SocketT< T >

Sockets of various types.

Currently defined are:


Member Function Documentation

template<class T >
virtual void* SocketT< T >::GetPayload ( int &  size  )  [virtual]

Get the underlying data as raw memory.

Returns a pointer to the data and sets size to the size of the data

Reimplemented from Socket.

Reimplemented in ParameterT< T >.

template<class T >
T* SocketT< T >::GetPointer (  )  [inline]

Get a pointer to the payload data.

Returns a pointer to the underlying data type.

Reimplemented in ParameterT< T >.

template<class T >
virtual const char* SocketT< T >::GetType (  )  [virtual]

Get the class type name.

For example Socket8 would return "Socket8"

Reimplemented from Socket.

Reimplemented in ParameterT< T >.

template<class T >
SocketT< T >::operator T (  )  const [inline]

Get the socket value.

Reimplemented in ParameterT< T >.

template<class T >
const T& SocketT< T >::operator*= ( const T  value  )  [inline]

Assignment by multiplication.

Reimplemented in ParameterT< T >.

template<class T >
const T& SocketT< T >::operator+= ( const T  value  )  [inline]

Assignment by addition.

Reimplemented in ParameterT< T >.

template<class T >
const T& SocketT< T >::operator-= ( const T  value  )  [inline]

Assignment by subtraction.

Reimplemented in ParameterT< T >.

template<class T >
const T& SocketT< T >::operator/= ( const T  value  )  [inline]

Assignment by division.

Reimplemented in ParameterT< T >.

template<class T >
const T& SocketT< T >::operator= ( const T  value  )  [inline]

Assignment.

Reimplemented in ParameterT< T >.

template<class T >
virtual void SocketT< T >::Print ( class Print &  dest  )  [virtual]

Print the contents of the socket to the given print destination.

Reimplemented from Socket.

Reimplemented in ParameterT< T >.


Member Data Documentation

template<class T >
T SocketT< T >::m_data [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines