#include <numeric.h>
Public Member Functions | |
NumericAttribute () | |
NumericAttribute (string name) | |
virtual int | getSize () const |
virtual void | print (ostream &out=cout) const |
![]() | |
Attribute () | |
Attribute (string name) | |
string | getName () const |
void | setName (string name) |
Friends | |
ostream & | operator<< (ostream &out, const NumericAttribute &na) |
Additional Inherited Members | |
![]() | |
string | name |
Stores information for a numeric attribute. A numeric attribute has a name. Its domain is the real numbers.
NumericAttribute::NumericAttribute | ( | ) |
Default constructor.
NumericAttribute::NumericAttribute | ( | string | name | ) |
Explicit constructor. Creates a numeric attribute set of the specified name.
name | the name of this data set |
|
virtual |
Gets the size of this numeric attribute's domain.
Reimplemented from Attribute.
|
virtual |
Prints this numeric attribute to the specified output stream.
out | the output stream for printing |
Reimplemented from Attribute.
|
friend |
Writes the specified numeric attribute to the output stream and returns it.
out | the output stream for writing |
na | the specified numeric attribute for writing |