Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Friends | List of all members
dart::bin::Namespace Class Reference

#include <namespace.h>

Inheritance diagram for dart::bin::Namespace:
dart::bin::ReferenceCounted< Namespace >

Public Member Functions

NamespaceImplnamespc () const
 
- Public Member Functions inherited from dart::bin::ReferenceCounted< Namespace >
 ReferenceCounted ()
 
virtual ~ReferenceCounted ()
 
void Retain ()
 
void Release ()
 

Static Public Member Functions

static NamespaceCreate (intptr_t namespc)
 
static NamespaceCreate (const char *path)
 
static intptr_t Default ()
 
static bool IsDefault (Namespace *namespc)
 
static NamespaceGetNamespace (Dart_NativeArguments args, intptr_t index)
 
static const char * GetCurrent (Namespace *namespc)
 
static bool SetCurrent (Namespace *namespc, const char *path)
 

Friends

class NamespaceScope
 
class ReferenceCounted< Namespace >
 

Detailed Description

Definition at line 18 of file namespace.h.

Member Function Documentation

◆ Create() [1/2]

static Namespace * dart::bin::Namespace::Create ( const char *  path)
static

◆ Create() [2/2]

static Namespace * dart::bin::Namespace::Create ( intptr_t  namespc)
static

◆ Default()

static intptr_t dart::bin::Namespace::Default ( )
static

◆ GetCurrent()

static const char * dart::bin::Namespace::GetCurrent ( Namespace namespc)
static

◆ GetNamespace()

Namespace * dart::bin::Namespace::GetNamespace ( Dart_NativeArguments  args,
intptr_t  index 
)
static

Definition at line 101 of file namespace.cc.

101 {
102 Namespace* namespc;
103 Dart_Handle status =
104 Namespace::GetNativeNamespaceArgument(args, index, &namespc);
105 if (Dart_IsError(status)) {
106 Dart_PropagateError(status);
107 }
108 return namespc;
109}
NamespaceImpl * namespc() const
Definition: namespace.h:41
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
DART_EXPORT void Dart_PropagateError(Dart_Handle handle)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)

◆ IsDefault()

bool dart::bin::Namespace::IsDefault ( Namespace namespc)
static

Definition at line 111 of file namespace.cc.

111 {
112 return (namespc == nullptr) || (namespc->namespc() == nullptr);
113}

◆ namespc()

NamespaceImpl * dart::bin::Namespace::namespc ( ) const
inline

Definition at line 41 of file namespace.h.

41{ return namespc_; }

◆ SetCurrent()

static bool dart::bin::Namespace::SetCurrent ( Namespace namespc,
const char *  path 
)
static

Friends And Related Function Documentation

◆ NamespaceScope

friend class NamespaceScope
friend

Definition at line 72 of file namespace.h.

◆ ReferenceCounted< Namespace >

friend class ReferenceCounted< Namespace >
friend

Definition at line 72 of file namespace.h.


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