Classes | Typedefs | Functions | Variables
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  MemoryTableEntry
struct  MemoryZone
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, bool owned, void *root_ptr)
static int memory_table_compare (void *a, void *b)
static st_index_t memory_table_hash (void *a)
static void memory_touch_all ()
static int memory_touch_i (volatile void *ptr, MemoryTableEntry *entry, st_data_t)
static MemoryZonememory_zone (VALUE ptr)
static VALUE memory_zone_address (VALUE self)
static VALUE memory_zone_invalidate (VALUE self)
static VALUE memory_zone_table_size (VALUE self)
static VALUE memory_zone_to_ptr (VALUE self)
static void memory_zone_unref (MemoryZone *ptr)
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 88 of file memory.cc.

typedef long st_index_t

Definition at line 32 of file memory.cc.

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

Definition at line 89 of file memory.cc.


Function Documentation

static VALUE memory_aref ( void *  ptr) [static]

Definition at line 195 of file memory.cc.

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

Definition at line 208 of file memory.cc.

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

Definition at line 26 of file memory.cc.

static st_index_t memory_table_hash ( void *  a) [static]

Definition at line 35 of file memory.cc.

static void memory_touch_all ( ) [static]

Definition at line 103 of file memory.cc.

static int memory_touch_i ( volatile void *  ptr,
MemoryTableEntry entry,
st_data_t   
) [static]

Definition at line 94 of file memory.cc.

static MemoryZone* memory_zone ( VALUE  ptr) [static]

Definition at line 307 of file memory.cc.

static VALUE memory_zone_address ( VALUE  self) [static]

Definition at line 316 of file memory.cc.

static VALUE memory_zone_invalidate ( VALUE  self) [static]

Definition at line 340 of file memory.cc.

static VALUE memory_zone_table_size ( VALUE  self) [static]

Definition at line 365 of file memory.cc.

static VALUE memory_zone_to_ptr ( VALUE  self) [static]

Definition at line 323 of file memory.cc.

static void memory_zone_unref ( MemoryZone ptr) [static]

Definition at line 129 of file memory.cc.

static VALUE string_to_memory_ptr ( VALUE  self) [static]

Definition at line 353 of file memory.cc.


Variable Documentation

VALUE cMemoryZone [static]

Definition at line 14 of file memory.cc.

Definition at line 91 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 53 of file memory.cc.

Definition at line 90 of file memory.cc.

st_table* MemoryTable [static]

Definition at line 21 of file memory.cc.



typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Sep 14 2015 15:08:18