class ElemAny

Generic Element wrapper for existing classes. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Public Members


Detailed Description

Classes being wrapped need to provide a str() method and must have a c-style string constructor. They also must support various relational operators such as ==.

ElemInitError (class)

ElemInitError

static const char* id

id

 ElemAny ()

ElemAny

 ElemAny (const T& val)

ElemAny

 ElemAny (const char* c_str)

ElemAny

If the c-style constructor of the wrapped class throws and exception, it is caught and an ElemInitError exception is thrown. The original exception is lost.

bool  operator== (const ElemAny<T>& rhs)

operator==

[const]

Invokes the == operator on the actual classes being wrapped.

Parameters:

rhselement to compare with.

Returns: whether the two values are equal.

string  str ()

str

[const]

Invokes the str() method of the actual class being wrapped.

Returns: string representation of element.

Reimplemented from Element.

const T&  val ()

val

[const]

Returns: the actual object of the class being wrapped.


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:12 2005, using kdoc $.