webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
API::Dictionary Class Referencefinal

#include <APIDictionary.h>

Inheritance diagram for API::Dictionary:
API::ObjectImpl< Object::Type::Dictionary > API::Object

Public Types

typedef HashMap< WTF::String, RefPtr< Object > > MapType
 
- Public Types inherited from API::Object
enum  Type {
  Type::Null = 0, Type::Array, Type::AuthenticationChallenge, Type::AuthenticationDecisionListener,
  Type::CertificateInfo, Type::Connection, Type::ContextMenuItem, Type::Credential,
  Type::Data, Type::Dictionary, Type::Error, Type::FrameHandle,
  Type::Image, Type::PageGroupData, Type::PageHandle, Type::PageGroupHandle,
  Type::ProtectionSpace, Type::RenderLayer, Type::RenderObject, Type::SecurityOrigin,
  Type::SessionState, Type::SerializedScriptValue, Type::String, Type::URL,
  Type::URLRequest, Type::URLResponse, Type::UserContentURLPattern, Type::UserScript,
  Type::UserStyleSheet, Type::WebArchive, Type::WebArchiveResource, Type::Boolean,
  Type::Double, Type::UInt64, Type::Point, Type::Size,
  Type::Rect, Type::ApplicationCacheManager, Type::AutomationSession, Type::BackForwardList,
  Type::BackForwardListItem, Type::CacheManager, Type::ColorPickerResultListener, Type::ContextMenuListener,
  Type::CookieManager, Type::Download, Type::ExperimentalFeature, Type::FormSubmissionListener,
  Type::Frame, Type::FrameInfo, Type::FramePolicyListener, Type::FullScreenManager,
  Type::GeolocationManager, Type::GeolocationPermissionRequest, Type::HitTestResult, Type::GeolocationPosition,
  Type::GrammarDetail, Type::IconDatabase, Type::Inspector, Type::KeyValueStorageManager,
  Type::MediaCacheManager, Type::Navigation, Type::NavigationAction, Type::NavigationData,
  Type::NavigationResponse, Type::Notification, Type::NotificationManager, Type::NotificationPermissionRequest,
  Type::OpenPanelParameters, Type::OpenPanelResultListener, Type::OriginDataManager, Type::Page,
  Type::PageConfiguration, Type::PageGroup, Type::ProcessPool, Type::ProcessPoolConfiguration,
  Type::PluginSiteDataManager, Type::Preferences, Type::ResourceLoadStatisticsStore, Type::RunBeforeUnloadConfirmPanelResultListener,
  Type::RunJavaScriptAlertResultListener, Type::RunJavaScriptConfirmResultListener, Type::RunJavaScriptPromptResultListener, Type::TextChecker,
  Type::UserContentController, Type::UserContentExtension, Type::UserContentExtensionStore, Type::UserContentWorld,
  Type::UserInitiatedAction, Type::UserMediaPermissionCheck, Type::UserMediaPermissionRequest, Type::Vibration,
  Type::ViewportAttributes, Type::VisitedLinkStore, Type::WebResourceLoadStatisticsManager, Type::WebsiteDataRecord,
  Type::WebsiteDataStore, Type::WebsitePolicies, Type::WindowFeatures, Type::Bundle,
  Type::BundleBackForwardList, Type::BundleBackForwardListItem, Type::BundleCSSStyleDeclarationHandle, Type::BundleDOMWindowExtension,
  Type::BundleFileHandle, Type::BundleFrame, Type::BundleHitTestResult, Type::BundleInspector,
  Type::BundleNavigationAction, Type::BundleNodeHandle, Type::BundlePage, Type::BundlePageBanner,
  Type::BundlePageGroup, Type::BundlePageOverlay, Type::BundleRangeHandle, Type::BundleScriptWorld,
  Type::EditCommandProxy, Type::ObjCObjectGraph, Type::View
}
 

Public Member Functions

virtual ~Dictionary ()
 
template<typename T >
Tget (const WTF::String &key) const
 
Objectget (const WTF::String &key) const
 
Objectget (const WTF::String &key, bool &exists) const
 
Ref< Arraykeys () const
 
bool add (const WTF::String &key, PassRefPtr< Object >)
 
bool set (const WTF::String &key, PassRefPtr< Object >)
 
void remove (const WTF::String &key)
 
size_t size () const
 
const MapTypemap () const
 
- Public Member Functions inherited from API::ObjectImpl< Object::Type::Dictionary >
virtual ~ObjectImpl ()
 
- Public Member Functions inherited from API::Object
virtual ~Object ()
 

Static Public Member Functions

static Ref< Dictionarycreate ()
 
static Ref< Dictionarycreate (MapType)
 
- Static Public Member Functions inherited from API::Object
static voidwrap (API::Object *)
 
static API::Objectunwrap (void *)
 

Protected Member Functions

 Dictionary (MapType)
 
- Protected Member Functions inherited from API::ObjectImpl< Object::Type::Dictionary >
 ObjectImpl ()
 
Type type () const override
 
- Protected Member Functions inherited from API::Object
 Object ()
 

Protected Attributes

MapType m_map
 

Additional Inherited Members

- Static Public Attributes inherited from API::ObjectImpl< Object::Type::Dictionary >
static const Type APIType
 

Member Typedef Documentation

◆ MapType

Constructor & Destructor Documentation

◆ ~Dictionary()

API::Dictionary::~Dictionary ( )
virtual

◆ Dictionary()

API::Dictionary::Dictionary ( MapType  map)
explicitprotected

Member Function Documentation

◆ add()

bool API::Dictionary::add ( const WTF::String key,
PassRefPtr< Object  
)

◆ create() [1/2]

Ref< Dictionary > API::Dictionary::create ( )
static

◆ create() [2/2]

Ref< Dictionary > API::Dictionary::create ( MapType  map)
static

◆ get() [1/3]

template<typename T >
T* API::Dictionary::get ( const WTF::String key) const
inline

◆ get() [2/3]

Object* API::Dictionary::get ( const WTF::String key) const
inline

◆ get() [3/3]

Object* API::Dictionary::get ( const WTF::String key,
bool &  exists 
) const
inline

◆ keys()

Ref< Array > API::Dictionary::keys ( ) const

◆ map()

const MapType& API::Dictionary::map ( ) const
inline

◆ remove()

void API::Dictionary::remove ( const WTF::String key)

◆ set()

bool API::Dictionary::set ( const WTF::String key,
PassRefPtr< Object  
)

◆ size()

size_t API::Dictionary::size ( ) const
inline

Member Data Documentation

◆ m_map

MapType API::Dictionary::m_map
protected

The documentation for this class was generated from the following files: