A Data_Binder binds an object to data of some amount. More...
#include <Binary_IO.hh>
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. |
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.
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.
bindor | A reference to the Bindor_object being bound. |
data | A pointer to the data being bound. |
amount | The amount (bytes) of data being bound. |
Bindor_object& PIRL::Data_Binder< Bindor_object >::Bindor |
The object that is being bound.
Referenced by PIRL::operator<<(), and PIRL::operator>>().
char* PIRL::Data_Binder< Bindor_object >::Data [mutable] |
Pointer (char*) to the data being bound.
Referenced by PIRL::operator<<(), and PIRL::operator>>().
unsigned long PIRL::Data_Binder< Bindor_object >::Amount |
Amount (bytes) of data being bound.
Referenced by PIRL::operator<<(), and PIRL::operator>>().