Public Member Functions | Friends | List of all members
NumericAttribute Class Reference

#include <numeric.h>

Inheritance diagram for NumericAttribute:
Attribute

Public Member Functions

 NumericAttribute ()
 
 NumericAttribute (string name)
 
virtual int getSize () const
 
virtual void print (ostream &out=cout) const
 
- Public Member Functions inherited from Attribute
 Attribute ()
 
 Attribute (string name)
 
string getName () const
 
void setName (string name)
 

Friends

ostream & operator<< (ostream &out, const NumericAttribute &na)
 

Additional Inherited Members

- Protected Attributes inherited from Attribute
string name
 

Detailed Description

Stores information for a numeric attribute. A numeric attribute has a name. Its domain is the real numbers.

Author
Mark Maloof
Version
1.0, 5/18/11

Constructor & Destructor Documentation

NumericAttribute::NumericAttribute ( )

Default constructor.

NumericAttribute::NumericAttribute ( string  name)

Explicit constructor. Creates a numeric attribute set of the specified name.

Parameters
namethe name of this data set

Member Function Documentation

int NumericAttribute::getSize ( ) const
virtual

Gets the size of this numeric attribute's domain.

Returns
an int storing the size of the domain

Reimplemented from Attribute.

void NumericAttribute::print ( ostream &  out = cout) const
virtual

Prints this numeric attribute to the specified output stream.

Parameters
outthe output stream for printing

Reimplemented from Attribute.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const NumericAttribute na 
)
friend

Writes the specified numeric attribute to the output stream and returns it.

Parameters
outthe output stream for writing
nathe specified numeric attribute for writing
Returns
the modified output stream

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