Represents a Value with an associated key or name.
More...
#include <Cell.h>

Public Member Functions | |
| Cell () | |
Initializes a newly created Cell object with default values: | |
| Cell (uint64_t nameOrKey, const Value &value) | |
Initializes a newly created Cell object with key and value specified by the input parameter. | |
| bool | operator== (const Cell &rhs) const |
Equality operator - compare two Cells for equality. | |
| bool | operator!= (const Cell &rhs) const |
Inequality operator - compare two Cells for inequality. | |
| void | setName (uint64_t name) |
| Set the name of the cell. | |
| uint64_t | getName () const |
| Return the name of the cell. | |
| void | setKey (uint64_t key) |
| Set the key of the cell. | |
| uint64_t | getKey () const |
| Return the key of the cell. | |
| void | setValue (const Value &value) |
| Set the value of the cell. | |
| Value | getValue () const |
| Return the value of the cell. | |
| std::string | toString () const |
Return a string representation of this Cell. | |
Private Attributes | |
| uint64_t | nameOrKey |
| A name or a key, depending on the context in which the cell appears. | |
| Value | value |
| The value of the cell. | |
Represents a Value with an associated key or name.
Definition at line 19 of file Cell.h.
| Cell::Cell | ( | ) |
| Cell::Cell | ( | uint64_t | nameOrKey, | |
| const Value & | value | |||
| ) |
| uint64_t Cell::getKey | ( | ) | const |
| uint64_t Cell::getName | ( | ) | const |
Return the name of the cell.
Definition at line 34 of file Cell.cpp.
References nameOrKey.
Referenced by Yosokumo::YosokumoProtobuf::makeProtobufCellFromCell().
| Value Cell::getValue | ( | ) | const |
Return the value of the cell.
Definition at line 54 of file Cell.cpp.
References value.
Referenced by Yosokumo::YosokumoProtobuf::makeProtobufCellFromCell().
| bool Cell::operator!= | ( | const Cell & | rhs | ) | const |
| bool Cell::operator== | ( | const Cell & | rhs | ) | const |
| void Cell::setKey | ( | uint64_t | key | ) |
| void Cell::setName | ( | uint64_t | name | ) |
Set the name of the cell.
| name | the new name to assign to the cell. |
Definition at line 29 of file Cell.cpp.
References nameOrKey.
Referenced by Yosokumo::YosokumoProtobuf::makeCellFromProtobufCell().
| void Cell::setValue | ( | const Value & | value | ) |
Set the value of the cell.
| value | the new value to assign to the cell. |
Definition at line 49 of file Cell.cpp.
Referenced by Yosokumo::YosokumoProtobuf::makeCellFromProtobufCell().
| std::string Cell::toString | ( | ) | const |
Return a string representation of this Cell.
Cell. Definition at line 75 of file Cell.cpp.
References nameOrKey, Yosokumo::Value::toString(), and value.
Referenced by Yosokumo::Specimen::toString(), and Yosokumo::CellBlock::toString().
uint64_t Yosokumo::Cell::nameOrKey [private] |
A name or a key, depending on the context in which the cell appears.
Definition at line 24 of file Cell.h.
Referenced by Cell(), getKey(), getName(), operator==(), setKey(), setName(), and toString().
Value Yosokumo::Cell::value [private] |
The value of the cell.
Definition at line 28 of file Cell.h.
Referenced by Cell(), getValue(), operator==(), and toString().
1.6.3