Documented model::ParentTrack
This commit is contained in:
parent
e7481afc3d
commit
c0d0081677
2 changed files with 26 additions and 4 deletions
|
|
@ -34,18 +34,37 @@
|
||||||
namespace gui {
|
namespace gui {
|
||||||
namespace model {
|
namespace model {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ParentTrack is the abstract base class of all tracks that can parent
|
||||||
|
* children.
|
||||||
|
**/
|
||||||
class ParentTrack : public Track
|
class ParentTrack : public Track
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
**/
|
||||||
ParentTrack();
|
ParentTrack();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a read-only reference to the the list of child tracks.
|
||||||
|
**/
|
||||||
const std::list< boost::shared_ptr<Track> >&
|
const std::list< boost::shared_ptr<Track> >&
|
||||||
get_child_tracks() const;
|
get_child_tracks() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets read-write access to the list of child tracks.
|
||||||
|
**/
|
||||||
lumiera::observable_list< boost::shared_ptr<Track> >&
|
lumiera::observable_list< boost::shared_ptr<Track> >&
|
||||||
get_child_track_list();
|
get_child_track_list();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if this track can own any child tracks.
|
||||||
|
* @return Returns true because all classed derrived from ParentTrack
|
||||||
|
* can.
|
||||||
|
**/
|
||||||
bool can_host_children() const;
|
bool can_host_children() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -57,6 +76,9 @@ public:
|
||||||
bool remove_descendant_track(const boost::shared_ptr<Track> track);
|
bool remove_descendant_track(const boost::shared_ptr<Track> track);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
/**
|
||||||
|
* The internal list of child tracks of this paremt.
|
||||||
|
**/
|
||||||
lumiera::observable_list< boost::shared_ptr<Track> > tracks;
|
lumiera::observable_list< boost::shared_ptr<Track> > tracks;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ namespace model {
|
||||||
class ParentTrack;
|
class ParentTrack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The model representation of a track. This is the base class for all
|
* The model representation of a track. This is the abstract base class
|
||||||
* types of track that are implemented.
|
* for all types of track that are implemented.
|
||||||
**/
|
**/
|
||||||
class Track
|
class Track
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue