Xrtti::Argument Class Reference

#include <Xrtti.h>

List of all members.

Public Member Functions

virtual ~Argument ()
bool operator== (const Argument &other) const
bool operator!= (const Argument &other) const
virtual const TypeGetType () const =0
virtual bool HasDefault () const =0
virtual const char * GetDefault () const =0


Detailed Description

************************************************************************** Argument represents a single argument in a constructor or function signature.

Constructor & Destructor Documentation

virtual Xrtti::Argument::~Argument (  )  [inline, virtual]


Member Function Documentation

bool Xrtti::Argument::operator== ( const Argument other  )  const

Equality operator - returns true if this object is "functionally equivalent" to [other]. The two objects don't have to be exactly identical, but do have to be identical in every meaningful way. Note also that this doesn't test for equality of any base class members; it is a test only at this level of the inheritence hierarcy. To test if an object is completely equals, including for all of its subclasses defined in the Xrtti hierarchy, you must cast this class to its most derived class and call that method.

Parameters:
other is the other object to compare against
Returns:
true if this object is functionally equal to the other, false if not

bool Xrtti::Argument::operator!= ( const Argument other  )  const [inline]

Inequality operator - returns false when the == operator would return true, and vice versa.

Parameters:
other is the other object to compare against
Returns:
false when the == operator would return true, and vice versa.

virtual const Type& Xrtti::Argument::GetType (  )  const [pure virtual]

Returns the type of the argument.

Returns:
the type of the argument.

virtual bool Xrtti::Argument::HasDefault (  )  const [pure virtual]

Returns true if the Argument has a default value, false if not.

Returns:
true if the Argument has a default value, false if not.

virtual const char* Xrtti::Argument::GetDefault (  )  const [pure virtual]

This returns a string representation of the default value for this Argument. This is the exact text as it would have appeared in the original source code defining the default value for this Argument

Returns:
a string representation of the default value for this Argument.


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

Generated on Sat Feb 14 22:48:49 2009 by  doxygen 1.5.7.1