libwt  1.0.0
A C++ library for the continous wavelet transform.
Public Types | Public Member Functions | Protected Attributes | List of all members
wt::Container Class Reference

Base class of all container classes holding a managed reference to some Object. More...

#include <object.hh>

Inheritance diagram for wt::Container:
wt::Wavelet wt::Cauchy wt::Morlet

Public Types

typedef Object ObjectType
 Specifies the object type being held by the container class. More...
 

Public Member Functions

 Container ()
 Empty constructor. More...
 
 Container (Object *object)
 Packs the given object in a container. More...
 
 Container (const Container &other)
 Copy constructor. More...
 
virtual ~Container ()
 Destructor. More...
 
Containeroperator= (const Container &other)
 Assignment operator. More...
 
template<class T >
bool is ()
 Returns true if the object held by the container is of type T::ObjectType. More...
 
template<class T >
as ()
 Dynamic container cast. More...
 
bool isNull () const
 Returns true if the container is empty (null). More...
 

Protected Attributes

Object_object
 The object being managed. More...
 

Detailed Description

Base class of all container classes holding a managed reference to some Object.

Member Typedef Documentation

Specifies the object type being held by the container class.

Constructor & Destructor Documentation

Container::Container ( )

Empty constructor.

Container::Container ( Object object)

Packs the given object in a container.

The ownership of the object is taken.

Container::Container ( const Container other)

Copy constructor.

Container::~Container ( )
virtual

Destructor.

Member Function Documentation

template<class T >
T wt::Container::as ( )
inline

Dynamic container cast.

Retruns an empty container of type T if the cast fails.

template<class T >
bool wt::Container::is ( )
inline

Returns true if the object held by the container is of type T::ObjectType.

bool wt::Container::isNull ( ) const
inline

Returns true if the container is empty (null).

Container & Container::operator= ( const Container other)

Assignment operator.

Member Data Documentation

Object* wt::Container::_object
protected

The object being managed.


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