Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends

GridSimpleTypeHasheable< T > Class Template Reference

#include <gridclientsimpletypehasheableobject.hpp>

Inheritance diagram for GridSimpleTypeHasheable< T >:
GridClientHasheableObject

List of all members.

Public Member Functions

virtual void convertToBytes (std::vector< int8_t > &bytes) const
virtual bool operator< (const GridSimpleTypeHasheable< T > &right) const

Static Public Member Functions

static T get (const int8_t *buffer, size_t nBytes)

Protected Member Functions

 GridSimpleTypeHasheable (const T &pVal)

Protected Attributes

T val

Friends

std::ostream & operator<< (std::ostream &out, const GridSimpleTypeHasheable< T > &o)

Detailed Description

template<class T>
class GridSimpleTypeHasheable< T >

Template class for GridHashealeObject for simple types like int_...


Constructor & Destructor Documentation

template<class T>
GridSimpleTypeHasheable< T >::GridSimpleTypeHasheable ( const T &  pVal  )  [inline, protected]

Constructor.

Parameters:
pVal Value to hold.

Member Function Documentation

template<class T>
virtual void GridSimpleTypeHasheable< T >::convertToBytes ( std::vector< int8_t > &  bytes  )  const [inline, virtual]

Converts contained object to byte vector.

Parameters:
bytes Vector to fill.

Implements GridClientHasheableObject.

template<class T>
static T GridSimpleTypeHasheable< T >::get ( const int8_t *  buffer,
size_t  nBytes 
) [inline, static]

Converts a collection of bytes back to the requested type.

Parameters:
buffer Byte array.
nBytes Number of bytes to use in restoring value.
Returns:
Restored value.
template<class T>
virtual bool GridSimpleTypeHasheable< T >::operator< ( const GridSimpleTypeHasheable< T > &  right  )  const [inline, virtual]

Compares with another object of this type.

Returns:
True if the right operand is greater than this object.

Friends And Related Function Documentation

template<class T>
std::ostream& operator<< ( std::ostream &  out,
const GridSimpleTypeHasheable< T > &  o 
) [friend]

Prints GridSimpleTypeHasheable to the output stream.

Parameters:
out Stream to output the object to.
o The object.

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