Public Member Functions | Protected Attributes

GridStringHasheableObject Class Reference

#include <gridclientstringhasheableobject.hpp>

Inheritance diagram for GridStringHasheableObject:
GridClientHasheableObject

List of all members.

Public Member Functions

 GridStringHasheableObject (const std::string &s)
virtual int32_t hashCode () const
virtual void convertToBytes (std::vector< int8_t > &bytes) const
virtual bool operator< (const GridStringHasheableObject &right) const

Protected Attributes

std::string str

Detailed Description

Provide the implementation of hash-code for the string object.


Constructor & Destructor Documentation

GridStringHasheableObject::GridStringHasheableObject ( const std::string &  s  ) 

Public constructor.

Parameters:
s Value to hold.

Member Function Documentation

void GridStringHasheableObject::convertToBytes ( std::vector< int8_t > &  bytes  )  const [virtual]

Converts contained object to byte vector.

Parameters:
bytes Vector to fill.

Implements GridClientHasheableObject.

int32_t GridStringHasheableObject::hashCode (  )  const [virtual]

Calculates hash code for the contained object.

Returns:
Hash code.

Implements GridClientHasheableObject.

virtual bool GridStringHasheableObject::operator< ( const GridStringHasheableObject &  right  )  const [inline, virtual]

Compares with another object of this type.

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

Member Data Documentation

std::string GridStringHasheableObject::str [protected]

Wrapped value.


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