#include <gridclientsimpletypehasheableobject.hpp>
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) |
Template class for GridHashealeObject for simple types like int_...
| GridSimpleTypeHasheable< T >::GridSimpleTypeHasheable | ( | const T & | pVal | ) | [inline, protected] |
Constructor.
| pVal | Value to hold. |
| virtual void GridSimpleTypeHasheable< T >::convertToBytes | ( | std::vector< int8_t > & | bytes | ) | const [inline, virtual] |
Converts contained object to byte vector.
| bytes | Vector to fill. |
Implements GridClientHasheableObject.
| static T GridSimpleTypeHasheable< T >::get | ( | const int8_t * | buffer, | |
| size_t | nBytes | |||
| ) | [inline, static] |
Converts a collection of bytes back to the requested type.
| buffer | Byte array. | |
| nBytes | Number of bytes to use in restoring value. |
| virtual bool GridSimpleTypeHasheable< T >::operator< | ( | const GridSimpleTypeHasheable< T > & | right | ) | const [inline, virtual] |
Compares with another object of this type.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const GridSimpleTypeHasheable< T > & | o | |||
| ) | [friend] |
Prints GridSimpleTypeHasheable to the output stream.
| out | Stream to output the object to. | |
| o | The object. |
1.7.1