Classes | Typedefs | Functions | Variables
memory.cc File Reference
#include "typelib.hh"
#include <typelib/value_ops.hh>
#include <ruby.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 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 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 67 of file memory.cc.

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

Definition at line 68 of file memory.cc.


Function Documentation

static VALUE memory_aref ( void *  ptr) [static]

Definition at line 177 of file memory.cc.

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

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

static MemoryZone* memory_zone ( VALUE  ptr) [static]

Definition at line 289 of file memory.cc.

static VALUE memory_zone_address ( VALUE  self) [static]

Definition at line 298 of file memory.cc.

static VALUE memory_zone_invalidate ( VALUE  self) [static]

Definition at line 322 of file memory.cc.

static VALUE memory_zone_table_size ( VALUE  self) [static]

Definition at line 347 of file memory.cc.

static VALUE memory_zone_to_ptr ( VALUE  self) [static]

Definition at line 305 of file memory.cc.

static void memory_zone_unref ( MemoryZone ptr) [static]

Definition at line 110 of file memory.cc.

static VALUE string_to_memory_ptr ( VALUE  self) [static]

Definition at line 335 of file memory.cc.


Variable Documentation

VALUE cMemoryZone [static]

Definition at line 9 of file memory.cc.

Definition at line 70 of file memory.cc.

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

Definition at line 33 of file memory.cc.

Definition at line 69 of file memory.cc.

st_table* MemoryTable [static]

Definition at line 16 of file memory.cc.



typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Sat Jun 8 2019 18:49:22