memory.cc File Reference

#include "typelib.hh"
#include <typelib/value_ops.hh>
#include <ruby.h>
#include <st.h>
Include dependency graph for memory.cc:

Go to the source code of this file.

Classes

struct  RbMemoryLayout

Typedefs

typedef std::map< void const
*, void const * > 
MemoryTypes
typedef long st_index_t
typedef std::map< void const
*, RbMemoryLayout
TypeLayouts

Functions

static VALUE memory_aref (void *ptr)
static void memory_aset (void *ptr, VALUE obj)
static void memory_delete (void *ptr)
static int memory_table_compare (void *a, void *b)
static st_index_t memory_table_hash (void *a)
void memory_table_mark (void *ptr)
static void memory_unref (void *ptr)
static VALUE memory_zone_address (VALUE self)
static VALUE memory_zone_to_ptr (VALUE self)
static VALUE string_to_memory_ptr (VALUE self)

Variables

static VALUE cMemoryZone
TypeLayouts memory_layouts
static struct st_hash_type memory_table_type
MemoryTypes memory_types
static st_table * MemoryTable

Typedef Documentation

typedef std::map< void const*, void const* > MemoryTypes

Definition at line 69 of file memory.cc.

typedef long st_index_t

Definition at line 27 of file memory.cc.

typedef std::map< void const*, RbMemoryLayout > TypeLayouts

Definition at line 70 of file memory.cc.


Function Documentation

static VALUE memory_aref ( void *  ptr  )  [static]

Definition at line 111 of file memory.cc.

static void memory_aset ( void *  ptr,
VALUE  obj 
) [static]

Definition at line 125 of file memory.cc.

static void memory_delete ( void *  ptr  )  [static]

Definition at line 91 of file memory.cc.

static int memory_table_compare ( void *  a,
void *  b 
) [static]

Definition at line 21 of file memory.cc.

static st_index_t memory_table_hash ( void *  a  )  [static]

Definition at line 30 of file memory.cc.

void memory_table_mark ( void *  ptr  ) 

Definition at line 234 of file memory.cc.

static void memory_unref ( void *  ptr  )  [static]

Definition at line 75 of file memory.cc.

static VALUE memory_zone_address ( VALUE  self  )  [static]

Definition at line 206 of file memory.cc.

static VALUE memory_zone_to_ptr ( VALUE  self  )  [static]

Definition at line 213 of file memory.cc.

static VALUE string_to_memory_ptr ( VALUE  self  )  [static]

Definition at line 226 of file memory.cc.


Variable Documentation

VALUE cMemoryZone [static]

Definition at line 15 of file memory.cc.

Definition at line 72 of file memory.cc.

struct st_hash_type memory_table_type [static]
Initial value:
 {
    (int (*)())memory_table_compare,
    (int (*)())memory_table_hash
}

Definition at line 48 of file memory.cc.

Definition at line 71 of file memory.cc.

st_table* MemoryTable [static]

Definition at line 16 of file memory.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 09:36:47 2013