/dports/audio/vimpc/vimpc-0.09.2/src/ |
H A D | buffers.cpp | 65 Mpc::Playlist & Main::Playlist() in Playlist() 127 Mpc::Playlist & Main::PlaylistTmp() in PlaylistTmp() 136 Mpc::Browse & Main::Browse() in Browse() 145 Mpc::Library & Main::Library() in Library() 158 Mpc::Directory & Main::Directory() in Directory() 175 Mpc::Lists & Main::FileLists() in FileLists() 179 f_buffer = new Mpc::Lists(); in FileLists() 188 Mpc::Lists & Main::MpdLists() in MpdLists() 192 m_buffer = new Mpc::Lists(); in MpdLists() 209 Mpc::Lists & Main::AllLists() in AllLists() [all …]
|
H A D | buffers.hpp | 28 namespace Mpc namespace 49 Mpc::Playlist & Playlist(); 50 Mpc::Playlist & PlaylistPasteBuffer(); 51 Mpc::Playlist & PlaylistTmp(); 52 Mpc::Browse & Browse(); 53 Mpc::Library & Library(); 54 Mpc::Directory & Directory(); 55 Mpc::Lists & FileLists(); 56 Mpc::Lists & MpdLists(); 57 Mpc::Lists & AllLists(); [all …]
|
H A D | song.cpp | 56 std::map<char, Mpc::Song::SongFunction> Mpc::Song::SongInfo; 58 using namespace Mpc; 393 SongInfo['b'] = &Mpc::Song::Album; in RepopulateSongFunctions() 394 SongInfo['B'] = &Mpc::Song::Album; in RepopulateSongFunctions() 396 SongInfo['t'] = &Mpc::Song::Title; in RepopulateSongFunctions() 397 SongInfo['n'] = &Mpc::Song::Track; in RepopulateSongFunctions() 398 SongInfo['f'] = &Mpc::Song::URI; in RepopulateSongFunctions() 399 SongInfo['d'] = &Mpc::Song::Date; in RepopulateSongFunctions() 400 SongInfo['c'] = &Mpc::Song::Disc; in RepopulateSongFunctions() 402 SongInfo['r'] = &Mpc::Song::Artist; in RepopulateSongFunctions() [all …]
|
H A D | tag.hpp | 33 namespace Mpc namespace 37 void SetArtist(Mpc::Song * song, std::string const & filePath, const char * artist); 38 void SetTitle(Mpc::Song * song, std::string const & filePath, const char * title); 39 void SetTrack(Mpc::Song * song, std::string const & filePath, const char * track); 40 void SetAlbum(Mpc::Song * song, std::string const & filePath, const char * album); 43 void SetArtist(Mpc::Song * song, std::string const & filePath, const char * artist) in SetArtist() 63 void SetAlbum(Mpc::Song * song, std::string const & filePath, const char * album) in SetAlbum() 83 void SetTitle(Mpc::Song * song, std::string const & filePath, const char * title) in SetTitle() 103 void SetTrack(Mpc::Song * song, std::string const & filePath, const char * track) in SetTrack() 129 void SetArtist(Mpc::Song * song, std::string const & filePath, const char * artist) {} in SetArtist() [all …]
|
H A D | player.hpp | 38 namespace Mpc namespace 57 …Player(Ui::Screen & screen, Mpc::Client & client, Mpc::ClientState & clientState, Main::Settings &… 148 …void SkipSongByInformation(Skip skip, uint32_t count, Mpc::Song::SongInformationFunction songF… 149 …uint32_t NextSongByInformation(uint32_t startSong, Skip skip, Mpc::Song::SongInformationFunction s… 150 …uint32_t First(Mpc::Song const * const song, uint32_t position, Mpc::Song::SongInformationFunction… 154 Mpc::Client & client_; 155 Mpc::ClientState & clientState_; 156 Mpc::Playlist & playlist_;
|
H A D | mpdclient.hpp | 70 namespace Mpc namespace 87 Mpc::Client & client_; 92 friend class Mpc::CommandList; 168 void EnableOutput(Mpc::Output * output); 169 void DisableOutput(Mpc::Output * output); 173 void Add(Mpc::Song * song); 174 void Add(std::vector<Mpc::Song *> song); 175 void Add(Mpc::Song & song); 176 void Add(Mpc::Song & song, uint32_t position); 223 void ClientQueueExecutor(Mpc::Client * client); [all …]
|
H A D | screen.hpp | 47 namespace Mpc namespace 91 …Screen(Main::Settings & settings, Mpc::Client & client, Mpc::ClientState & clientState, Search con… 161 … Ui::InfoWindow * CreateInfoWindow(int32_t Id, std::string const & name, Mpc::Song * song = NULL); 162 void CreateSongInfoWindow(Mpc::Song * song = NULL); 165 …Ui::LyricsWindow * CreateLyricsWindow(int32_t Id, std::string const & name, Mpc::Song * song = NUL… 166 void CreateSongLyricsWindow(Mpc::Song * song = NULL); 266 Mpc::Song * GetSong(uint32_t window, uint32_t pos) const; 267 Mpc::Song * GetSong(uint32_t pos) const { return GetSong(GetActiveWindow(), pos); } in GetSong() 339 Mpc::Client & client_; 340 Mpc::ClientState & clientState_;
|
/dports/audio/vimpc/vimpc-0.09.2/src/buffer/ |
H A D | library.cpp | 36 using namespace Mpc; 93 ForEachParent([] (Mpc::LibraryEntry * entry) { Mpc::MarkUnexpanded(entry); }); in RecreateLibraryFromURIs() 207 Mpc::LibraryEntry * const entry = new Mpc::LibraryEntry(); in Add() 238 Mpc::LibraryEntry * const entry = new Mpc::LibraryEntry(); in CreateArtistEntry() 248 Mpc::LibraryEntry * Library::CreateAlbumEntry(Mpc::Song * song) in CreateAlbumEntry() 250 Mpc::LibraryEntry * const entry = new Mpc::LibraryEntry(); in CreateAlbumEntry() 301 void Library::AddToPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::Client… in AddToPlaylist() 321 void Library::RemoveFromPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::C… in RemoveFromPlaylist() 341 void Library::AddToPlaylist(Mpc::Client & client, Mpc::ClientState & clientState, Mpc::LibraryEntry… in AddToPlaylist() 381 void Library::RemoveFromPlaylist(Mpc::Client & client, Mpc::LibraryEntry const * const entry) in RemoveFromPlaylist() [all …]
|
H A D | directory.cpp | 32 using namespace Mpc; 97 Mpc::DirectoryEntry * const entry = in ChangeDirectory() 98 new Mpc::DirectoryEntry(Mpc::SongType, FileFromURI(song->URI()), directory_, song); in ChangeDirectory() 109 new Mpc::DirectoryEntry(Mpc::PlaylistType, FileFromURI(playlist), directory_); in ChangeDirectory() 167 void Directory::Add(Mpc::Song * song) in Add() 222 Mpc::DirectoryEntry * entry = new Mpc::DirectoryEntry(Mpc::PathType, directory, fullPath); in AddEntry() 229 void Directory::AddToPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::Clie… in AddToPlaylist() 239 Mpc::CommandList list(client); in AddToPlaylist() 249 void Directory::RemoveFromPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc:… in RemoveFromPlaylist() 269 void Directory::AddToPlaylist(Mpc::Client & client, Mpc::ClientState & clientState, Mpc::DirectoryE… in AddToPlaylist() [all …]
|
H A D | library.hpp | 33 namespace Mpc namespace 200 Mpc::Song * song_; 225 void Add(Mpc::Song * song); 226 …void AddToPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::ClientState & … 227 …void RemoveFromPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::ClientSta… 231 Mpc::LibraryEntry * CreateAlbumEntry(Mpc::Song * song); 248 …void AddToPlaylist(Mpc::Client & client, Mpc::ClientState & clientState, Mpc::LibraryEntry const *… 249 void RemoveFromPlaylist(Mpc::Client & client, Mpc::LibraryEntry const * const entry); 257 Mpc::LibraryEntry * variousArtist_; 258 Mpc::LibraryEntry * lastAlbumEntry_; [all …]
|
H A D | directory.hpp | 37 namespace Mpc namespace 64 Mpc::Song * song_; 101 friend class Mpc::Song; 125 void Add(Mpc::Song * song); 126 void AddPlaylist(Mpc::List playlist); 127 …void AddToPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::ClientState & … 128 …void RemoveFromPlaylist(Mpc::Song::SongCollection Collection, Mpc::Client & client, Mpc::ClientSta… 144 std::vector<Mpc::Song *> Result; in AllChildSongs() 168 …void AddToPlaylist(Mpc::Client & client, Mpc::ClientState & clientState, Mpc::DirectoryEntry const… 169 …void RemoveFromPlaylist(Mpc::Client & client, Mpc::ClientState & clientState, Mpc::DirectoryEntry … [all …]
|
H A D | playlist.hpp | 31 namespace Mpc namespace 33 class Playlist : public Main::Buffer<Mpc::Song *> 41 … AddCallback(Main::Buffer_Add, [] (Mpc::Song * song) { Mpc::Song::IncrementReference(song); }); in Playlist() 42 … AddCallback(Main::Buffer_Remove, [] (Mpc::Song * song) { Mpc::Song::DecrementReference(song); }); in Playlist() 43 AddCallback(Main::Buffer_Remove, [this] (Mpc::Song * song) { DeleteSong(song); }); in Playlist() 44 … AddCallback(Main::Buffer_Replace, [] (Mpc::Song * song) { Mpc::Song::DecrementReference(song); }); in Playlist() 45 AddCallback(Main::Buffer_Replace, [this] (Mpc::Song * song) { DeleteSong(song); }); in Playlist() 53 void DeleteSong(Mpc::Song * song) in DeleteSong()
|
/dports/audio/vimpc/vimpc-0.09.2/src/window/ |
H A D | librarywindow.cpp | 39 …in::Settings const & settings, Ui::Screen & screen, Mpc::Library & library, Mpc::Client & client, … in LibraryWindow() 69 library_.ForEachParent([] (Mpc::LibraryEntry * entry) { Mpc::MarkUnexpanded(entry); }); in SoftRedraw() 104 Mpc::Song * currentSong = NULL; in Current() 142 case Mpc::ArtistType: in SearchPattern() 146 case Mpc::AlbumType: in SearchPattern() 150 case Mpc::SongType: in SearchPattern() 154 case Mpc::PathType: in SearchPattern() 155 case Mpc::PlaylistType: in SearchPattern() 361 if (entry->type_ != Mpc::SongType) in Edit() 371 … FUNCTION<void (Mpc::Song * song)> function = [&window] (Mpc::Song * song) { window->Add(song); }; in Edit() [all …]
|
H A D | directorywindow.hpp | 32 namespace Mpc { class Client; class ClientState; } namespace 41 …typedef void (Mpc::Directory::*DirectoryFunction)(Mpc::Song::SongCollection Collection, Mpc::Clien… 44 …::Settings const & settings, Ui::Screen & screen, Mpc::Directory & directory, Mpc::Client & client… 95 int32_t DetermineSongColour(Mpc::DirectoryEntry const * const entry) const; 99 Mpc::Client & client_; 100 Mpc::ClientState & clientState_; 102 Mpc::Directory & directory_;
|
H A D | playlistwindow.hpp | 33 namespace Mpc { class Client; class ClientState; } namespace 42 …n::Settings const & settings, Ui::Screen & screen, Mpc::Playlist & playlist, Mpc::Client & client,… 58 void AdjustScroll(Mpc::Song * song); 79 Main::Buffer<Mpc::Song *> & Buffer() { return playlist_; } in Buffer() 80 Main::Buffer<Mpc::Song *> const & Buffer() const { return playlist_; } in Buffer() 84 Mpc::Client & client_; 85 Mpc::ClientState & clientState_; 87 Mpc::Playlist & playlist_; 88 Mpc::Playlist & pasteBuffer_;
|
H A D | librarywindow.hpp | 31 namespace Mpc { class Client; class ClientState; } namespace 40 …typedef void (Mpc::Library::*LibraryFunction)(Mpc::Song::SongCollection Collection, Mpc::Client & … 43 …in::Settings const & settings, Ui::Screen & screen, Mpc::Library & library, Mpc::Client & client, … 95 Mpc::Client & client_; 96 Mpc::ClientState & clientState_; 98 Mpc::Library & library_;
|
H A D | browsewindow.hpp | 34 namespace Mpc { class Client; class ClientState; } 43 …ain::Settings const & settings, Ui::Screen & screen, Mpc::Browse & browse, Mpc::Client & client, M… 61 Main::Buffer<Mpc::Song *> & Buffer() { return browse_; } 62 Main::Buffer<Mpc::Song *> const & Buffer() const { return browse_; } 66 Mpc::Client & client_; 67 Mpc::ClientState & clientState_; 69 Mpc::Browse & browse_;
|
H A D | directorywindow.cpp | 41 …::Settings const & settings, Ui::Screen & screen, Mpc::Directory & directory, Mpc::Client & client… 75 Mpc::Song * currentSong = NULL; 100 Mpc::Song * currentSong = NULL; 182 case Mpc::PathType: 183 case Mpc::SongType: 184 case Mpc::PlaylistType: 188 case Mpc::ArtistType: 189 case Mpc::AlbumType: 452 if (entry->type_ == Mpc::SongType) 472 if (entry->type_ == Mpc::SongType) [all …]
|
H A D | songwindow.hpp | 34 namespace Mpc { class Client; class ClientState; } namespace 43 …SongWindow(Main::Settings const & settings, Ui::Screen & screen, Mpc::Client & client, Mpc::Client… 59 void Add(Mpc::Song * song); 82 virtual Main::Buffer<Mpc::Song *> & Buffer() { return browse_; } in Buffer() 83 virtual Main::Buffer<Mpc::Song *> const & Buffer() const { return browse_; } in Buffer() 98 Mpc::Client & client_; 99 Mpc::ClientState & clientState_; 101 Mpc::Browse browse_;
|
H A D | outputwindow.hpp | 32 namespace Mpc { class Client; class Output; } 41 bool operator() (Mpc::Output* i, Mpc::Output* j) { return (*i<*j); }; 47 …utWindow(Main::Settings const & settings, Ui::Screen & screen, Mpc::Outputs & outputs, Mpc::Client… 80 void AdjustScroll(Mpc::Output * output); 84 Mpc::Client & client_; 86 Mpc::Outputs & outputs_;
|
/dports/astro/py-astropy/astropy-5.0/astropy/cosmology/tests/ |
H A D | test_cosmology.py | 738 dm = dm * u.Mpc 739 da = da * u.Mpc 740 dl = dl * u.Mpc 747 dm = dm * u.Mpc 748 da = da * u.Mpc 749 dl = dl * u.Mpc 756 dm = dm * u.Mpc 757 da = da * u.Mpc 758 dl = dl * u.Mpc 949 174.1524683) * u.Mpc [all …]
|
H A D | test_funcs.py | 32 assert allclose(z_at_value(cosmo.luminosity_distance, 1e4 * u.Mpc), 1.36857907, rtol=1e-6) 35 assert allclose(z_at_value(cosmo.angular_diameter_distance, 1500*u.Mpc, zmax=2), 37 assert allclose(z_at_value(cosmo.angular_diameter_distance, 1500*u.Mpc, zmin=2.5), 44 z_at_value(cosmo.angular_diameter_distance, 1500*u.Mpc, zmax=0.5) 48 z_at_value(cosmo.angular_diameter_distance, 1500*u.Mpc, zmin=4.) 66 z_at_value(self.cosmo.angular_diameter_distance, 1500 * u.Mpc, 72 z_at_value(self.cosmo.angular_diameter_distance, 1500 * u.Mpc, 105 z_at_value(self.cosmo.angular_diameter_distance, 1500 * u.Mpc, 110 z = z_at_value(self.cosmo.angular_diameter_distance, 1500 * u.Mpc, 154 z = z_at_value(cosmo.angular_diameter_distance, 1500*u.Mpc, method=method) [all …]
|
/dports/astro/py-astropy/astropy-5.0/astropy/modeling/tests/ |
H A D | test_physical_models.py | 163 assert_quantity_allclose(n200c(3.0 * u.Mpc), (3.709693508e+12 * (u.solMass / u.Mpc ** 3), 166 assert_quantity_allclose(n200c.r_s, (0.24684627641195428 * u.Mpc)) 174 assert_quantity_allclose(n200m(3.0 * u.Mpc), (3.626093406e+12 * (u.solMass / u.Mpc**3), 177 assert_quantity_allclose(n200m.r_s, (0.2840612517326848 * u.Mpc)) 185 assert_quantity_allclose(nvir(3.0 * u.Mpc), (3.646475546e+12 * (u.solMass / u.Mpc**3), 188 assert_quantity_allclose(nvir.r_s, (0.2748701862303786 * u.Mpc)) 265 assert_quantity_allclose(n200c(3.0 * u.Mpc), (3.709693508e+12 * (u.solMass / u.Mpc ** 3), 273 assert_quantity_allclose(n200m(3.0 * u.Mpc), (3.626093406e+12 * (u.solMass / u.Mpc**3), 281 assert_quantity_allclose(nvir(3.0 * u.Mpc), (3.646475546e+12 * (u.solMass / u.Mpc**3), 374 assert_quantity_allclose(n200c.r_max, (0.5338248204429641 * u.Mpc)) [all …]
|
/dports/math/py-yt/yt-4.0.1/yt/utilities/tests/ |
H A D | cosmology_answers.yml | 16 units: Mpc 21 units: Mpc/radian 26 units: Mpc 31 units: Mpc 49 units: Mpc 54 units: km/s/Mpc 68 units: Mpc
|
/dports/astro/py-astropy/astropy-5.0/astropy/cosmology/ |
H A D | parameters.py | 80 H0=67.66 * (u.km / u.s / u.Mpc), 101 H0=67.66 * (u.km / u.s / u.Mpc), 121 H0=67.74 * (u.km / u.s / u.Mpc), 141 H0=67.77 * (u.km / u.s / u.Mpc), 161 H0=69.32 * (u.km / u.s / u.Mpc), 181 H0=70.4 * (u.km / u.s / u.Mpc), 201 H0=70.2 * (u.km / u.s / u.Mpc), 221 H0=70.1 * (u.km / u.s / u.Mpc), 243 H0=72. * (u.km / u.s / u.Mpc),
|