Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

MRAcspec Class Reference

#include <MRAcspec.h>

Collaboration diagram for MRAcspec:

Collaboration graph
[legend]

Public Member Functions

MRAcspeccopy (const MRAcspec &)
bool is_equal (const MRAcspec &)
 MRAcspec (const MRAcspec &)
 MRAcspec ()
bool operator!= (const MRAcspec &rhs)
MRAcspecoperator() (const MRAcspec &)
MRAcspecoperator<< (BufferBase &)
MRAcspecoperator= (const MRAcspec &)
bool operator== (const MRAcspec &rhs)
MRAcspecoperator>> (BufferBase &)
void read (ostream &)
void read (BufferBase &)
void report (ostream &os=cout)
int sizeb ()
void write (istream &)
void write (BufferBase &)

Data Fields

MRAcrange cexist
MRAcrange ctheory
MRAcrange cthis

Friends

ostream & operator<< (ostream &, MRAcspec &)
BufferBaseoperator<< (BufferBase &, MRAcspec &)
istream & operator>> (istream &, MRAcspec &)
BufferBaseoperator>> (BufferBase &, MRAcspec &)

Constructor & Destructor Documentation

MRAcspec.MRAcspec  ) 
 

Definition at line 27 of file MRAcspec.h.

00027 {}

MRAcspec::MRAcspec const MRAcspec  ) 
 

Definition at line 60 of file MRAcspec.h.

00061   : cthis(cspec.cthis), cexist(cspec.cexist), ctheory(cspec.ctheory)
00062 {}


Member Function Documentation

MRAcspec & MRAcspec::copy const MRAcspec  ) 
 

Definition at line 74 of file MRAcspec.h.

References cexist, ctheory, and cthis.

Referenced by operator=().

00075 {
00076    cthis = cspec.cthis;
00077    cexist = cspec.cexist;
00078    ctheory = cspec.ctheory;
00079    return *this;
00080 }

bool MRAcspec::is_equal const MRAcspec  ) 
 

Definition at line 86 of file MRAcspec.h.

References cexist, MRAcrange.cmax, MRAcrange.cmin, ctheory, and cthis.

Referenced by operator!=(), and operator==().

00087 {
00088    if ( cthis.cmin != cspec.cthis.cmin ) return false;
00089    if ( cthis.cmax != cspec.cthis.cmax ) return false;
00090    if ( cexist.cmin != cspec.cexist.cmin ) return false;
00091    if ( cexist.cmax != cspec.cexist.cmax ) return false;
00092    if ( ctheory.cmin != cspec.ctheory.cmin ) return false;
00093    if ( ctheory.cmax != cspec.ctheory.cmax ) return false;
00094    return true;
00095 }

bool MRAcspec::operator!= const MRAcspec rhs  ) 
 

Definition at line 101 of file MRAcspec.h.

References is_equal().

00101 { return !is_equal(rhs); }

MRAcspec & MRAcspec::operator() const MRAcspec  ) 
 

Definition at line 65 of file MRAcspec.h.

References cexist, ctheory, and cthis.

00066 { 
00067    cthis = cspec.cthis; 
00068    cexist = cspec.cexist; 
00069    ctheory = cspec.ctheory; 
00070    return *this;
00071 }

MRAcspec & MRAcspec::operator<< BufferBase  ) 
 

Definition at line 134 of file MRAcspec.h.

References write().

00135 {
00136    write(buffer);
00137    return *this;
00138 }

MRAcspec & MRAcspec::operator= const MRAcspec  ) 
 

Definition at line 83 of file MRAcspec.h.

References copy().

00083 { return copy(rhs); }

bool MRAcspec::operator== const MRAcspec rhs  ) 
 

Definition at line 98 of file MRAcspec.h.

References is_equal().

00098 { return is_equal(rhs); }

MRAcspec & MRAcspec::operator>> BufferBase  ) 
 

Definition at line 156 of file MRAcspec.h.

References read().

00157 {
00158    read(buffer);
00159    return *this;
00160 }

void MRAcspec::read ostream &   ) 
 

Definition at line 178 of file MRAcspec.h.

References cexist, ctheory, and cthis.

00179 {
00180 //   bytepack bp;
00181 //   os << bp( cthis.cmin, 1 );
00182 //   os << bp( cthis.cmin, 1 );
00183 //   os << bp( cexist.cmin, 1 );
00184 //   os << bp( cexist.cmin, 1 );
00185 //   os << bp( ctheory.cmin, 1 );
00186 //   os << bp( ctheory.cmin, 1 );
00187    os << cthis;
00188    os << cexist;
00189    os << ctheory;
00190 }

void MRAcspec::read BufferBase  ) 
 

Definition at line 141 of file MRAcspec.h.

References cexist, ctheory, and cthis.

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

00142 {
00143 //   bytepack bp;
00144 //   buffer << bp( cthis.cmin, 1 );
00145 //   buffer << bp( cthis.cmin, 1 );
00146 //   buffer << bp( cexist.cmin, 1 );
00147 //   buffer << bp( cexist.cmin, 1 );
00148 //   buffer << bp( ctheory.cmin, 1 );
00149 //   buffer << bp( ctheory.cmin, 1 );
00150    buffer << cthis;
00151    buffer << cexist;
00152    buffer << ctheory;
00153 }

