visitor_pattern::ObjectStructure

class ObjectStructure

ObjectStructure manages a collection of elements.

Public Functions

inline void addElement(std::shared_ptr<Element> element)

Add an element to the structure.

Parameters:

element – The Element to add.

inline void accept(const Visitor &visitor) const

Accept a visitor for all elements.

Parameters:

visitor – The Visitor to accept.