Drizzled Public API Documentation

drizzled::CopyField Class Reference

#include <copy_field.h>

Inheritance diagram for drizzled::CopyField:
drizzled::memory::SqlAlloc

List of all members.

Public Member Functions

void set (Field *to, Field *from, bool save)
void set (unsigned char *to, Field *from)

Static Public Member Functions

static void * operator new (size_t size)
static void * operator new (size_t size, Root *mem_root)
static void * operator new[] (size_t size)
static void * operator new[] (size_t size, Root *mem_root)
static void operator delete (void *, size_t)
static void operator delete (void *, Root *)
static void operator delete[] (void *, Root *)
static void operator delete[] (void *, size_t)

Public Attributes

unsigned char * from_ptr
unsigned char * to_ptr
unsigned char * from_null_ptr
unsigned char * to_null_ptr
bool * null_row
uint32_t from_bit
uint32_t to_bit
uint32_t from_length
uint32_t to_length
Fieldfrom_field
Fieldto_field
String tmp
void(* do_copy )(CopyField *)
void(* do_copy2 )(CopyField *)

Private Types

typedef void Copy_func (CopyField *)

Private Member Functions

Copy_funcget_copy_func (Field *to, Field *from)

Detailed Description

A class for quick copying data to fields

Definition at line 34 of file copy_field.h.


Member Typedef Documentation

typedef void drizzled::CopyField::Copy_func(CopyField *) [private]

Convenience definition of a copy function returned by get_copy_func.

Definition at line 40 of file copy_field.h.


Member Function Documentation

void drizzled::CopyField::set ( unsigned char *  to,
Field from 
)

copy of field to maybe null string. If field is null then the all bytes are set to 0. if field is not null then the first byte is set to 1 and the rest of the string is the field value. The 'to' buffer should have a size of field->pack_length()+1

Definition at line 553 of file field_conv.cc.

References drizzled::Field::null_bit, drizzled::Field::null_ptr, drizzled::Field::pack_length(), and drizzled::Field::ptr.


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