void MRAcspec::report ostream &  os = cout  ) 
 

Definition at line 107 of file MRAcspec.h.

References cexist, ctheory, cthis, and MRAcrange.report().

Referenced by MCFTPrequest.report(), and MCFTPquote.report().

00107                                    {
00108    os << "MRAcspec::report(){\n";
00109    os << "cthis =\n";
00110    cthis.report();
00111    os << "cexist =\n";
00112    cexist.report();
00113    os << "ctheory =\n";
00114    ctheory.report();
00115    os << "}\n";
00116 }

int MRAcspec::sizeb  ) 
 

Definition at line 104 of file MRAcspec.h.

References cexist, ctheory, cthis, and MRAcrange.sizeb().

Referenced by MRAsbBase.hdrsizeb(), MCFTPrequest.sizeb(), and MCFTPquote.sizeb().

00104 { return cthis.sizeb() +cexist.sizeb() +ctheory.sizeb();}

void MRAcspec::write istream &   ) 
 

Definition at line 163 of file MRAcspec.h.

References cexist, ctheory, and cthis.

00164 {
00165 //   bytepack bp;
00166 //   is >> bp( 0, 1 ); cthis.cmin = int(bp);
00167 //   is >> bp( 0, 1 ); cthis.cmax = int(bp);
00168 //   is >> bp( 0, 1 ); cexist.cmin = int(bp);
00169 //   is >> bp( 0, 1 ); cexist.cmax = int(bp);
00170 //   is >> bp( 0, 1 ); ctheory.cmin = int(bp);
00171 //   is >> bp( 0, 1 ); ctheory.cmax = int(bp);
00172    is >> cthis;
00173    is >> cexist;
00174    is >> ctheory;
00175 }

void MRAcspec::write BufferBase  ) 
 

Definition at line 119 of file MRAcspec.h.

References cexist, ctheory, and cthis.

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

00120 {
00121 //   bytepack bp;
00122 //   buffer >> bp( 0, 1 ); cthis.cmin = int(bp);
00123 //   buffer >> bp( 0, 1 ); cthis.cmax = int(bp);
00124 //   buffer >> bp( 0, 1 ); cexist.cmin = int(bp);
00125 //   buffer >> bp( 0, 1 ); cexist.cmax = int(bp);
00126 //   buffer >> bp( 0, 1 ); ctheory.cmin = int(bp);
00127 //   buffer >> bp( 0, 1 ); ctheory.cmax = int(bp);
00128    buffer >> cthis;
00129    buffer >> cexist;
00130    buffer >> ctheory;
00131 }


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
MRAcspec cspec
[friend]
 

Definition at line 217 of file MRAcspec.h.

00218 {
00219    cspec.read(os);
00220    return os;
00221 }

BufferBase& operator<< BufferBase buffer,
MRAcspec cspec
[friend]
 

Definition at line 203 of file MRAcspec.h.

00204 {
00205    cspec.read(buffer);
00206    return buffer;
00207 }

istream& operator>> istream &  is,
MRAcspec cspec
[friend]
 

Definition at line 210 of file MRAcspec.h.

00211 {
00212    cspec.write(is);
00213    return is;
00214 }

BufferBase& operator>> BufferBase buffer,
MRAcspec cspec
[friend]
 

Definition at line 196 of file MRAcspec.h.

00197 {
00198    cspec.write(buffer);
00199    return buffer;
00200 }


Field Documentation

MRAcrange MRAcspec.cexist
 

Definition at line 25 of file MRAcspec.h.

Referenced by copy(), is_equal(), MRAsbObject.MRAsbObject(), MRAsbObject.operator()(), operator()(), read(), report(), MRAsbBase.set_cspec(), MCFTPrequest.set_cspec(), MCFTPquote.set_cspec(), sizeb(), MRAsbObject.synchronize(), and write().

MRAcrange MRAcspec.ctheory
 

Definition at line 25 of file MRAcspec.h.

Referenced by copy(), is_equal(), MRAsbObject.MRAsbObject(), MRAsbObject.operator()(), operator()(), read(), report(), MRAsbBase.set_cspec(), MCFTPrequest.set_cspec(), MCFTPquote.set_cspec(), sizeb(), MRAsbObject.synchronize(), and write().

MRAcrange MRAcspec.cthis
 

Definition at line 25 of file MRAcspec.h.

Referenced by MRAsbObject.append(), MRAsbBase.append(), MRAsbBase.copy(), copy(), MRAsbObject.create_clone(), is_equal(), MRAsbObject.MRAsbObject(), MRAsbObject.operator()(), operator()(), read(), report(), MRAsbObject.set_cpart(), MRAsbBase.set_cspec(), MCFTPrequest.set_cspec(), MCFTPquote.set_cspec(), MRAsbObject.set_empty(), sizeb(), MRAsbObject.store(), and write().


The documentation for this class was generated from the following file:
Generated on Mon May 31 21:41:24 2004 for SR2k4 Assembler by doxygen 1.3.6