Public Member Functions | Protected Attributes

GridBoolHasheableObject Class Reference

#include <gridclientboolhasheableobject.hpp>

Inheritance diagram for GridBoolHasheableObject:
GridClientHasheableObject

List of all members.

Public Member Functions

 GridBoolHasheableObject (bool pVal)
virtual int32_t hashCode () const
virtual void convertToBytes (std::vector< int8_t > &opBytes) const

Protected Attributes

int32_t hashCode_
std::vector< int8_t > bytes

Detailed Description

Hashable object wrapping boolean value.


Constructor & Destructor Documentation

GridBoolHasheableObject::GridBoolHasheableObject ( bool  pVal  )  [inline]

Public constructor.

Parameters:
pVal Value to hold.

Member Function Documentation

virtual void GridBoolHasheableObject::convertToBytes ( std::vector< int8_t > &  opBytes  )  const [inline, virtual]

Converts contained object to byte vector.

Parameters:
bytes Vector to fill.

Implements GridClientHasheableObject.

virtual int32_t GridBoolHasheableObject::hashCode (  )  const [inline, virtual]

Return hash code for the contained value.

Returns:
Java-like boolean hash code.

Implements GridClientHasheableObject.


Member Data Documentation

std::vector<int8_t> GridBoolHasheableObject::bytes [protected]

Byte representation of the object.

Stored hash code.


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