0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Hypertable::TableIdentifierManaged Class Reference

Wrapper for TableIdentifier providing member storage. More...

#include <TableIdentifier.h>

Inheritance diagram for Hypertable::TableIdentifierManaged:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::TableIdentifierManaged:
Collaboration graph
[legend]

Public Member Functions

 TableIdentifierManaged ()
 
 TableIdentifierManaged (const TableIdentifierManaged &identifier)
 
 TableIdentifierManaged (const TableIdentifier &identifier)
 
virtual ~TableIdentifierManaged ()
 
TableIdentifierManagedoperator= (const TableIdentifierManaged &other)
 
TableIdentifierManagedoperator= (const TableIdentifier &identifier)
 
void set_id (const std::string &new_name)
 
void set_id (const char *new_name)
 
const std::string & get_id () const
 
- Public Member Functions inherited from Hypertable::TableIdentifier
 TableIdentifier ()
 
 TableIdentifier (const char *s)
 
virtual ~TableIdentifier ()
 
bool operator== (const TableIdentifier &other) const
 
bool operator!= (const TableIdentifier &other) const
 
bool operator< (const TableIdentifier &other) const
 
bool is_metadata () const
 
bool is_system () const
 
bool is_user () const
 
int32_t index () const
 
- Public Member Functions inherited from Hypertable::Serializable
virtual size_t encoded_length () const
 Returns serialized object length. More...
 
virtual void encode (uint8_t **bufp) const
 Writes serialized representation of object to a buffer. More...
 
virtual void decode (const uint8_t **bufp, size_t *remainp)
 Reads serialized representation of object from a buffer. More...
 

Private Member Functions

void decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override
 Reads serialized representation of object from a buffer. More...
 

Private Attributes

std::string m_name
 

Additional Inherited Members

- Public Attributes inherited from Hypertable::TableIdentifier
const char * id
 
int64_t generation
 
- Static Public Attributes inherited from Hypertable::TableIdentifier
static const char * METADATA_ID = "0/0"
 
static const char * METADATA_NAME = "sys/METADATA"
 
static const int METADATA_ID_LENGTH = 3
 
- Protected Member Functions inherited from Hypertable::TableIdentifier
uint8_t encoding_version () const override
 Returns encoding version. More...
 
size_t encoded_length_internal () const override
 Returns internal serialized length. More...
 
void encode_internal (uint8_t **bufp) const override
 Writes serialized representation of object to a buffer. More...
 

Detailed Description

Wrapper for TableIdentifier providing member storage.

Definition at line 98 of file TableIdentifier.h.

Constructor & Destructor Documentation

Hypertable::TableIdentifierManaged::TableIdentifierManaged ( )
inline

Definition at line 100 of file TableIdentifier.h.

Hypertable::TableIdentifierManaged::TableIdentifierManaged ( const TableIdentifierManaged identifier)
inline

Definition at line 101 of file TableIdentifier.h.

Hypertable::TableIdentifierManaged::TableIdentifierManaged ( const TableIdentifier identifier)
inline

Definition at line 104 of file TableIdentifier.h.

virtual Hypertable::TableIdentifierManaged::~TableIdentifierManaged ( )
inlinevirtual

Definition at line 107 of file TableIdentifier.h.

Member Function Documentation

void TableIdentifierManaged::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Reads serialized representation of object from a buffer.

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized object remaining
See also
encode_internal() for encoding format

Reimplemented from Hypertable::TableIdentifier.

Definition at line 105 of file TableIdentifier.cc.

const std::string& Hypertable::TableIdentifierManaged::get_id ( ) const
inline

Definition at line 134 of file TableIdentifier.h.

TableIdentifierManaged& Hypertable::TableIdentifierManaged::operator= ( const TableIdentifierManaged other)
inline

Definition at line 108 of file TableIdentifier.h.

TableIdentifierManaged& Hypertable::TableIdentifierManaged::operator= ( const TableIdentifier identifier)
inline

Definition at line 112 of file TableIdentifier.h.

void Hypertable::TableIdentifierManaged::set_id ( const std::string &  new_name)
inline

Definition at line 124 of file TableIdentifier.h.

void Hypertable::TableIdentifierManaged::set_id ( const char *  new_name)
inline

Definition at line 129 of file TableIdentifier.h.

Member Data Documentation

std::string Hypertable::TableIdentifierManaged::m_name
private

Definition at line 149 of file TableIdentifier.h.


The documentation for this class was generated from the following files: