PIRL  PIRL++

Public Member Functions | Public Attributes

PIRL::Data_Binder< Bindor_object > Class Template Reference

A Data_Binder binds an object to data of some amount. More...

#include <Binary_IO.hh>

List of all members.

Public Member Functions

 Data_Binder (const Bindor_object &bindor, char *data, unsigned long amount)
 Constructs a Data_Binder that binds an object to data.

Public Attributes

Bindor_object & Bindor
 The object that is being bound.
char * Data
 Pointer (char*) to the data being bound.
unsigned long Amount
 Amount (bytes) of data being bound.

Detailed Description

template<typename Bindor_object>
class PIRL::Data_Binder< Bindor_object >

A Data_Binder binds an object to data of some amount.

A Data_Binder contains a reference to the bound object and the data location and amount bound to it. A Data_Binder is used to convey a relationship between some object and some data; typically as an intermediate, temporary object during the evaluation of a operation. For example, a stream manipulator can bind a stream to the data being manipulated.

Author:
Bradford Castalia, UA/PIRL, 12/03
Revision:
1.17

Constructor & Destructor Documentation

template<typename Bindor_object >
PIRL::Data_Binder< Bindor_object >::Data_Binder ( const Bindor_object &  bindor,
char *  data,
unsigned long  amount 
) [inline]

Constructs a Data_Binder that binds an object to data.

Parameters:
bindorA reference to the Bindor_object being bound.
dataA pointer to the data being bound.
amountThe amount (bytes) of data being bound.

Member Data Documentation

template<typename Bindor_object >
Bindor_object& PIRL::Data_Binder< Bindor_object >::Bindor

The object that is being bound.

Referenced by PIRL::operator<<(), and PIRL::operator>>().

template<typename Bindor_object >
char* PIRL::Data_Binder< Bindor_object >::Data [mutable]

Pointer (char*) to the data being bound.

Referenced by PIRL::operator<<(), and PIRL::operator>>().

template<typename Bindor_object >
unsigned long PIRL::Data_Binder< Bindor_object >::Amount

Amount (bytes) of data being bound.

Referenced by PIRL::operator<<(), and PIRL::operator>>().


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