$search

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  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 VALUE memory_zone_address (VALUE self)
static VALUE memory_zone_table_size (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 82 of file memory.cc.

typedef long st_index_t

Definition at line 26 of file memory.cc.

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

Definition at line 83 of file memory.cc.


Function Documentation

static VALUE memory_aref ( void *  ptr  )  [static]

Definition at line 167 of file memory.cc.

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

Definition at line 180 of file memory.cc.

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

Definition at line 20 of file memory.cc.

static st_index_t memory_table_hash ( void *  a  )  [static]

Definition at line 29 of file memory.cc.

static void memory_touch_all (  )  [static]

Definition at line 97 of file memory.cc.

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

Definition at line 88 of file memory.cc.

static VALUE memory_zone_address ( VALUE  self  )  [static]

Definition at line 285 of file memory.cc.

static VALUE memory_zone_table_size ( VALUE  self  )  [static]

Definition at line 321 of file memory.cc.

static VALUE memory_zone_to_ptr ( VALUE  self  )  [static]

Definition at line 292 of file memory.cc.

static VALUE string_to_memory_ptr ( VALUE  self  )  [static]

Definition at line 309 of file memory.cc.


Variable Documentation

VALUE cMemoryZone [static]

Definition at line 14 of file memory.cc.

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

Definition at line 84 of file memory.cc.

st_table* MemoryTable [static]

Definition at line 15 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 Mar 1 16:29:00 2013