Audacity 3.2.0
Public Types | Public Member Functions | Public Attributes | List of all members
anonymous_namespace{CellularPanel.cpp}::Adaptor Struct Reference
Inheritance diagram for anonymous_namespace{CellularPanel.cpp}::Adaptor:
[legend]
Collaboration diagram for anonymous_namespace{CellularPanel.cpp}::Adaptor:
[legend]

Public Types

using SimpleCellVisitor = CellularPanel::SimpleCellVisitor
 
using SimpleNodeVisitor = CellularPanel::SimpleNodeVisitor
 

Public Member Functions

 Adaptor (const SimpleCellVisitor &function_)
 
 Adaptor (const SimpleNodeVisitor &function_, bool pre_)
 
void VisitCell (const wxRect &rect, TrackPanelCell &cell) override
 
void BeginGroup (const wxRect &rect, TrackPanelGroup &group) override
 
void EndGroup (const wxRect &rect, TrackPanelGroup &group) override
 
- Public Member Functions inherited from CellularPanel::Visitor
virtual ~Visitor ()
 
virtual void VisitCell (const wxRect &rect, TrackPanelCell &cell)
 
virtual void BeginGroup (const wxRect &rect, TrackPanelGroup &group)
 
virtual void EndGroup (const wxRect &rect, TrackPanelGroup &group)
 

Public Attributes

SimpleNodeVisitor function
 
const bool pre { false }
 
const bool post { false }
 

Detailed Description

Definition at line 1031 of file CellularPanel.cpp.

Member Typedef Documentation

◆ SimpleCellVisitor

using anonymous_namespace{CellularPanel.cpp}::Adaptor::SimpleCellVisitor = CellularPanel::SimpleCellVisitor

Definition at line 1032 of file CellularPanel.cpp.

◆ SimpleNodeVisitor

using anonymous_namespace{CellularPanel.cpp}::Adaptor::SimpleNodeVisitor = CellularPanel::SimpleNodeVisitor

Definition at line 1033 of file CellularPanel.cpp.

Constructor & Destructor Documentation

◆ Adaptor() [1/2]

anonymous_namespace{CellularPanel.cpp}::Adaptor::Adaptor ( const SimpleCellVisitor function_)
inline

Definition at line 1036 of file CellularPanel.cpp.

1037 : function{ [&](const wxRect &rect, TrackPanelNode &cell) {
1038 return function_( rect, static_cast<TrackPanelCell&>(cell) );
1039 } }
1040 {}
The TrackPanel is built up of nodes, subtrees of the CellularPanel's area Common base class for Track...

◆ Adaptor() [2/2]

anonymous_namespace{CellularPanel.cpp}::Adaptor::Adaptor ( const SimpleNodeVisitor function_,
bool  pre_ 
)
inline

Definition at line 1044 of file CellularPanel.cpp.

Member Function Documentation

◆ BeginGroup()

void anonymous_namespace{CellularPanel.cpp}::Adaptor::BeginGroup ( const wxRect &  rect,
TrackPanelGroup group 
)
inlineoverridevirtual

Reimplemented from CellularPanel::Visitor.

Definition at line 1049 of file CellularPanel.cpp.

1050 { if (pre) return function( rect, group ); }

◆ EndGroup()

void anonymous_namespace{CellularPanel.cpp}::Adaptor::EndGroup ( const wxRect &  rect,
TrackPanelGroup group 
)
inlineoverridevirtual

Reimplemented from CellularPanel::Visitor.

Definition at line 1051 of file CellularPanel.cpp.

1052 { if (post) return function( rect, group ); }

◆ VisitCell()

void anonymous_namespace{CellularPanel.cpp}::Adaptor::VisitCell ( const wxRect &  rect,
TrackPanelCell cell 
)
inlineoverridevirtual

Reimplemented from CellularPanel::Visitor.

Definition at line 1047 of file CellularPanel.cpp.

1048 { return function( rect, cell ); }

Member Data Documentation

◆ function

SimpleNodeVisitor anonymous_namespace{CellularPanel.cpp}::Adaptor::function

Definition at line 1054 of file CellularPanel.cpp.

◆ post

const bool anonymous_namespace{CellularPanel.cpp}::Adaptor::post { false }

Definition at line 1055 of file CellularPanel.cpp.

◆ pre

const bool anonymous_namespace{CellularPanel.cpp}::Adaptor::pre { false }

Definition at line 1055 of file CellularPanel.cpp.


The documentation for this struct was generated from the following file: