data_ref_holder Class Reference

data_ref_holder acts like a reference to a data_holder More...

#include <mtx/datablock.h>

Inheritance diagram for data_ref_holder:

Inheritance graph
Collaboration diagram for data_ref_holder:

Collaboration graph

List of all members.

Public Types

enum  init_policy { ZEROS, NO_INIT }
enum  storage_policy { COPY, BORROW, REFER }

Public Member Functions

 data_ref_holder (data_holder *ref)
 Construct with a pointee.
 data_ref_holder (const data_ref_holder &other)
 Copy constructor.
 ~data_ref_holder ()
void swap (data_ref_holder &other)
 Swap contents with another data_ref_holder.
const double * storage () const
 Get a pointer to const underlying data.
double * storage_nc ()
 Get a pointer to non-const underlying data.
int storage_length () const
 Get the allocated length of underlying data array.

Detailed Description

data_ref_holder acts like a reference to a data_holder

Definition at line 185 of file datablock.h.

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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:54:01 2008 by Doxygen version 1.5.5.