|
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 588 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 714 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 719 of file ReportDescriptor.hpp.
|
inline |
Remove (disable) all descriptors from this collection.
Definition at line 645 of file ReportDescriptor.hpp.
|
inline |
See if the given report descriptor name (ReportDescriptor::dest_file) exists in this collection
Definition at line 669 of file ReportDescriptor.hpp.
|
inline |
Add one report descriptor to this collection.
Definition at line 639 of file ReportDescriptor.hpp.

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

|
inline |
Iterator access.
Definition at line 724 of file ReportDescriptor.hpp.
|
inline |
Iterator access.
Definition at line 729 of file ReportDescriptor.hpp.
|
inline |
Get all "dest_file" strings for the report descriptors that are enabled in this collection
Definition at line 703 of file ReportDescriptor.hpp.
|
inline |
Access a descriptor by the app::ReportDescriptor's "dest_file".
Definition at line 690 of file ReportDescriptor.hpp.
|
inline |
Add one report descriptor to this collection.
Definition at line 602 of file ReportDescriptor.hpp.
|
inline |
Remove (disable) one descriptor whose "dest_file" matches the given "desc_name" argument
Definition at line 697 of file ReportDescriptor.hpp.

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