The Sparta Modeling Framework
|
Container class for any number of ArchData pointers owned externally. More...
#include <ArchDataContainer.hpp>
Public Member Functions | |
std::vector< ArchData * > | getAssociatedArchDatas () |
Retrieves all ArchDatas associated with this TreeNode so that children can use it to allocate their data. | |
const std::vector< ArchData * > | getAssociatedArchDatas () const |
Const variant of getAssociatedArchDatas. | |
virtual std::string | getLocation () const =0 |
ArchDataContainer ()=default | |
Default constructor. | |
ArchDataContainer (ArchDataContainer &)=delete | |
Copy construction disabled. | |
ArchDataContainer (ArchDataContainer &&)=default | |
Move constructor. | |
virtual | ~ArchDataContainer () |
Virtual destructor. | |
Friends | |
class | ArchData |
ArchData must be able to invoke associateArchData_ and disassociateArchData_ methods during construction and destruction. | |
Container class for any number of ArchData pointers owned externally.
Provides methods for adding and removing these ArchDatas
Definition at line 25 of file ArchDataContainer.hpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 83 of file ArchDataContainer.hpp.
|
inline |
Retrieves all ArchDatas associated with this TreeNode so that children can use it to allocate their data.
Invokes sparta::TreeNode::getLocalArchData_ to actually get the ArchData.
This method exists as a non-virtual protected member so that subclasses can call it but non-TreeNodes cannot. Subclasses cannot call getLocalArchData_ directly because it is virtual.
Definition at line 49 of file ArchDataContainer.hpp.
|
inline |
Const variant of getAssociatedArchDatas.
Definition at line 56 of file ArchDataContainer.hpp.
|
pure virtual |
Implemented in sparta::TreeNode.
|
friend |
ArchData must be able to invoke associateArchData_ and disassociateArchData_ methods during construction and destruction.
Definition at line 33 of file ArchDataContainer.hpp.