The Sparta Modeling Framework
|
This collection of ReportDescriptors is designed to never deallocate memory once it has been allocated. References returned by the 'getDescriptorByName()' method are guaranteed to be valid for the life of this collection object. More...
#include <ReportDescriptor.hpp>
Public Member Functions | |
ReportDescriptorCollection (const ReportDescriptorCollection &)=delete | |
ReportDescriptorCollection & | operator= (const ReportDescriptorCollection &)=delete |
ReportDescriptorCollection (ReportDescriptorCollection &&)=default | |
ReportDescriptorCollection & | operator= (ReportDescriptorCollection &&)=default |
void | push_back (const ReportDescriptor &rd) |
Add one report descriptor to this collection. | |
template<class... Args> | |
void | emplace_back (Args &&... args) |
Add one report descriptor to this collection. | |
void | clear () |
Remove (disable) all descriptors from this collection. | |
size_t | size () const |
Get the number of enabled descriptors in this collection. | |
bool | empty () const |
See if there are any enabled descriptors in this collection. | |
bool | contains (const std::string &desc_name) const |
ReportDescriptor & | getDescriptorByName (const std::string &desc_name) |
Access a descriptor by the app::ReportDescriptor's "dest_file". | |
void | removeDescriptorByName (const std::string &desc_name) |
std::vector< std::string > | getAllDescriptorNames () const |
std::deque< ReportDescriptor >::iterator | begin () |
Iterator access. | |
std::deque< ReportDescriptor >::const_iterator | begin () const |
Iterator access. | |
std::deque< ReportDescriptor >::iterator | end () |
Iterator access. | |
std::deque< ReportDescriptor >::const_iterator | end () const |
Iterator access. | |
This collection of ReportDescriptors is designed to never deallocate memory once it has been allocated. References returned by the 'getDescriptorByName()' method are guaranteed to be valid for the life of this collection object.
If you want to "remove" a descriptor from the collection, call the 'removeDescriptorByName()' method.
Definition at line 647 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 773 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 778 of file ReportDescriptor.hpp.
|
inline |
Remove (disable) all descriptors from this collection.
Definition at line 704 of file ReportDescriptor.hpp.
|
inline |
See if the given report descriptor name (ReportDescriptor::dest_file) exists in this collection
Definition at line 728 of file ReportDescriptor.hpp.
|
inline |
Add one report descriptor to this collection.
Definition at line 698 of file ReportDescriptor.hpp.
|
inline |
See if there are any enabled descriptors in this collection.
Definition at line 722 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 783 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 788 of file ReportDescriptor.hpp.
|
inline |
Get all "dest_file" strings for the report descriptors that are enabled in this collection
Definition at line 762 of file ReportDescriptor.hpp.
|
inline |
Access a descriptor by the app::ReportDescriptor's "dest_file".
Definition at line 749 of file ReportDescriptor.hpp.
|
inline |
Add one report descriptor to this collection.
Definition at line 661 of file ReportDescriptor.hpp.
|
inline |
Remove (disable) one descriptor whose "dest_file" matches the given "desc_name" argument
Definition at line 756 of file ReportDescriptor.hpp.
|
inline |
Get the number of enabled descriptors in this collection.
Definition at line 711 of file ReportDescriptor.hpp.