1 #if !defined (__TRANSPARENTCOMPONENT_HPP)
2 #define __TRANSPARENTCOMPONENT_HPP
24 #if !defined(__COMMON_HPP)
28 #if !defined(__COMPONENT_HPP)
29 #include <Component.hpp>
32 #if !defined(__ITERATOR_HPP)
33 #include <Iterator.hpp>
36 #if !defined(__INVALIDCOMPOSITEEXCEPTION_HPP)
37 #include <InvalidCompositeException.hpp>
43 DECLARE_CLASS(InvalidCompositeException);
51 template<
class CompImpl>
111 return (*
this = aRef);
125 return !(*
this = aRef);
148 throw InvalidCompositeException(LOCATION);
163 throw InvalidCompositeException(LOCATION);
183 throw InvalidCompositeException(LOCATION);
200 throw InvalidCompositeException(LOCATION);
207 #endif // if !defined(__TRANSPARENTCOMPONENT_HPP)
A TransparentComponent is a templated Component whereas it declares the interface for the objects in ...
Definition: TransparentComponent.hpp:52
virtual void addComponent(CompImpl)
Interface for adding component children to a composition.
Definition: TransparentComponent.hpp:145
virtual Iterator< CompImpl > * createIterator(void)
Interface for creating an Iterator to iterate through the children of a composition.
Definition: TransparentComponent.hpp:180
virtual ~TransparentComponent(void)
Virtual Destructor.
Definition: TransparentComponent.hpp:81
A Component declares the interface for the objects in a composition and implements default behavior...
Definition: Component.hpp:42
virtual void destroyIterator(Iterator< CompImpl > *)
Interface for returning a created Iterator.
Definition: TransparentComponent.hpp:197
InvalidCompositeException is an exception that is usually thrown when a composite operation is attemp...
Definition: InvalidCompositeException.hpp:44
TransparentComponent & operator=(const TransparentComponent &)
Assignment operator overload.
Definition: TransparentComponent.hpp:95
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
TransparentComponent(void)
Default Constructor.
Definition: TransparentComponent.hpp:58
virtual void removeComponent(CompImpl)
Interface for removing component children from a composition.
Definition: TransparentComponent.hpp:160
Component(void)
Default Constructor.
Definition: Component.cpp:39
The Iterator provides a way to access the elements of an collection type sequentially without exposin...
Definition: Iterator.hpp:44