![]() |
Trax3 3.1.0
trax track library
|
Collection to hold a set of Track objects. More...
#include <C:/Trend/Development/Trax3/Code/trax/collections/TrackCollection.h>

Public Member Functions | |
| virtual void | SetFrame (const spat::Frame< Length, One > &frame) noexcept=0 |
| Sets the frame of references for this TrackCollection relative to the Module. | |
| virtual const spat::Frame< Length, One > & | GetFrame () const noexcept=0 |
| Gets the frame of references for this TrackCollection relative to the Module. | |
| Public Member Functions inherited from trax::Collection< TrackCollection, TrackBuilder > | |
| virtual const char * | TypeName () const noexcept=0 |
| virtual bool | IsValid () const noexcept=0 |
| Checks whether the elements in this collection are valid. | |
| virtual IDType | Add (std::shared_ptr< TrackBuilder > pValue_Type)=0 |
| Adds an element to the container and returns its index in the container. | |
| virtual IDType | AddRelaxed (std::shared_ptr< TrackBuilder > pTraxType)=0 |
| Adds an element to the container and returns its index in the container. Does not throw. | |
| virtual bool | Remove (TrackBuilder *pValue_Type, bool zeroIDs=false)=0 |
| Removes an element from this container. | |
| virtual int | Take (TrackCollection &collection_Type)=0 |
| Moves all the items from another container to this container. | |
| virtual void | Clear ()=0 |
| Removes all the elements from this container. | |
| virtual int | Count () const=0 |
| virtual iterator | begin ()=0 |
| virtual const_iterator | cbegin () const=0 |
| virtual iterator | end ()=0 |
| virtual const_iterator | cend () const=0 |
| virtual std::shared_ptr< TrackBuilder > | GetFirst () const=0 |
| virtual std::shared_ptr< TrackBuilder > | GetNext (const std::shared_ptr< TrackBuilder > &pValue_Type) const=0 |
| virtual std::shared_ptr< TrackBuilder > | GetLast () const=0 |
| virtual std::shared_ptr< TrackBuilder > | GetPrevious (const std::shared_ptr< TrackBuilder > &pValue_Type) const=0 |
| virtual void | PushActive (IDType id)=0 |
| Pushes an element on the activety stack. | |
| virtual void | PopActive ()=0 |
| Pops an element from the activity stack. | |
| virtual std::shared_ptr< TrackBuilder > | GetActive () const=0 |
| virtual void | ShiftIDs (int offset)=0 |
| Adds an offset to all ids. | |
| virtual IDType | MaxID () const=0 |
| virtual IDType | MinID () const=0 |
| Collection (const Collection &)=delete | |
| Collection & | operator= (const Collection &)=delete |
| virtual std::shared_ptr< TrackBuilder > | Get (IDType id) const=0 |
| virtual bool | IsMember (const value_type &item) const=0 |
| Public Member Functions inherited from trax::Identified< TrackCollection > | |
| virtual const std::string & | Reference (const std::string &name) const=0 |
| Gets a reference that was set for this object by name. | |
| virtual const std::vector< char const * > & | ReferenceNames (const std::string &namePart) const=0 |
| Searches for all reference names that countain namePart as substring in the name. | |
| virtual IDType | ID () const noexcept=0 |
| Identified (const Identified &)=delete | |
| Identified & | operator= (const Identified &)=delete |
Static Public Member Functions | |
| static dclspc std::unique_ptr< TrackCollection > | Make () noexcept |
| Makes a standard TrackCollection object. | |
Additional Inherited Members | |
| Public Types inherited from trax::Collection< TrackCollection, TrackBuilder > | |
| using | iterator |
| using | const_iterator |
| using | collection_type |
| using | value_type |
| Protected Member Functions inherited from trax::Collection< TrackCollection, TrackBuilder > | |
| virtual void | SetDecorator (TrackCollection *pCollection_TypeDecorator)=0 |
| Protected Attributes inherited from trax::Collection< TrackCollection, TrackBuilder > | |
| friend | Decorator< Collection_Type > |
Collection to hold a set of Track objects.
|
pure virtualnoexcept |
Gets the frame of references for this TrackCollection relative to the Module.
Implemented in trax::TrackCollectionDecorator.
|
pure virtualnoexcept |
Sets the frame of references for this TrackCollection relative to the Module.
The tracks added to this collection will give Module relative coordinates on transition, so this frame is included in the calculations.
Implemented in trax::TrackCollectionDecorator.