|
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 649 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 775 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 780 of file ReportDescriptor.hpp.
|
inline |
Remove (disable) all descriptors from this collection.
Definition at line 706 of file ReportDescriptor.hpp.
|
inline |
See if the given report descriptor name (ReportDescriptor::dest_file) exists in this collection
Definition at line 730 of file ReportDescriptor.hpp.
|
inline |
Add one report descriptor to this collection.
Definition at line 700 of file ReportDescriptor.hpp.

|
inline |
See if there are any enabled descriptors in this collection.
Definition at line 724 of file ReportDescriptor.hpp.

|
inline |
Iterator access.
Definition at line 785 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 790 of file ReportDescriptor.hpp.
|
inline |
Get all "dest_file" strings for the report descriptors that are enabled in this collection
Definition at line 764 of file ReportDescriptor.hpp.
|
inline |
Access a descriptor by the app::ReportDescriptor's "dest_file".
Definition at line 751 of file ReportDescriptor.hpp.
|
inline |
Add one report descriptor to this collection.
Definition at line 663 of file ReportDescriptor.hpp.
|
inline |
Remove (disable) one descriptor whose "dest_file" matches the given "desc_name" argument
Definition at line 758 of file ReportDescriptor.hpp.

|
inline |
Get the number of enabled descriptors in this collection.
Definition at line 713 of file ReportDescriptor.hpp.